This makes sense to me, but I can't seem to get it working.  

How do I use the JMS Connector?  

I created a resource reference in ejb-jar.xml, and linked the reference to
QueueConnectionFactory in jboss.xml. The bean obtains the
QueueConnectionFactory using java:comp/env/jms/Qcf.  The send on the replyTo
destination is still not transactional.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 17, 2001 2:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JMS and MessageDrivenBean


On 15 Jun, Griffin, Michael wrote:
> JBoss-User,
> 
> I have created a MessageDrivenBean that serves as the responder in a
request
> / reply scenario.  I get the reply Destination from the JMSReplyTo
property
> on the message.  The handling of the onMessage code is simple.
> 
> I lookup the QueueConnectionFactory, create a QueueConnection, create a
> QueueSession (with true, Session.AUTO_ACKNOWLEDGE), create a QueueSender
and
> ultimately send the message.
> 
> The MessageDrivenBean is deployed using Container managed transaction,
with
> all methods (*) marked as Required.  The messages sent from the
> MessageDrivenBean are not delivered to the queue until I explicitly call
> commit on the QueueSession.  It is my understanding (of the EJB 2.0 Spec)
> that when a Container managed transaction is active, any use of a JMS
> Session will be part of the containers transaction.
> 
> Does anyone have any experience to share concerning this issue?

If you are using jboss 2.2.x or are using the developers version, but do
not utilize the JMS connector, then your JMS sessions will NOT be part
of any transaction.

Looking up a QueueConnectionFactory through JNDI will only (ever) give
you a normal (non J2EE) JMS session.

//Peter
> 
> Regards,
> Michael
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

-- 
------------------------------------------------------------
Peter Antman             Technology in Media, Box 34105 100 26 Stockholm
Systems Architect        WWW: http://www.tim.se
Email: [EMAIL PROTECTED]        WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 
------------------------------------------------------------


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to