2008/10/12 Claus Ibsen <[EMAIL PROTECTED]>: > Hi > > I am wondering if we should consider changing the UID generator in Camel. > BTW: Is the UID generator code from ActiveMQ or where is it from? > > Currently it uses / in the UID and this is not file friendly and it's tied to > the local machine (hostname).
The hostname & timestamp is used to try ensure its a globally unique ID. We should be able to zap the / though pretty easily :) > Shouldn't we have a 100% neutral ID? > We could maybe use java.rmi.server.UID to generate it > > Maybe we could make it pluggable, as I have been wondering it would be nice > for testing and development to use simple int counters so you can see from > the exchange id that it's the 3th exchange etc. IIRC the last part of the ID is a counter. Maybe we just need to add other counters to make it easier to trace? -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com