[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Restart Server & ConnectionFactories
clebert.suconic@jboss.com
do-not-reply at jboss.com
Mon Aug 20 17:44:54 EDT 2007
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#4076040
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076040
More information about the jboss-dev-forums
mailing list