Posted: Thu Oct 22, 2009 8:26 am Post subject: Message getting trucated when MDB listening the message
Newbie
Joined: 22 Oct 2009 Posts: 9
Hi All,
I am facing three problems:-
1. I am getting this error message which MDB is listening the request and messages are going into Backout queue.I am using Pramati Appserver and deployed MDBs in the same.
for this Log is as follows:-
EJB50082; Exception in onMessage for the message
JMS Message class: jms_text
JMSType: null
JMSDeliveryMode: 2
JMSExpiration: 0
JMSPriority: 4
JMSMessageID: ID:414d5120534c524d53514d202020202028497c4ac83b8928
JMSTimestamp: 1256212614880
JMSCorrelationID:null
JMSDestination: null
JMSReplyTo: null
JMSRedelivered: false
JMS_IBM_PutDate:20091022
JMSXAppID:WebSphere MQ Client for Java
JMS_IBM_Format:MQSTR
JMS_IBM_PutApplType:28
JMS_IBM_MsgType:8
JMSXUserID:wbimb
JMS_IBM_PutTime:11565488
JMSXDeliveryCount:1
<GCLWkflReqs> <Hdr> <APPID>19676</APPID><TRNUID>a</TRNUID><DTCLIENT>2001-12-17T09:30:47Z</DTCLIENT>
Another 289 character(s) omitted in MDB CustomerPortalRequestMDB.
java.lang.IllegalStateException: Can change transaction status only for beans deployed with Container Managed Transactions and TX_REQUIRED tx attribute.
at com.pramati.ejb.mdb.MessageDrivenContextImpl.setRollbackOnly(MessageDrivenContextImpl.java:115)
at com.dnb.bpms.slrm.util.gateway.SLRMMessageQueueMDB.onMessage(SLRMMessageQueueMDB.java:65)
at com.pramati.ejb.mdb.MDBHandler$1.run(MDBHandler.java:239)
at com.pramati.security.util.JAASSecurityHelper.doAs(JAASSecurityHelper.java:156)
at com.pramati.security.util.JAASSecurityHelper.doAs(JAASSecurityHelper.java:264)
at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.pramati.services.security.spi.SecurityHelper.doAs(SecurityHelper.java:240)
at com.pramati.ejb.mdb.MDBHandler.delegateToBean(MDBHandler.java:237)
at com.pramati.ejb.mdb.MDBHandler._onMessage(MDBHandler.java:123)
at com.pramati.ejb.mdb.MDBHandler.onMessage(MDBHandler.java:76)
at com.ibm.mq.jms.MQSession.run(MQSession.java:1588)
at com.pramati.ejb.mdb.JMSServerSession.run(JMSServerSession.java:64)
at com.pramati.util.thread.ThreadPool$PooledThread.run(ThreadPool.java:161)
2 Problem:-
Consumption of messages are very slow by MDB in JBOSS. In another layer I am using Jboss server which has also MDBs but these MDBs are consuming very slow.
Need the solution for the above. Thanks for the forum in advance.
java.lang.IllegalStateException: Can change transaction status only for beans deployed with Container Managed Transactions and TX_REQUIRED tx attribute.
Looks like your MDB's deployment attributes are not right.
By the way the MDB should have Requires New on the transaction attribute.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum