org.exolab.jms.server
Class EmbeddedJmsServer

java.lang.Object
  |
  +--org.exolab.jms.server.JmsServer
        |
        +--org.exolab.jms.server.EmbeddedJmsServer
All Implemented Interfaces:
java.lang.Runnable

Deprecated. This class is no longer used. Use JmsServer.

public class EmbeddedJmsServer
extends JmsServer
implements java.lang.Runnable

This class is used to embed the JMS Server in another component, e.g an EJB or Servlet container etc. It implements Runnable and should be instantiated in its own thread. new Thread(new EmbeddedJmsServer("jms_config.xml"))

Version:
$Revision: 1.3 $ $Date: 2005/08/30 05:46:19 $
Author:
Jim Alateras

Constructor Summary
EmbeddedJmsServer(Configuration config)
          Deprecated. Construct a new EmbeddedJmsServer
EmbeddedJmsServer(java.lang.String file)
          Deprecated. Construct a new EmbeddedJmsServer
 
Method Summary
 ServiceManager getServiceManager()
          Deprecated. no replacement
 void run()
          Deprecated. This method calls the init method on the serverObj_.It assumes that the serverObj, has been correctly initialised, which is the responsibility of the constructor.
 
Methods inherited from class org.exolab.jms.server.JmsServer
getServices, init, main, registerServices, usage, version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedJmsServer

public EmbeddedJmsServer(Configuration config)
                  throws ServerException
Deprecated. 
Construct a new EmbeddedJmsServer
Parameters:
config - the server configuration
Throws:
ServerException - if the server cannot be created

EmbeddedJmsServer

public EmbeddedJmsServer(java.lang.String file)
                  throws ServerException
Deprecated. 
Construct a new EmbeddedJmsServer
Parameters:
file - configuration file name
Throws:
ServerException - if the server cannot be created
Method Detail

run

public void run()
Deprecated. 
This method calls the init method on the serverObj_.It assumes that the serverObj, has been correctly initialised, which is the responsibility of the constructor. If it fails to initialise the server then it throws FailedToInitialiseServerException exception
Specified by:
run in interface java.lang.Runnable

getServiceManager

public ServiceManager getServiceManager()
Deprecated. no replacement

Return an instance of the service manager
Returns:
ServiceManager


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