Java Mailing List Archive

http://www.junlu.com/

Home » JBoss User »

[jboss-user] [JBoss Messaging] - Re: Different Message id for each
 listener

manik.surtani@jboss.com

2007-12-30

Replies: Find Java Web Hosting

Author LoginPost Reply
You shouldn't make any assumptions about what a message id contains apart from that it must start with 'ID:' and be unique per message. (This is what is mandated by the JMS spec).

Making any such assumptions further than that will make your code highly brittle and non portable.

Just because JBM ids currently *seem* to be made up of ID:JBM- plus some kind of sequence is no guarantee they actually are, or they will continue to do so in the future.

If you want to maintain a counter you should add your own counter property in the message and maintain it yourself.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116073#4116073

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116073
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.