jrun.jms.adapter
Class SonicMQAdapter

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

public class SonicMQAdapter
extends JRunJMSAdapter
implements SonicMQAdapterMBean

See Also:
Serialized Form

Fields inherited from class jrun.jms.adapter.JRunJMSAdapter
bInitialized, ClassPath, ConfigFileName, HomeDir, 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.SonicMQAdapterMBean
OBJECT_NAME
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Fields inherited from interface jrun.jms.adapter.JMSAdapter
QueueConnectionFactoryType, TopicConnectionFactoryType, XAQueueConnectionFactoryType, XATopicConnectionFactoryType
 
Constructor Summary
SonicMQAdapter()
           
 
Method Summary
 javax.jms.Destination addDestination(java.lang.String name, java.lang.String type, java.lang.String jndiName)
           
 void bindConnectionFactories()
           
 void bindDestinations()
           
 java.lang.Object getAdapterConfiguration()
           
 boolean getAutoStart()
           
protected  progress.message.tools.BrokerManager getBrokerManager()
           
protected  java.net.URLClassLoader getClassLoader()
           
 java.lang.String getConnectionFactoryName(java.lang.String transport, int type)
           
 java.lang.String getDefaultConfigFileName()
           
 java.lang.String getHost()
           
 java.lang.String getPort()
           
 java.lang.String getProviderName()
           
 java.lang.String getProviderVersion()
           
 boolean hasXASupport()
           
 void init()
          Not every service needs to init, implement it out of convenience.
 void loadAdapterConfiguration()
           
protected  void logError(java.lang.String err)
           
protected  void logInfo(java.lang.String info)
           
 void removeDestination(java.lang.String name)
           
 void setAutoStart(boolean bAutoStart)
           
protected  void setBrokerStarted()
           
 void setHost(java.lang.String host)
           
 void setPort(java.lang.String port)
           
 void start()
          Every service other than mere data collections should start
 void stop()
          Every service other than mere data collections should stop
 
Methods inherited from class jrun.jms.adapter.JRunJMSAdapter
addService, destoy, getClassPath, getConfigFileName, getConnectionFactory, getDestination, getHomeDir, getStartupCleanup, removeService, setClassPath, setConfigFileName, setHomeDir, setStartupCleanup
 
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, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrun.jms.adapter.JRunJMSAdapterMBean
getClassPath, getConfigFileName, getHomeDir, getStartupCleanup, setClassPath, setConfigFileName, setHomeDir, setStartupCleanup
 
Methods inherited from interface jrunx.kernel.ServicePartitionMBean
addService, addService, iterator, removeService, 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, updateStatus
 

Constructor Detail

SonicMQAdapter

public SonicMQAdapter()
Method Detail

getHost

public java.lang.String getHost()
Specified by:
getHost in interface SonicMQAdapterMBean

setHost

public void setHost(java.lang.String host)
Specified by:
setHost in interface SonicMQAdapterMBean

setPort

public void setPort(java.lang.String port)
Specified by:
setPort in interface SonicMQAdapterMBean

getPort

public java.lang.String getPort()
Specified by:
getPort in interface SonicMQAdapterMBean

getProviderVersion

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

getProviderName

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

getAutoStart

public boolean getAutoStart()
Specified by:
getAutoStart in interface SonicMQAdapterMBean

setAutoStart

public void setAutoStart(boolean bAutoStart)
Specified by:
setAutoStart in interface SonicMQAdapterMBean

getClassLoader

protected java.net.URLClassLoader getClassLoader()

setBrokerStarted

protected void setBrokerStarted()

getBrokerManager

protected progress.message.tools.BrokerManager getBrokerManager()

getConnectionFactoryName

public java.lang.String getConnectionFactoryName(java.lang.String transport,
                                                 int type)
                                          throws javax.jms.JMSException

hasXASupport

public boolean hasXASupport()

addDestination

public javax.jms.Destination addDestination(java.lang.String name,
                                            java.lang.String type,
                                            java.lang.String jndiName)
                                     throws javax.jms.JMSException

removeDestination

public void removeDestination(java.lang.String name)
                       throws javax.jms.JMSException

getAdapterConfiguration

public java.lang.Object getAdapterConfiguration()

loadAdapterConfiguration

public void loadAdapterConfiguration()

getDefaultConfigFileName

public java.lang.String getDefaultConfigFileName()
Overrides:
getDefaultConfigFileName in class JRunJMSAdapter

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 JRunJMSAdapter

start

public void start()
           throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service other than mere data collections should start
Specified by:
start in interface Service
Overrides:
start in class ServiceAdapter

stop

public void stop()
          throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service other than mere data collections should stop
Specified by:
stop in interface Service
Overrides:
stop in class ServiceAdapter

bindDestinations

public void bindDestinations()
                      throws javax.jms.JMSException

bindConnectionFactories

public void bindConnectionFactories()
                             throws javax.jms.JMSException

logError

protected void logError(java.lang.String err)

logInfo

protected void logInfo(java.lang.String info)


Copyright � 2002 Macromedia Corporation. All Rights Reserved.