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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Using jms api to process messages

jef_2802Feb 1 2017 — edited Feb 1 2017

Hi,

In order to integrate data sent from customer legacy applications in a new business application we will develop in Java a specific treatment to process JMS messages sent.

We will have one simple queue (hosted in an ESB). In terms of design our program will be i think a daemon waiting for messages in the queue.

After the message is retrieved from the JMS queue the processing can be quite long. What's the best technical option to continue reading the queue ? Creating a new thread for each message processing ?

If the program stops or terminates brutally after the message has been retrieved from the queue is the message lost ?

Is there a way to ensure that the message is removed from the queue only after the data have been inserted in target application ?

Thanks a lot

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 1 2017
Added on Feb 1 2017
0 comments
269 views