Length of JMS Message ID

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Length of JMS Message ID

TheQL
This post was updated on .
Hello,

the length of the JMS Message ID for messages received via JavaMail Bridge seems to have grown. Currently I am seeing IDs of this type:

JMSMessageID ID:-1573529075204164466/14139413/MB_HA/javamailbridge/XXX_YYYY_Mailbridge_account-name_2/1417130790105/13

So there is the name of the Router and the name of the mailbridge included, anyway formerly they must have been shorter. Was there an increase in some of the other fields and why? Is there a default/maximum length for the JMS Message ID? Some of our programs save the ID in MySQL and the field length was no longer sufficient after a restart of the Mailbridge yesterday.

Edit: Formerly the ID didn't include the name, correct?
Here is one from 2013 - ID:1565809775649249901/118/MB_HA/javamailbridge/1363781744746/5160
When did that change? Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Length of JMS Message ID

IIT Software
Administrator
Yes, it is longer now to ensure uniqueness.
Reply | Threaded
Open this post in threaded view
|

Re: Length of JMS Message ID

TheQL
Right, already thought so, as we had some problems in the past with exactly that. But can you pinpoint to when that has changed? I just find a little odd, that the restart of the bridge yesterday led to the varchar(100) field no longer being long enough. We already fixed that though, just being curious. Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Length of JMS Message ID

IIT Software
Administrator
This was changed with release 9.0.0.
Reply | Threaded
Open this post in threaded view
|

Re: Length of JMS Message ID

TheQL
Thanks, still unsure about the change caused by the bridge restart.

Before:
ID:-1573529075204164466/149/MB_HA/javamailbridge/XXX_YYYY_Mailbridge_YYYY-ZZZ_2/1410962270762/9502

After:
ID:-1573529075204164466/14139413/MB_HA/javamailbridge/XXX_YYYY_Mailbridge_YYYY-ZZZ_2/1417130790105/87

Second field is much longer, last one is shorter though. Never mind...
Reply | Threaded
Open this post in threaded view
|

Re: Length of JMS Message ID

IIT Software
Administrator
No change in format here. The 2nd field is the number of messages transferred over this bridge since start. 14 millions in this case.
Reply | Threaded
Open this post in threaded view
|

Re: Length of JMS Message ID

TheQL
Ok, but the actual counter is 88 at the moment (checked via Explorer). Not sure where 14 millions should be coming from.
Reply | Threaded
Open this post in threaded view
|

Re: Length of JMS Message ID

TheQL
We do have in fact a second mailbridge going to the same consumer, which shows the same behaviour:

ID:-1573529075204164466/14139412/MB_HA/javamailbridge/XXX_YYYY_Mailbridge_YYYY-ZZZ/1417130790100/106

Explorer shows 107 messages in counter. But maybe I can add some info. I didn't actually stop the bridge and start it.
I undeployed the entire JavaMail swiftlet, then added it again, copying the routerconfig.xml back in place to restore the dropped config. I did this as I wanted to restart all Mailbridges at a time without doubleclicking >80 times. Can this somehow have messed up the counters that are used for the message ID? Although in Explorer the counters show sensible values.
Reply | Threaded
Open this post in threaded view
|

Re: Length of JMS Message ID

IIT Software
Administrator
Sorry, the message count is the last field. The other field is the system time mills when the bridge was started.
Reply | Threaded
Open this post in threaded view
|

Re: Length of JMS Message ID

TheQL
Ok, thanks, I was a little confused ;)