[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: rolled back messages delivered twice.

ataylor do-not-reply at jboss.com
Fri Feb 27 04:56:35 EST 2009


By the real onMessage i assumed you meant the onMessage implementation?


  | 
  | public void onMessage(Message message) //JBM onmessage
  | {
  |     tm.begin();
  | 
  |     trans = tm.getTransaction();
  | 
  |     trans.enlistResource(res)//res is xasession.getresource
  | 
  |     onmessage()//endpoint onmessage
  | 
  |     tm.rollback(); 
  | }
  | 

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

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



More information about the jboss-dev-forums mailing list