[jboss-user] [Remoting] - Re: InvokerLocator already exists for listener

dunks80 do-not-reply at jboss.com
Thu Oct 26 08:17:54 EDT 2006


Just for more info the callbackHandler in question is coming from org.jboss.jms.client.remoting.JMSRemotingConnection 


  | public JMSRemotingConnection(String serverLocatorURI, boolean clientPing) throws Throwable
  |    { 
  |       serverLocator = new InvokerLocator(serverLocatorURI);
  |       this.clientPing = clientPing;
  |       dummyCallbackHandler = new DummyCallbackHandler();
  | 
  |       log.debug(this + " created");
  |    }
  | 
and is later used...


  | public void start() throws Throwable
  |    {
  |       ...
  |        // We add a dummy callback handler only to trigger the addListener method on the
  |       // JMSServerInvocationHandler to be called, which allows the server to get hold of a reference
  |       // to the callback client so it can make callbacks
  | 
  |       client.addListener(dummyCallbackHandler, callbackServer.getLocator());
  |       ...
  |    }
  | 

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

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



More information about the jboss-user mailing list