@ComponentProfile(summary="Connection for supporting a native WebsphereMQ Client", tag="connections,websphere", recommended={NativeConsumer.class,NativeProducer.class}) public class DetachedConnection extends NativeConnection
This implementation is one that creates a new MQQueueManager for each invocation of connect(). This type of connection means that all MQQueueManager instances will only be connected for the duration of a single message flow through the adapter.
This is the preferred connection for connecting to WebsphereMQ. An AttachedConnection
may stop WebsphereMQ from
performing a controlled shutdown, and possibly stop WebsphereMQ from recovering from an uncontrolled shutdown.
Depending on your WebsphereMQ configuration you will need to have installed and configured the WebsphereMQ Client software for your platform. The jars from the WebsphereMQ Client software should be copied into the adapter's lib directory.
If you require SSL support then you should review this developerWorks article which contains a good primer about the settings that will be required for using SSL with the adapter.
In the adapter configuration file this class is aliased as wmq-detached-connection which is the preferred alternative to the fully qualified classname when building your configuration.
License Required: BASIC
log
Constructor and Description |
---|
DetachedConnection() |
Modifier and Type | Method and Description |
---|---|
protected void |
startConnection() |
protected void |
stopConnection() |
closeConnection, getEnvironmentProperties, getQueueManager, getRedirectExceptionLogging, initConnection, isEnabled, prepareConnection, setEnvironmentProperties, setQueueManager, setRedirectExceptionLogging
connectionAttempts, connectionRetryInterval, createLoggingStatement, getConnectionAttempts, getConnectionRetryInterval, logWarning, setConnectionAttempts, setConnectionRetryInterval
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getLookupName, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setLookupName, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
protected void startConnection() throws CoreException
startConnection
in class AdaptrisConnectionImp
CoreException
protected void stopConnection()
stopConnection
in class AdaptrisConnectionImp