Before running there are 100 messages on the queue, then the following is
printed
[#|2013-11-19T07:33:00.046+1100|INFO|glassfish3.1.2|MessageConsumerTest|_ThreadID=35;_ThreadName=Thread-4;|Message
ID:11-192.168.1.104(9a:3d:75:4d:db: 9c)-1-1384806780021 processed|#]
[#|2013-11-19T07:33:00.047+1100|INFO|glassfish3.1.2|MessageConsumerTest|_ThreadID=35;_ThreadName=Thread-4;|Message
ID:12-192.168.1.104(9a:3d:75:4d:db: 9c)-1-1384806780021 processed|#]
[#|2013-11-19T07:33:00.050+1100|INFO|glassfish3.1.2|MessageConsumerTest|_ThreadID=35;_ThreadName=Thread-4;|Message
ID:13-192.168.1.104(9a:3d:75:4d:db: 9c)-1-1384806780021 processed|#]
[#|2013-11-19T07:33:00.054+1100|INFO|glassfish3.1.2|MessageConsumerTest|_ThreadID=35;_ThreadName=Thread-4;|Message
ID:14-192.168.1.104(9a:3d:75:4d:db: 9c)-1-1384806780021 processed|#]
[#|2013-11-19T07:33:00.055+1100|INFO|glassfish3.1.2|MessageConsumerTest|_ThreadID=35;_ThreadName=Thread-4;|Message
ID:15-192.168.1.104(9a:3d:75:4d:db: 9c)-1-1384806780021 processed|#]
[#|2013-11-19T07:33:00.057+1100|INFO|glassfish3.1.2|MessageConsumerTest|_ThreadID=35;_ThreadName=Thread-4;|Message
ID:16-192.168.1.104(9a:3d:75:4d:db: 9c)-1-1384806780021 processed|#]
[#|2013-11-19T07:33:00.059+1100|INFO|glassfish3.1.2|MessageConsumerTest|_ThreadID=35;_ThreadName=Thread-4;|Message
ID:17-192.168.1.104(9a:3d:75:4d:db: 9c)-1-1384806780022 processed|#]
[#|2013-11-19T07:33:00.060+1100|INFO|glassfish3.1.2|MessageConsumerTest|_ThreadID=35;_ThreadName=Thread-4;|Message
ID:18-192.168.1.104(9a:3d:75:4d:db:9c)-1-1384806780022 processed|#]
[#|2013-11-19T07:33:00.061+1100|INFO|glassfish3.1.2|MessageConsumerTest|_ThreadID=35;_ThreadName=Thread-4;|Message
ID:19-192.168.1.104(9a:3d:75:4d:db:9c)-1-1384806780022 processed|#]
[#|2013-11-19T07:33:00.062+1100|INFO|glassfish3.1.2|MessageConsumerTest|_ThreadID=35;_ThreadName=Thread-4;|Message
ID:20-192.168.1.104(9a:3d:75:4d:db:9c)-1-1384806780022 processed|#]
[#|2013-11-19T07:33:00.062+1100|SEVERE|glassfish3.1.2|MessageConsumerTest|_ThreadID=35;_ThreadName=Thread-4;|Exception
caught processing test queue java.lang.Exception: Bork! at
MessageConsumerTest.getMessages(MessageConsumerTest.java:80) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
at
org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
at
com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619) at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571) at
com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
at
com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundTimeout(SystemInterceptorProxy.java:149)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
com.sun.ejb.containers.interceptors.AroundInvokeInterceptor$2.run(InterceptorManager.java:856)
at java.security.AccessController.doPrivileged(Native Method) at
com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:853)
at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
at
com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348) at
com.sun.ejb.containers.BaseContainer.callEJBTimeout(BaseContainer.java:4058)
at
com.sun.ejb.containers.EJBTimerService.deliverTimeout(EJBTimerService.java:1832)
at
com.sun.ejb.containers.EJBTimerService.access$100(EJBTimerService.java:108)
at
com.sun.ejb.containers.EJBTimerService$TaskExpiredWork.run(EJBTimerService.java:2646)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at
java.util.concurrent.FutureTask.run(FutureTask.java:138) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695) |#]
[#|2013-11-19T07:33:00.062+1100|INFO|glassfish3.1.2|MessageConsumerTest|_ThreadID=35;_ThreadName=Thread-4;|Transaction
rolled back|#] then there are 90 messages on the queue
--
[Message sent by forum member 'davidwheeler']
View Post: http://forums.java.net/node/900132