|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MDB Message Exception Processing |
« View previous topic :: View next topic » |
Author |
Message
|
srinivasACN |
Posted: Thu Aug 11, 2005 11:56 am Post subject: MDB Message Exception Processing |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Aug 11, 2005 12:27 pm Post subject: |
|
|
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 |
|
 |
srinivasACN |
Posted: Thu Aug 11, 2005 12:49 pm Post subject: |
|
|
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 |
|
 |
vennela |
Posted: Thu Aug 11, 2005 1:38 pm Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Fri Aug 12, 2005 5:25 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|