Registering Adapter Service in the Connection Factory Implementation Class
You must register each adapter service template class in the WmManagedConnectionFactory implementation class. Pass the class name to the ResourceAdapterMetadataInfo.addServiceTemplate method in the SimpleConnectionFactory.fillResourceAdapterMetadataInfo method in the WmManagedConnectionFactory implementation class. In the example, the MockDbUpdate class is registered in the SimpleConnectionFactory connection factory implementation class:
For example: SimpleConnectionFactory class
import com.wm.MyAdapter.services.*;
.
.
public class SimpleConnectionFactory extends WmManagedConnectionFactory implements MyAdapterConstants {
.
.
public void fillResourceAdapterMetadataInfo(
ResourceAdapterMetadataInfo info, Locale locale)
{ info.addServiceTemplate(MockDbUpdate.class.getName());
}
}