|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.server.JmsServer
public class 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(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(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(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(Configuration config) throws ServerException
JmsServer
config
- the server configuration
ServerException
- if the server cannot be createdpublic JmsServer(java.lang.String file) throws ServerException
JmsServer
, configured from the specified
configuration file.
file
- configuration file name
ServerException
- 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 JNDI
ServerException
- 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
org.exolab.core.service.ServiceException
protected void initConnectors(javax.naming.Context context) throws javax.naming.NamingException, ServerException
context
- the initial context
javax.naming.NamingException
- if administered objects cannot be bound in JNDI
ServerException
- if an interface can't be createdprotected JmsServerIfc initConnector(Connector connector, javax.naming.Context context) throws javax.naming.NamingException, ServerException
connector
- the connectorcontext
- the initial context
connector
javax.naming.NamingException
- if administered objects cannot be bound in JNDI
ServerException
- if the interface can't be createdprotected void createRegistry() throws ServerException
ServerException
protected void initJNDIConnectors(javax.naming.Context context) throws javax.naming.NamingException, ServerException
context
- the initial context
javax.naming.NamingException
- if a provider can't be initialised
ServerException
- if a provider can't be createdprotected JndiServerIfc initJNDIConnector(ConnectorResource connector, javax.naming.Context context) throws javax.naming.NamingException, ServerException
connector
- the connectorcontext
- the initial context
javax.naming.NamingException
- if the provider can't be initialised
ServerException
- if the provider can't be created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |