Author |
Message
|
Pras_1234 |
Posted: Tue Nov 14, 2006 10:21 pm Post subject: IBM MQ - Message Redelivery Issue |
|
|
Newbie
Joined: 14 Nov 2006 Posts: 4
|
Hi All,
I have a simple MDB program which receives a message from a queue configured in IBM MQ Series 5.3.
Using a client program i am sending a message to the Queue, and MDB reading the same.
In order to try the Message Redelivery option i am raising an exception in the MDB and i am expecting the message to move back to the error queue configured using backout queue. But this scenario is not working properly, MDB doing a rollback but messages are not being moved to a error queue.
Am i missing any configuration here. Ready to provide the same code.
Kindly suggest me on this.
Thanks in advance
Prasanna. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Nov 14, 2006 10:27 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Did you set the MDB retry > queue BOTHRESH > 0 ?
Which environment are you running WAS or any other J2EE app server?
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jbanoop |
Posted: Tue Nov 14, 2006 10:29 pm Post subject: |
|
|
Chevalier
Joined: 17 Sep 2005 Posts: 401 Location: SC
|
Is the reading of the message in a seperate LUW ?
what is happening to the message when an exception happens ? does it go back to the source q ? does it dissapear ?
have you specified backout queue on the source queue? what is the backout threshold set on the source queue ?
Anoop |
|
Back to top |
|
 |
Pras_1234 |
Posted: Tue Nov 14, 2006 10:43 pm Post subject: |
|
|
Newbie
Joined: 14 Nov 2006 Posts: 4
|
Hi,
Here is the detailed description of the issue.
Environment : Oracle App Server 10.1.3
IBM MQ - 6.0
MDB configured using JCA 1.5.
The following is the error message that i am getting after a null pointer exception.
06/11/15 11:34:53 MDB.ejbCreate()
06/11/15 11:34:53 simpleMdb Triggered..................
06/11/15 11:34:53 Exception Catched Doing rollback
06/11/15 11:34:53 java.lang.NullPointerException
06/11/15 11:34:53 at com.sapphire.ejb.simpleMdb.onMessage(simpleMdb.java:33)
06/11/15 11:34:53 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
06/11/15 11:34:53 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
06/11/15 11:34:53 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
06/11/15 11:34:53 at java.lang.reflect.Method.invoke(Method.java:585)
06/11/15 11:34:53 at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
06/11/15 11:34:53 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
06/11/15 11:34:53 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
06/11/15 11:34:53 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
06/11/15 11:34:53 at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:34)
06/11/15 11:34:53 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
06/11/15 11:34:53 at com.evermind.server.ejb.MessageDrivenConsumer.onMessage(MessageDrivenConsumer.java:344)
06/11/15 11:34:53 at com.evermind.server.ejb.MessageDrivenConsumer.processMessages(MessageDrivenConsumer.java:230)
06/11/15 11:34:53 at com.evermind.server.ejb.MessageDrivenConsumer.run(MessageDrivenConsumer.java:168)
06/11/15 11:34:53 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
06/11/15 11:34:53 at java.lang.Thread.run(Thread.java:595)
The message getting disappered from the queue, it is not in the Inbound queue as well as error queue.
I have created queues using the following mqsc file.
DEFINE CHANNEL(CHANNEL1) CHLTYPE(SVRCONN)
DEFINE QLOCAL(HUB_TO_JMS.SAPPHIRE) REPLACE +
DEFPSIST(YES) +
BOQNAME(HUB_TO_JMS.SAPPHIRE.ERROR) +
HARDENBO +
BOTHRESH(3)
DEFINE QLOCAL(HUB_TO_JMS.SAPPHIRE.ERROR) REPLACE +
DEFPSIST(YES)
Kindly let me know if you need any further inputs.
Thanks and Regards
Prasanna. |
|
Back to top |
|
 |
Pras_1234 |
Posted: Tue Nov 14, 2006 10:47 pm Post subject: |
|
|
Newbie
Joined: 14 Nov 2006 Posts: 4
|
Hi,
How and where to set MDB retry? My BOTHRESH value is (3).
Kindly let me know.
Thanks and Regards
Prasanna. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Nov 15, 2006 7:09 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You are not using WebSphere Application Server.
I guess you will have to write your own backout logic...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|