jrun.jms.adapter
Class JRunJMSAdapter

jrunx.kernel.ServiceAdapter
  |
  +--jrunx.kernel.ServicePartition
        |
        +--jrun.jms.adapter.JRunJMSAdapter
All Implemented Interfaces:
JMSAdapter, JRunJMSAdapterMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean
Direct Known Subclasses:
JRunMQAdapter, SonicMQAdapter

public abstract class JRunJMSAdapter
extends ServicePartition
implements JMSAdapter

Author:
Polina Alber
See Also:
Serialized Form

Field Summary
protected  boolean bInitialized
           
protected  java.lang.String ClassPath
           
protected  java.lang.String ConfigFileName
           
protected  java.lang.String HomeDir
           
protected  boolean StartupCleanup
           
 
Fields inherited from class jrunx.kernel.ServicePartition
sortedServices
 
Fields inherited from class jrunx.kernel.ServiceAdapter
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER
 
Fields inherited from interface jrun.jms.adapter.JMSAdapter
QueueConnectionFactoryType, TopicConnectionFactoryType, XAQueueConnectionFactoryType, XATopicConnectionFactoryType
 
Fields inherited from interface jrun.jms.adapter.JRunJMSAdapterMBean
OBJECT_NAME
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
JRunJMSAdapter()
           
 
Method Summary
 void addService(java.lang.Object service, java.lang.String Name)
           
 void destoy()
           
 java.lang.String getClassPath()
           
 java.lang.String getConfigFileName()
           
 javax.jms.ConnectionFactory getConnectionFactory(java.lang.String type, java.lang.String transport)
           
abstract  java.lang.String getDefaultConfigFileName()
           
 javax.jms.Destination getDestination(java.lang.String name, java.lang.String type)
           
 java.lang.String getHomeDir()
           
 java.lang.String getProviderName()
           
 boolean getStartupCleanup()
           
 void init()
          Not every service needs to init, implement it out of convenience.
 void removeService(javax.management.ObjectName objName)
          Remove a ServiceMBean from the partitioned Services by its ObjectName
 void setClassPath(java.lang.String clpath)
           
 void setConfigFileName(java.lang.String cfg)
           
 void setHomeDir(java.lang.String hdir)
           
 void setStartupCleanup(boolean bDoCleanup)
           
 
Methods inherited from class jrunx.kernel.ServicePartition
addService, addService, getServices, invokeChain, iterator, removeService
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, destroy, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, start, stop, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrun.jms.adapter.JMSAdapter
addDestination, getAdapterConfiguration, getConnectionFactoryName, hasXASupport, loadAdapterConfiguration, removeDestination
 
Methods inherited from interface jrun.jms.adapter.JRunJMSAdapterMBean
getProviderVersion
 
Methods inherited from interface jrunx.kernel.ServicePartitionMBean
addService, addService, iterator, removeService
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, start, stop, updateStatus
 

Field Detail

HomeDir

protected java.lang.String HomeDir

ClassPath

protected java.lang.String ClassPath

ConfigFileName

protected java.lang.String ConfigFileName

StartupCleanup

protected boolean StartupCleanup

bInitialized

protected boolean bInitialized
Constructor Detail

JRunJMSAdapter

public JRunJMSAdapter()
Method Detail

getProviderName

public java.lang.String getProviderName()
Specified by:
getProviderName in interface JRunJMSAdapterMBean

setHomeDir

public void setHomeDir(java.lang.String hdir)
Specified by:
setHomeDir in interface JRunJMSAdapterMBean

getHomeDir

public java.lang.String getHomeDir()
Specified by:
getHomeDir in interface JRunJMSAdapterMBean

setClassPath

public void setClassPath(java.lang.String clpath)
Specified by:
setClassPath in interface JRunJMSAdapterMBean

getClassPath

public java.lang.String getClassPath()
Specified by:
getClassPath in interface JRunJMSAdapterMBean

getConfigFileName

public java.lang.String getConfigFileName()
Specified by:
getConfigFileName in interface JRunJMSAdapterMBean

setConfigFileName

public void setConfigFileName(java.lang.String cfg)
Specified by:
setConfigFileName in interface JRunJMSAdapterMBean

getDefaultConfigFileName

public abstract java.lang.String getDefaultConfigFileName()

init

public void init()
          throws java.lang.Exception
Description copied from class: ServiceAdapter
Not every service needs to init, implement it out of convenience.
Specified by:
init in interface Service
Overrides:
init in class ServiceAdapter

destoy

public void destoy()
            throws java.lang.Exception

addService

public void addService(java.lang.Object service,
                       java.lang.String Name)
                throws java.lang.Exception

removeService

public void removeService(javax.management.ObjectName objName)
                   throws java.lang.Exception
Description copied from interface: ServicePartitionMBean
Remove a ServiceMBean from the partitioned Services by its ObjectName
Specified by:
removeService in interface ServicePartitionMBean
Overrides:
removeService in class ServicePartition

getDestination

public javax.jms.Destination getDestination(java.lang.String name,
                                            java.lang.String type)
                                     throws javax.jms.JMSException
Specified by:
getDestination in interface JMSAdapter

getConnectionFactory

public javax.jms.ConnectionFactory getConnectionFactory(java.lang.String type,
                                                        java.lang.String transport)
                                                 throws javax.jms.JMSException
Specified by:
getConnectionFactory in interface JMSAdapter

getStartupCleanup

public boolean getStartupCleanup()
Specified by:
getStartupCleanup in interface JRunJMSAdapterMBean

setStartupCleanup

public void setStartupCleanup(boolean bDoCleanup)
Specified by:
setStartupCleanup in interface JRunJMSAdapterMBean


Copyright � 2002 Macromedia Corporation. All Rights Reserved.