Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

consuming a jms queue from a multithread application

843830May 6 2007 — edited Oct 30 2007
Hi
Thank you for reading my post.
I have an application which shuld consume message of a queue.
my application is multithread and what i want to know is:

- How i can ask queue to remove a message after my thread finished its work with the message, by this way i can ensure that if my thread face an exception after it read the message my message will not lose.

- As it is multithread application, How i can ensure that a message is not delivered to two or more thread? is there any way to consume the messages in a synchronized way?

Will synchronized access restrict the performance?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 27 2007
Added on May 6 2007
7 comments
975 views