[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Failure on RemotingConnectionConfigurationTest::testConn
ron.sigal@jboss.com
do-not-reply at jboss.com
Wed Mar 21 20:24:37 EDT 2007
Ah, the dangers of reflection.
In the course of working on JBREM-727 ("Make Client's implicitly created Connectors accessible") I changed the field Client.callbackConnectors to map from an InvokerCallbackHandler to the *set* of all the Connectors with which it is registered. Since Messaging's JMSRemotingConnection always creates a new InvokerCallbackHandler (CallbackManager, in particular) for each connection, callbackConnectors should map each CallbackManager to a singleton set. I.e.,
| Connector connector = (Connector)callbackConnectors.get(callbackHandler);
|
should be
| Connector connector = (Connector)callbackConnectors.get(callbackHandler).iterator().next();
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030428#4030428
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030428
More information about the jboss-dev-forums
mailing list