Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Connections | Creating a WmManagedConnectionFactory Implementation Class
 
Creating a WmManagedConnectionFactory Implementation Class
 
Metadata Model for Connection
WmDescriptor Interface
Create an adapter connection factory class by extending the com.wm.adk.connection.WmManagedConnectionFactory base class. You must override the following base class methods in your WmManagedConnectionFactory implementation class:
Method
Description
createManagedConnectionObject
Constructs a new connection object (for example, SimpleConnection).
queryTransactionSupportLevel
Specifies the transactional capabilities of this factory's connections. For more information, see this method's Javadoc.
fillWmDescriptor
Supports webMethods metadata constructs. For more information, see WmDescriptor Interface.
deleteCallBack
Called when a connection factory is deleted.
disableCallBack
Called when a connection factory is disabled.
enableCallBack
Called when a connection factory is enabled.
initCallBack
Called when a connection factory is initialized.
startupCallBack
Called when a connection factory is started.
shutdownCallBack
Called when a connection factory is stopped.
updateCallBack
Called when a connection factory is updated.
Connection Callbacks
The WmManagedConnectionFactory base class defines a set of callback methods that you can override in any connection factory implementation class. These callbacks are called when the state changes on the connection node.
The following table describes which methods are called on a connection for certain operations.
User Actions
Callbacks Received By Enabled Connection
Enables a disabled connection
*enableCallBack
*startupCallBack
Disables an enabled connection
*shutdownCallBack
*disableCallBack
Enables a package containing an enabled connection
*initCallBack
*startupCallBack
Disables a package containing an enabled connection
*shutdownCallBack
Deletes a package containing an enabled connection
*shutdownCallBack
Reloads a package containing an enabled connection
*shutdownCallBack
*initCallBack
*startupCallBack
Starts Integration Server
*initCallBack
*startupCallBack
Note:
This only occurs if the connections are contained in a package that is enabled.
Shuts down Integration Server
*shutdownCallBack
Note:
This only occurs if the connections are contained in a package that is enabled.
The following table describes which methods are called on a disabled connection for certain operations.
User Actions
Callbacks Received By Disabled Connection
Creates a connection
initCallBack
Updates a connection
updateCallBack
Deletes a connection
deleteCallBack
Copies a connection
initCallBack
Note:
This only occurs if the connection copied creates a new connection.
Enables a package containing a disabled connection
initCallBack
Reloads a package containing a disabled connection
initCallBack
Starts Integration Server
initCallBack
Note:
This only occurs if the connections are contained in a package that is enabled.
Note:
If more than one callback is listed, the callbacks occur in the specified order from top to bottom. If an action is not listed in the table then no callbacks occur.