commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Marsh" <mars...@nitesco.com>
Subject Re: Messenger - Seting "transacted"
Date Fri, 10 May 2002 16:59:01 GMT
This worked like a champ!

I can rollback() all day!

FYI, I'm running a stand-alone copy of tools.Consumer application, not 
in an application server....

Thanks!

> The <factory> element binds to a SessionFactory instance and the 
<jndi>
> element binds to a JNDISessionFactory, which is-a SessionFactory. So
> changing the XML to the following should do the trick (moving the 
transacted
> attribute to <jndi>)...
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <manager>
>   <messenger name="issQCF" jndiDestinations="true">
>     <jndi lookupName="issQCF" topic="false" transacted="true">
>       <property>
>         <name>com.sun.jms.internal.java.naming.factory.initial</name>
>         <value>com.ibm.ejs.ns.jndi.CNInitialContextFactory</value>
>       </property>
>       <property>
>         <name>java.naming.provider.url</name>
>         <value>iiop://hostname/jms</value>
>       </property>
>     </jndi>
>   </messenger>
> 
> Do let me know if this works; it'd be nice to know this works with 
MQseries
> in transacted mode.
> 
> James
> 
> ----- Original Message -----
> From: "Thomas Marsh" <marsht1@nitesco.com>
> > James / List:
> >
> > Maybe I've got the syntax incorrect...
> >
> > But this doesn't seem to be working.  Do I have the syntax for
> > "transacted" correct? I'm using IBM mqseries JMS, and my 'rollback' 
is
> > throwing a "not in transactional" exception. It works ok if I hard-
code
> > "transacted = true" in SessionFactory......
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <manager>
> >   <messenger name="issQCF" jndiDestinations="true">
> >     <factory transacted="true">
> >     </factory>
> >     <jndi lookupName="issQCF" topic="false">
> >       <property>
> >         
<name>com.sun.jms.internal.java.naming.factory.initial</name>
> >         <value>com.ibm.ejs.ns.jndi.CNInitialContextFactory</value>
> >       </property>
> >       <property>
> >         <name>java.naming.provider.url</name>
> >         <value>iiop://hostname/jms</value>
> >       </property>
> >     </jndi>
> >   </messenger>
> >
> > </manager>
> >
> >
> >
> >
> > --
> > Tom Marsh
> >
> > mailto:marsht1@nitesco.com
> > http://www.nitesco.com
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:commons-dev-help@jakarta.apache.org>
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-
unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-
help@jakarta.apache.org>
> 
> 

-- 
NeoMail - Webmail that doesn't suck... as much.
http://neomail.sourceforge.net

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message