File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Messages pending in listener. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Messages pending in listener." Watch "Messages pending in listener." New topic

Messages pending in listener.

dev deba

Joined: Aug 02, 2012
Posts: 2

I am using jboss-5.1 to deploy message driven bean which is used to subscribe messages from a third party queue.

Around 16 messages were posted to that queue but they remained pending in our subscriber queue. I restarted the server and the messages were readily picked.

As much as I have analysed, I think maxsize and maxsession could have affected it, as both are 15. But I do not understand if there was some real issue, how it got solved by just restarting.

The logs were in error mode. I did not get the full stack trace.

This is the snippet of that error.

[2012-10-30 17:01:00,228] [MQQueueAgent (GQH1_PLANNING_MDM_001)] [ERROR] STDERR: 2012.10.30 17:01:00 MQJMS1023E rollback failed

[2012-10-30 17:01:00,228] [exceptionDelivery0] [WARN ] org.jboss.resource.adapter.jms.inflow.JmsActivation: Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@85d0d(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@b21aae destination=remotewsmq/NOTIFICATION_PLANNING_MDM_001.SUBQ destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=RemoteWSMQJMSProvider user=null maxMessages=1 minSession=1 maxSession=5 keepAlive=60000 useDLQ=false)

GQH1_PLANNING_MDM_001: The name of the queue used for subscribing.

The files that I use to configure the properties of the MDBs are as follows.


<domain name="Message Driven Bean" extends="Intercepted Bean" inheritBindings="true">

<bind pointcut="execution(public * *->*(..))">

<interceptor-ref name=""/>

<interceptor-ref name=""/>


<!-- TODO: Authorization? -->

<bind pointcut="execution(public * *->*(..))">

<interceptor-ref name="org.jboss.ejb3.tx.CMTTxInterceptorFactory"/>

<interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>

<interceptor-ref name="org.jboss.ejb3.tx.BMTTxInterceptorFactory"/>

<interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>

<interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>

<!-- interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/ -->

<stack-ref name="EJBInterceptors"/>


<annotation expr="class(*) AND !class(@org.jboss.ejb3.annotation.Pool)">

@org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=15, timeout=10000)












<!-- WARN: Don't set this to zero until a bug in the pooled executor is fixed -->



















Please help.
It is sorta covered in the JavaRanch Style Guide.
subject: Messages pending in listener.
It's not a secret anymore!