Advertisement

04.10.2008 at 02:51PM PDT, ID: 23313500
[x]
Attachment Details

Putting JMS Queue to sleep

Asked by AdilK in Enterprise Java Beans (EJB), Java Programming Language, J2EE

Tags: Java, JEE / EJB

Hi,
   I wanted to know if there is a way to temporarily put either the JMS queue to sleep or tell the MBean to stop reading from the queue for X amount of seconds/minutes. Basically my MBean gets a message from the queue and passes it to a proxy which calls a HTTP server and passes the message along. If the HTTP server is not available I want to be able to go to sleep for a few seconds and then try again later. Assuming I can roll back and put the message back on the queue if unable to deliver it to the HTTP endpoint, the MBean will continuously read the same message from the queue and try to connect to the HTTP Url which is counter productive. Thanks in Advance

AdilStart Free Trial
[+][-]04.11.2008 at 10:53AM PDT, ID: 21336547

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.11.2008 at 10:53AM PDT, ID: 21336552

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.11.2008 at 12:08PM PDT, ID: 21337191

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.11.2008 at 02:20PM PDT, ID: 21338326

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.14.2008 at 03:02AM PDT, ID: 21348736

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Enterprise Java Beans (EJB), Java Programming Language, J2EE
Tags: Java, JEE / EJB
Sign Up Now!
Solution Provided By: ravs
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628