Adapter Development Kit 6.5 | 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
 
Connection Callbacks
webMethods Metadata Parameters
The WmDescriptor Interface
Example WmManagedConnectionFactory Implementation Class
You create a connection factory by extending the abstract base class WmManagedConnectionFactory. In the example shown in Adapter Connection Implementation Classes, this class is SimpleConnectionFactory.
In this class, you override the following methods:
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 The 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.
For more information about Connection Callbacks, see Connection Callbacks. For examples of these methods, see Example WmManagedConnectionFactory Implementation Class.
The following sections describe the basics of the metadata model for connection factories.