[
http://jira.jboss.com/jira/browse/JBAS-4328?page=all ]
Carlo de Wolf reopened JBAS-4328:
---------------------------------
And that's the exact problem. Because it's a sessionConsumer it bypasses receive.
2007-04-12 21:35:50,247 ERROR [STDERR] java.lang.Exception
2007-04-12 21:35:50,247 ERROR [STDERR] at
org.jboss.ejb3.test.mdb.ExpirationTestMDB.onMessage(ExpirationTestMDB.java:47)
2007-04-12 21:35:50,247 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2007-04-12 21:35:50,248 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2007-04-12 21:35:50,248 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2007-04-12 21:35:50,248 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:585)
2007-04-12 21:35:50,248 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
2007-04-12 21:35:50,249 ERROR [STDERR] at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
2007-04-12 21:35:50,249 ERROR [STDERR] at
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
2007-04-12 21:35:50,249 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
2007-04-12 21:35:50,249 ERROR [STDERR] at
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
2007-04-12 21:35:50,250 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
2007-04-12 21:35:50,250 ERROR [STDERR] at
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
2007-04-12 21:35:50,251 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
2007-04-12 21:35:50,251 ERROR [STDERR] at
org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
2007-04-12 21:35:50,251 ERROR [STDERR] at
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
2007-04-12 21:35:50,251 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
2007-04-12 21:35:50,251 ERROR [STDERR] at
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
2007-04-12 21:35:50,251 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
2007-04-12 21:35:50,251 ERROR [STDERR] at
org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:245)
2007-04-12 21:35:50,251 ERROR [STDERR] at
org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
2007-04-12 21:35:50,251 ERROR [STDERR] at
org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
2007-04-12 21:35:50,251 ERROR [STDERR] at $Proxy221.onMessage(Unknown Source)
2007-04-12 21:35:50,252 ERROR [STDERR] at
org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:178)
2007-04-12 21:35:50,252 ERROR [STDERR] at
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:891)
2007-04-12 21:35:50,252 ERROR [STDERR] at
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
2007-04-12 21:35:50,252 ERROR [STDERR] at
org.jboss.mq.SpySession.run(SpySession.java:323)
2007-04-12 21:35:50,252 ERROR [STDERR] at
org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:237)
2007-04-12 21:35:50,252 ERROR [STDERR] at
org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
2007-04-12 21:35:50,252 ERROR [STDERR] at
org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
2007-04-12 21:35:50,252 ERROR [STDERR] at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
2007-04-12 21:35:50,252 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
Message expiration doesn't work with a message listener on a
session
--------------------------------------------------------------------
Key: JBAS-4328
URL:
http://jira.jboss.com/jira/browse/JBAS-4328
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: JMS service
Affects Versions: JBossAS-4.2.0.CR1
Environment: JBoss MQ
Reporter: Carlo de Wolf
Assigned To: Adrian Brock
The JCA uses session.setMessageListener which creates a SpyMessageConsumer with
sessionConsumer = true.
Messages are received and added to the SpyMessageConsumer (addMessage).
If it's a sessionConsumer do special logic (excluding expiration) else
put it on queue and receive() does expiration logic.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira