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 » IBM MQ Java / JMS » MDB Message Exception Processing

Post new topic  Reply to topic
 MDB Message Exception Processing « View previous topic :: View next topic » 
Author Message
srinivasACN
PostPosted: Thu Aug 11, 2005 11:56 am    Post subject: MDB Message Exception Processing Reply with quote

Apprentice

Joined: 08 Aug 2005
Posts: 43

I have a general question regarding MDB's and message processing.

We are working on a high profile application where data retention is key. So my question is, if I pull a message off of my MQ queue in my application and later on down the line of processing if I encounter an exception, is there a way to roll that message back onto the queue.

thanks.
Back to top
View user's profile Send private message AIM Address
jefflowrey
PostPosted: Thu Aug 11, 2005 12:27 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Define "later on down the line"?

Also, consider learning what a "transaction" is, and how to use one.

And maybe consider learning J2EE before you try using it, too.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
srinivasACN
PostPosted: Thu Aug 11, 2005 12:49 pm    Post subject: Reply with quote

Apprentice

Joined: 08 Aug 2005
Posts: 43

jefflowrey wrote:
Also, consider learning what a "transaction" is, and how to use one.

And maybe consider learning J2EE before you try using it, too.


If this is a genuine recommendation, thanks. I just noticed the developers prior to me, defined BMT in the deployment descriptor. So i will be using the javax.jms.UserTransaction interface to do this.

If this is a put down or some sort of ego boost, I am sorry to say but there is no need for that.

Either way appreciate your help.
Back to top
View user's profile Send private message AIM Address
vennela
PostPosted: Thu Aug 11, 2005 1:38 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

srinivasACN wrote:
If this is a put down or some sort of ego boost, I am sorry to say but there is no need for that.

Infact there is a need for you to learn some basics, especially in the area you are working on.
Transactional processing in one of the very basics for a J2EE guy and Jeff was pointing you to go through some of them. If you had some knowledge about transactional processing, you wouldn't frame the question that way.

Quote:
So i will be using the javax.jms.UserTransaction interface to do this.

Not sure what this is but maybe helpful.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jefflowrey
PostPosted: Fri Aug 12, 2005 5:25 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you do not have a good understanding of transactions, particularly in a J2EE environment and the way that J2EE handles transactions, you can get yourself into trouble that can be both large and subtle. This kind of thing can blow a project way off course.

If "the developers prior to you" are still available, it would be a good idea for you to spend some time discussing this situation with them, and why they chose to use Bean Managed Transactions. Otherwise, it would be a good idea to review this with a senior developer or the architect.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MDB Message Exception Processing
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.