atom feed17 messages in net.java.dev.glassfish.usersRe: How do you poll a Glassfish JMS q...
FromSent OnAttachments
glas...@javadesktop.orgOct 4, 2009 12:49 am 
Felipe GaúchoOct 4, 2009 12:53 am 
glas...@javadesktop.orgOct 4, 2009 1:03 am 
Felipe GaúchoOct 4, 2009 1:40 am 
glas...@javadesktop.orgOct 4, 2009 2:36 am 
VTR Ravi KumarOct 4, 2009 2:47 am 
Felipe GaúchoOct 4, 2009 2:56 am 
glas...@javadesktop.orgOct 4, 2009 7:56 am 
Trond StrømmeOct 5, 2009 2:14 am 
Trond StrømmeOct 5, 2009 2:29 am 
glas...@javadesktop.orgOct 5, 2009 6:26 pm 
glas...@javadesktop.orgOct 6, 2009 3:23 pm 
glas...@javadesktop.orgOct 6, 2009 10:48 pm 
glas...@javadesktop.orgOct 7, 2009 1:32 am 
glas...@javadesktop.orgOct 7, 2009 3:27 am 
glas...@javadesktop.orgOct 7, 2009 4:04 pm 
glas...@javadesktop.orgOct 8, 2009 3:21 pm 
Subject:Re: How do you poll a Glassfish JMS queue say every hour?
From:glas...@javadesktop.org (glas@javadesktop.org)
Date:Oct 8, 2009 3:21:15 pm
List:net.java.dev.glassfish.users

Hi John,

Can an MDB change the value of a message such as "retryNumber" for it to be
picked up again by the selector?

No, but JMSJCA does allow you to maintain a state on a message, especially if
that message will be rolled back. For this you can set a user property on the
message, and the next time this message is redelivered you can read this value
back from the message. The values are kept in memory, so they won't survive a
system restart.

All this is within a business process context and not any kind of infrastructure
problem whereby

JMSJCA supports global interceptors so that you could potentially factor out
this infrastructure logic.

These facilities were built to support a customer who had similar requirements
as you in terms of an error handling system and retries. Your requirements
appear to be not that much different.

Frank [Message sent by forum member 'fkieviet' (fran@sun.com)]

http://forums.java.net/jive/thread.jspa?messageID=367356