Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help needed with MDB configuration

 
s rufus
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use a MDB on WebSphere server (WSAD 5.1.2)

My process flow is as follows :
1.An object message is put in a queue (Queue A)
2.An MDB listens to Queue A, recieves the object, does some processing and
creates one or more XML messages which are put as TextMessages on another Queue(Queue B)
3.The whole process suceeds the first time but I also get the following exception on the console.

[8/21/06 21:03:05:125 IST] 6bace385 ServerSession W WMSG0031E: Exception processing JMS Message for MDB SPMessage, JMSDestination jms/SRSSPQueue : javax.ejb.TransactionRolledbackLocalException: ; nested exception is: com.ibm.ws.exception.WsEJBException
com.ibm.ws.exception.WsEJBException
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapException(LocalExceptionMappingStrategy.java:159)
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapCSITransactionRolledBackException(LocalExceptionMappingStrategy.java:293)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:3128)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:102)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:127)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:372)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
javax.ejb.TransactionRolledbackLocalException: ; nested exception is: com.ibm.ws.exception.WsEJBException
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapCSIException(LocalExceptionMappingStrategy.java:96)
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapException(LocalExceptionMappingStrategy.java:165)
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapCSITransactionRolledBackException(LocalExceptionMappingStrategy.java:293)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:3128)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:102)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:127)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:372)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
[8/21/06 21:03:05:219 IST] 6bace385 ServerSession W WMSG0036E: Maximum message delivery retry count of 0 reached for MDB SPMessage, JMSDestination jms/SRSSPQueue, MDBListener stopped
[8/21/06 21:03:05:250 IST] 6bace385 MDBListenerIm I WMSG0043I: MDB Listener SPListenerPort stopped for JMSDestination jms/SRSSPQueue

4. The deployment descriptor of my bean is as follows:



<message-driven id="SPMessage">
<ejb-name>SPMessage</ejb-name>
<ejb-class>com.heb.srs.webgui.ejb.application.forcast.sp.SPMessageBean</ejb-class>
<transaction-type>Container</transaction-type>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
</message-driven>


5.After the first time the MDB doesnot work.

I believe something is wrong with the configuration.Anybody who has faced this earlier please help.

Thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic