Since when we started using UID as ObjectIDs instead of sequence integers, A downloaded CF
(non Clustered) would be invalidated.
Example:
|
| ConnectionFactory cf = context.lookup("/ConnectionFactory");
| killServer();
| restartServer();
| cf.createConnection();
|
The above code would throw an IllegalStateException ("Cannot find object in
dispatcher with id " + UID);
The solution for this would be simple though... (unless there is no consensus on this):
- instead of creating an UID for the ConnectionFactory, we use the uniqueName, so on this
case the CF would still be valid even after a restart.
I believe this would be useful for some use cases, where the client keeps trying to
connect until the server is online again. (doing this through an Exception Listener or
something similar).
Any idea? Tim?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076040#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...