[jboss-user] [JBoss Messaging] - Re: Different Message id for each listener
timfox
do-not-reply at jboss.com
Sun Dec 30 07:29:01 EST 2007
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
More information about the jboss-user
mailing list