org.exolab.jms.server
Class JmsServer

java.lang.Object
  |
  +--org.exolab.jms.server.JmsServer
Direct Known Subclasses:
EmbeddedJmsServer

public class JmsServer
extends java.lang.Object

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.

Version:
$Revision: 1.6 $ $Date: 2006/02/23 11:17:40 $
Author:
Jim Alateras, Tim Anderson

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  Services getServices()
          Deprecated. no replacement
 void init()
          Initialise the server
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
 

Constructor Detail

JmsServer

public JmsServer(Configuration config)
Construct a new JmsServer.
Parameters:
config - the server configuration

JmsServer

public JmsServer(java.lang.String file)
          throws ServerException
Construct a new JmsServer, configured from the specified configuration file.
Parameters:
file - configuration file name
Throws:
ServerException - if the server cannot be created
Method Detail

init

public void init()
          throws javax.naming.NamingException,
                 ServiceException
Initialise the server
Throws:
javax.naming.NamingException - if administered objects cannot be bound in JNDI
ServiceException - if the server cannot be initialised

main

public static void main(java.lang.String[] args)
This is the main line for the JMS Server. It processes the command line argument, instantiates an instance of the server class and calls the init routine on it.

version

public static void version()

usage

protected static void usage()
Print out information on running this sevice

getServices

protected Services getServices()
Deprecated. no replacement

Returns the services
Returns:
ServiceManager

registerServices

protected void registerServices()
                         throws ServiceException
Initialise the services


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.