[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - MDB/JCA adapter connection failures

bill.burke@jboss.com do-not-reply at jboss.com
Thu Mar 29 09:57:44 EDT 2007


http://jira.jboss.com/jira/browse/JBMESSAGING-930

I'm running a unit test in Embedded JBoss.  Works fine most of the times.  Randomly I'm getting the stack trace shown in 930 and no messages are ever delivered to the MDB.

If I put a sleep after deployment of the MDB and Queue, everything works fine.  The MDB also has an explicit dependency on the queue so it starts after the Queue starts.

The only way I understand that this could happen is if the JMS inflow adapter tries to connect to Messaging in the background, or Queue initialization happens in a different thread.  The is some race condition here obviously.

Any insight?

Thanks


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032780#4032780

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032780



More information about the jboss-dev-forums mailing list