Posted By:
David_Allen
Posted On:
Monday, June 30, 2003 12:24 AM
I have a Message Producer that creates a QueueSession with AUTO_ACKNOWLEDGE as the acknowledgement mode. When a message is received, a Message Driven Bean will partition work off to another component depending on the message type. One component in particular is a Session Bean used to FTP a file. If the file transfer fails, i would like to wait for 15 minutes before re-trying. I don't want to hold on to a MDB instance while waiting to re-transfer the file, and from what i have read, it isn't recommended to start threads in the EJB Container. I would like to do something like this: onMessage 1: Determine message type, 2: Call the appropriate helper class/Session Bean, and 3: Return witho
More>>
I have a Message Producer that creates a QueueSession with AUTO_ACKNOWLEDGE as the acknowledgement mode. When a message is received, a Message Driven Bean will partition work off to another component depending on the message type.
One component in particular is a Session Bean used to FTP a file. If the file transfer fails, i would like to wait for 15 minutes before re-trying.
I don't want to hold on to a MDB instance while waiting to re-transfer the file, and from what i have read, it isn't recommended to start threads in the EJB Container. I would like to do something like this:
onMessage
1: Determine message type,
2: Call the appropriate helper class/Session Bean, and
3: Return without waiting.
Can anyone help?
Also, can someone tell me when an AUTO_ACKNOWLEDGE message is actually acknowledged? Is it as soon as the message is retrieved, or when onMessage has completed successfully?
Thankyou!
<<Less