|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.server.JmsServer
This class contains the main line for instantiating the JMS Server. It dynamically detemrines, from the configuration information which of the servers to implement and then calls the init method on them.
ConfigurationManager
Field Summary | |
protected org.exolab.core.service.ServiceManager |
_services
The service manager |
Constructor Summary | |
JmsServer(org.exolab.jms.config.Configuration config)
Construct a new JmsServer |
|
JmsServer(java.lang.String file)
Construct a new JmsServer , configured from the specified
configuration file. |
Method Summary | |
protected void |
createRegistry()
|
void |
init()
Initialise the server |
protected JmsServerIfc |
initConnector(org.exolab.jms.config.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 |
protected JndiServerIfc |
initJNDIConnector(org.exolab.jms.config.ConnectorResource connector,
javax.naming.Context context)
Creates a JNDI provider interface for the specified connector |
protected void |
initJNDIConnectors(javax.naming.Context context)
Creates a JNDI provider interface for each connector that supports it |
static void |
main(java.lang.String[] args)
This is the main line for the JMS Server. |
protected void |
registerServices()
Initialise the services |
protected static void |
usage()
Print out information on running this sevice |
static void |
version()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.exolab.core.service.ServiceManager _services
Constructor Detail |
public JmsServer(org.exolab.jms.config.Configuration config) throws ServerException
JmsServer
config
- the server configurationServerException
- if the server cannot be createdpublic JmsServer(java.lang.String file) throws ServerException
JmsServer
, configured from the specified
configuration file.file
- configuration file nameServerException
- if the server cannot be createdMethod Detail |
public void init() throws javax.naming.NamingException, ServerException
javax.naming.NamingException
- if administered objects cannot be bound in JNDIServerException
- if the server cannot be initialisedpublic static void main(java.lang.String[] args)
public static void version()
protected static void usage()
protected void registerServices() throws org.exolab.core.service.ServiceException
protected void initConnectors(javax.naming.Context context) throws javax.naming.NamingException, ServerException
context
- the initial contextjavax.naming.NamingException
- if administered objects cannot be bound in JNDIServerException
- if an interface can't be createdprotected JmsServerIfc initConnector(org.exolab.jms.config.Connector connector, javax.naming.Context context) throws javax.naming.NamingException, ServerException
connector
- the connectorcontext
- the initial contextconnector
javax.naming.NamingException
- if administered objects cannot be bound in JNDIServerException
- if the interface can't be createdprotected void createRegistry() throws ServerException
protected void initJNDIConnectors(javax.naming.Context context) throws javax.naming.NamingException, ServerException
context
- the initial contextjavax.naming.NamingException
- if a provider can't be initialisedServerException
- if a provider can't be createdprotected JndiServerIfc initJNDIConnector(org.exolab.jms.config.ConnectorResource connector, javax.naming.Context context) throws javax.naming.NamingException, ServerException
connector
- the connectorcontext
- the initial contextjavax.naming.NamingException
- if the provider can't be initialisedServerException
- if the provider can't be created
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |