Java Mailing List Archive

Home » JBoss User »

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


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 :

Reply to the post :
jboss-user mailing list
©2008 - Jax Systems, LLC, U.S.A.