Jul 20th, 2009, 09:02 AM
I have a unit test. I am using Bitronix for the transaction managers for the DB and JMS. I have two MDBs. I post a message on the first MDBs queue. He takes the message and posts a message on the second MDBs queue. All goes well in the first step but I get a 'transport disposed' JMSException when the first MDB tries to post a message on the second queue. The flow is:
Message sender => MDB1 => MDB2.
They all use the same JmsTemplate. The connection factory is from Bitronix so it is pooled, so calling close on the session and factory should release the resources to Bitronix again and not really close the connection. I just can't see what I am doing wrong. Please help!
Thanks in advance.