Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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: 1.1 $ $Id: CallbackServerFactory.java,v 1.1 2006/06/24 09:05:36 timfox Exp $
Author:
  Tim Fox

Field Summary
`static CallbackServerFactory` | `instance`
`static java.lang.String` | `JMS_CALLBACK_SUBSYSTEM`

Method Summary
`boolean` | `containsCallbackServer(java.lang.String protocol)`
`Connector` | `getCallbackServer(InvokerLocator serverLocator)`
`void` | `returnCallbackServer(java.lang.String protocol)`
`protected Connector` | `startCallbackServer(InvokerLocator serverLocator)`
`protected void` | `stopCallbackServer(Connector server)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### JMS_CALLBACK_SUBSYSTEM

    public static final java.lang.String JMS_CALLBACK_SUBSYSTEM

See Also:
  Constant Field Values

### instance

    public static CallbackServerFactory instance

Method Detail

### containsCallbackServer

    public boolean containsCallbackServer(java.lang.String protocol)

### getCallbackServer

    public Connector getCallbackServer(InvokerLocator serverLocator)
                                throws java.lang.Exception

  Throws:
    `java.lang.Exception`

### returnCallbackServer

    public void returnCallbackServer(java.lang.String protocol)

### startCallbackServer

    protected Connector startCallbackServer(InvokerLocator serverLocator)
                                     throws java.lang.Exception

  Throws:
    `java.lang.Exception`

### stopCallbackServer

    protected void stopCallbackServer(Connector server)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 JBoss Inc. All Rights Reserved.