electric.server.jms.mqseries
Class MQSeriesAdapter

java.lang.Object
  extended byelectric.server.jms.mqseries.MQSeriesAdapter
All Implemented Interfaces:
IJMSAdapter, IJMSConstants

public class MQSeriesAdapter
extends java.lang.Object
implements IJMSAdapter, IJMSConstants

MQSeriesAdapter

Author:
webMethods

Field Summary
static java.lang.String JMS_MQDEFAULTBASEQUEUENAME
           
 
Fields inherited from interface electric.server.jms.IJMSConstants
DEFAULT_CONNECTION_FACTORY, DEFAULT_QUEUE, GLUE_OPTIMIZATIONS, JMS_QUEUE, JMS_QUEUE_CONNECTION_FACTORY, JMS_RESPONSE_QUEUE, JMS_REUSE_QUEUE_CONNECTIONS, JNDI_PROPERTIES, RELATED_MESSAGE, ROOT, SERVICE_URN, TOTAL_MESSAGE_PARTS, WSDL_NOT_FOUND, WSDL_REQUEST
 
Constructor Summary
MQSeriesAdapter()
           
 
Method Summary
 java.lang.String getClassName()
          Returns the name of the class unique to the jms provider represented by an implementation of this interface
 java.lang.String getDefaultBaseQueueName()
           
protected  java.util.Hashtable getJNDILookupProps()
           
 java.lang.String getProviderName()
          Return the name of the provider
 javax.jms.Queue getQueue(java.lang.String queueName, boolean create)
          This method is called by the JMS subsystem of GLUE to request construction and placement of a JMS Queue object in a JNDI directory The method returns the name of the queue conforming to the requirements of the provider
 javax.jms.QueueConnectionFactory getQueueConnectionFactory(java.lang.String queueConnFactoryName, boolean create)
          This method is called by the JMS subsystem of GLUE to request construction and placement of a JMS Queue Connection Factory object in a JNDI directory The method returns the name of the queue connection factory conforming to the requirements of the provider
 Context getStartupContext()
          Get the context with the properties used to initialize/customize this adapter.
 boolean isStarted()
          Test if the admin had been started
 void setDefaultBaseQueueName(java.lang.String defaultBaseQueueName)
           
 void shutdown()
          Close any resources used by the admin and shutdown the admin
 void startup(Context context)
          Get any setting overrides from the context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JMS_MQDEFAULTBASEQUEUENAME

public static final java.lang.String JMS_MQDEFAULTBASEQUEUENAME
See Also:
Constant Field Values
Constructor Detail

MQSeriesAdapter

public MQSeriesAdapter()
Method Detail

startup

public void startup(Context context)
             throws javax.naming.NamingException
Description copied from interface: IJMSAdapter
Get any setting overrides from the context. Perform initialization and start the admin.

Specified by:
startup in interface IJMSAdapter
Parameters:
context -
Throws:
javax.naming.NamingException

isStarted

public boolean isStarted()
Description copied from interface: IJMSAdapter
Test if the admin had been started

Specified by:
isStarted in interface IJMSAdapter

shutdown

public void shutdown()
              throws javax.naming.NamingException
Description copied from interface: IJMSAdapter
Close any resources used by the admin and shutdown the admin

Specified by:
shutdown in interface IJMSAdapter
Throws:
javax.naming.NamingException

getStartupContext

public Context getStartupContext()
Get the context with the properties used to initialize/customize this adapter. This method is used only when Async objects are persisted. The serialization of Async object requires persisting of any state information used for the reconnection when object is deserialized.

Specified by:
getStartupContext in interface IJMSAdapter

getQueue

public javax.jms.Queue getQueue(java.lang.String queueName,
                                boolean create)
                         throws javax.jms.JMSException,
                                javax.naming.NamingException
Description copied from interface: IJMSAdapter
This method is called by the JMS subsystem of GLUE to request construction and placement of a JMS Queue object in a JNDI directory The method returns the name of the queue conforming to the requirements of the provider

Specified by:
getQueue in interface IJMSAdapter
Parameters:
queueName -
create - if true, create the queue
Throws:
javax.jms.JMSException
javax.naming.NamingException

getQueueConnectionFactory

public javax.jms.QueueConnectionFactory getQueueConnectionFactory(java.lang.String queueConnFactoryName,
                                                                  boolean create)
                                                           throws javax.jms.JMSException,
                                                                  javax.naming.NamingException
Description copied from interface: IJMSAdapter
This method is called by the JMS subsystem of GLUE to request construction and placement of a JMS Queue Connection Factory object in a JNDI directory The method returns the name of the queue connection factory conforming to the requirements of the provider

Specified by:
getQueueConnectionFactory in interface IJMSAdapter
Parameters:
queueConnFactoryName -
create - if true, create the queue
Throws:
javax.jms.JMSException
javax.naming.NamingException

getClassName

public java.lang.String getClassName()
Description copied from interface: IJMSAdapter
Returns the name of the class unique to the jms provider represented by an implementation of this interface

Specified by:
getClassName in interface IJMSAdapter

getJNDILookupProps

protected java.util.Hashtable getJNDILookupProps()

getProviderName

public java.lang.String getProviderName()
Description copied from interface: IJMSAdapter
Return the name of the provider

Specified by:
getProviderName in interface IJMSAdapter

getDefaultBaseQueueName

public java.lang.String getDefaultBaseQueueName()

setDefaultBaseQueueName

public void setDefaultBaseQueueName(java.lang.String defaultBaseQueueName)
Parameters:
defaultBaseQueueName -


copyright© 2001-2004 by webMethods All Rights Reserved.