[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Persistence - control the marking of messages to be dele
Yes, and it turns out that AUTO_ACKNOWLEDGE is already doing what I want it to do. AUTO_ACKNOWLEDGE is meant to send the ack at the end of the onMessage() method, so that actually meets my needs. I was making it harder on myself than I needed. ;-) Anyone interested in learning more about acknowledgment modes or transactional messages should read the following article: http://www.javaworld.com/javaworld/jw-03-2002/jw-0315-jms.html View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854115#3854115 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854115 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Persistence - control the marking of messages to be dele
You can also add transction required to your ejb-jar.xml MDBBean * Required View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853988#3853988 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853988 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Persistence - control the marking of messages to be dele
I believe I have resolved my issue. The trick is to use the CLIENT_ACKNOWLEDGE. I believe the default is AUTO_ACKNOWLEDGE. This should work with any subscriber, but for an MDB, I just needed to add CLIENT_ACKNOWLEDGE to my ejb-jar.xml, add a Message.acknowledge(); to my onMessage() within the MDB, and modify my creation of the session to be topicConnection.createTopicSession(false, Session.CLIENT_ACKNOWLEDGE); For more information, see the following links: http://docs.jboss.org/admin-devel/Chap6.html http://java.sun.com/j2ee/1.4/docs/api/javax/jms/Session.html#CLIENT_ACKNOWLEDGE View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853943#3853943 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853943 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Persistence - control the marking of messages to be dele
Another angle that would work for solving my problem is if there is any way to store the message persistently before the MDB (or any other subscriber) returns the ack to the topic. Is there any way to do that? Can anyone point me in the right direction on where to read about this problem? By the way, if I need to use queues instead of topics to make this happen, I would be interested in hearing about that as well. If anyone can help, it would be GREATLY appreciated. Thank you! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853303#3853303 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853303 --- This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Persistence - control the marking of messages to be dele
To expand, the following is the scenario I desire: 1. A message is posted to a persistent topic 2. An MDB reads the message and does it's business logic (the MDB may be across the network) 3. The client application stores the message persistently before doing anything else 4. The client application sends an acknowledgement to the server stating that the message was received 5. The server receives the acknowledgement 6. The server marks the message in the topic for deletion 7. The message is deleted from the persistent topic Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853212#3853212 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853212 --- This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user