org.exolab.jms.server
Class ConnectorService
java.lang.Object
|
+--org.exolab.jms.service.Service
|
+--org.exolab.jms.server.ConnectorService
- All Implemented Interfaces:
- Serviceable
- public class ConnectorService
- extends Service
Service that manages the connectors configured for the server.
- Version:
- $Revision: 1.4 $ $Date: 2006/02/23 11:17:40 $
- Author:
- Tim Anderson
|
Method Summary |
protected void |
doStart()
Start the service. |
protected void |
doStop()
Stop the service. |
protected ServerConnector |
initConnector(Connector connector,
javax.naming.Context context)
Create an interface to the server for the specified connector. |
protected void |
initConnectors(javax.naming.Context context)
Creates an interface to the server for each configured connector. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConnectorService
public ConnectorService(Configuration config,
org.exolab.jms.net.connector.Authenticator authenticator,
ServerConnectionFactory factory,
AdminConnectionManager manager,
NameService names,
org.exolab.jms.common.threads.ThreadPoolFactory threads)
- Construct a new
ConnectorService.
- Parameters:
config - the configuration to usenames - the name service
doStart
protected void doStart()
throws ServiceException
- Start the service.
- Overrides:
doStart in class Service
- Throws:
ServiceException - if the service fails to start
doStop
protected void doStop()
throws ServiceException
- Stop the service.
- Overrides:
doStop in class Service
- Throws:
ServiceException - if the service fails to stop
initConnectors
protected void initConnectors(javax.naming.Context context)
throws javax.naming.NamingException,
ServiceException
- Creates an interface to the server for each configured connector.
- Parameters:
context - the initial context- Throws:
javax.naming.NamingException - if administered objects cannot be bound in JNDIServiceException - if an interface can't be created
initConnector
protected ServerConnector initConnector(Connector connector,
javax.naming.Context context)
throws javax.naming.NamingException,
ServiceException
- Create an interface to the server for the specified connector.
- Parameters:
connector - the connectorcontext - the initial context- Returns:
- the interface corresponding to
connector - Throws:
javax.naming.NamingException - if administered objects cannot be bound in JNDIServiceException - if the interface can't be created
Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.