ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » IBM MQ - Message Redelivery Issue

Post new topic  Reply to topic
 IBM MQ - Message Redelivery Issue « View previous topic :: View next topic » 
Author Message
Pras_1234
PostPosted: Tue Nov 14, 2006 10:21 pm    Post subject: IBM MQ - Message Redelivery Issue Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Nov 14, 2006 10:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jbanoop
PostPosted: Tue Nov 14, 2006 10:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Pras_1234
PostPosted: Tue Nov 14, 2006 10:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Pras_1234
PostPosted: Tue Nov 14, 2006 10:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Nov 15, 2006 7:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » IBM MQ - Message Redelivery Issue
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.