commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: Messenger - Seting "transacted"
Date Fri, 10 May 2002 12:55:00 GMT
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>


Mime
View raw message