[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBMESSAGING-541 - Multiple connections on a single threa

clebert.suconic@jboss.com do-not-reply at jboss.com
Fri Sep 15 01:49:15 EDT 2006


Found the root cause of this.

Remoting will always reuse the same internal client to a given locator. 

On InvokerRegistry.createClientInvoker if a previous locar was used with the same properties, the first locator will be used.

On remoting there is a testcase testing this under org.jboss.test.remoting.lease.socket.multiple. If you change both connections to use the same id you will have the behavior described on this bug.


so, to fix this we could either be doing the proper reference counting before stopping the lease, or having each connection setting a different nameId. 

Having each client Connection having a property differntiating locator will force each connection to open a new socket (which is what we wanted anyways I believe).

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971839#3971839

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971839



More information about the jboss-dev-forums mailing list