net.sf.phoenixjms.server.impl
Class OpenJMSServer
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
net.sf.phoenixjms.server.impl.OpenJMSServer
- All Implemented Interfaces:
- org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Initializable, JMSServer, org.apache.avalon.framework.logger.LogEnabled
- public class OpenJMSServer
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements JMSServer, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable
OpenJMS 0.7.5 wrapper for Avalon and Pico Containers.
- Version:
- 0.9.0
- Author:
- Alexis Agahi , J Aaron Farr
Fields inherited from interface net.sf.phoenixjms.server.JMSServer |
ROLE |
Constructor Summary |
OpenJMSServer()
|
OpenJMSServer(java.lang.String config,
org.apache.avalon.framework.logger.Logger logger)
constructor for PicoContainer. |
Method Summary |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
configuration method for Avalon containers. |
void |
contextualize(org.apache.avalon.framework.context.Context context)
contextualizes the server using an Avalon context. |
java.lang.String |
getProviderName()
|
void |
initialize()
starts the embedded JMS server. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenJMSServer
public OpenJMSServer()
OpenJMSServer
public OpenJMSServer(java.lang.String config,
org.apache.avalon.framework.logger.Logger logger)
throws java.lang.Exception
- constructor for PicoContainer. Automatically initializes the server.
- Parameters:
config
- the openjms.xml configuration file locationlogger
- an Avalon Framework Logger
- Throws:
java.lang.Exception
contextualize
public void contextualize(org.apache.avalon.framework.context.Context context)
- contextualizes the server using an Avalon context.
Specifically looks for a home or working directory with the key
"app.home" or "urn:avalon:home"
- Specified by:
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
- Parameters:
context
- an Avalon Context
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- configuration method for Avalon containers. See examples for valid
configuration schema.
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Parameters:
configuration
- the Avalon configuration
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
initialize
public void initialize()
throws java.lang.Exception
- starts the embedded JMS server. The PicoContainer constructor automatically
calls this method.
- Specified by:
initialize
in interface org.apache.avalon.framework.activity.Initializable
- Throws:
java.lang.Exception
getProviderName
public java.lang.String getProviderName()
- Specified by:
getProviderName
in interface JMSServer
Copyright © 2002-2003 PheonixJMS. All Rights Reserved.