org.jboss.jms.client.remoting
Class CallbackServerFactory
java.lang.Object
org.jboss.jms.client.remoting.CallbackServerFactory
- public class CallbackServerFactory
- extends java.lang.Object
A CallbackServerFactory.
We maintain only one callbackserver per transport per client VM.
This is to avoid having too many resources e.g. server sockets in use on the client
E.g. in the case of a socket transport, if we had one callbackserver per connection then
we would have one server socket listening per connection, so we could run out of available
ports with a lot of connections.
- Version:
- $Revision: 1573 $
$Id: CallbackServerFactory.java 1573 2006-11-17 04:17:38Z ron_sigal $
- Author:
- Tim Fox
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMS_CALLBACK_SUBSYSTEM
public static final java.lang.String JMS_CALLBACK_SUBSYSTEM
- See Also:
- Constant Field Values
CLIENT_HOST
public static final java.lang.String CLIENT_HOST
CLIENT_PORT
public static final int CLIENT_PORT
instance
public static CallbackServerFactory instance
containsCallbackServer
public boolean containsCallbackServer(java.lang.String protocol)
getCallbackServer
public Connector getCallbackServer(InvokerLocator serverLocator)
throws java.lang.Exception
- Throws:
java.lang.Exception
stopCallbackServer
public void stopCallbackServer(java.lang.String protocol)
startCallbackServer
protected Connector startCallbackServer(InvokerLocator serverLocator)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2006 JBoss Inc. All Rights Reserved.