throw new DeploymentException("Problem deploying connector", e);
}
}
public void initContext(EARContext earContext, Module module, ClassLoader cl) throws DeploymentException {
ConnectorModule resourceModule = (ConnectorModule) module;
final ConnectorType connector = (ConnectorType) module.getSpecDD();
/*
The chain of idiotic jsr-77 meaningless objects is:
ResourceAdapterModule (1) >
ResourceAdapter (n, but there can only be 1 resource adapter in a rar, so we use 1) >
JCAResource (1) >
JCAConnectionFactory (n) >
JCAManagedConnectionFactory (1)
We also include:
JCAResourceAdapter (n) (from JCAResource) (actual instance of ResourceAdapter)
TODO include admin objects (n) from JCAResource presumably
*/
AbstractName resourceAdapterModuleName = resourceModule.getModuleName();
AbstractName resourceAdapterjsr77Name = earContext.getNaming().createChildName(resourceAdapterModuleName, module.getName(), NameFactory.RESOURCE_ADAPTER);
AbstractName jcaResourcejsr77Name = earContext.getNaming().createChildName(resourceAdapterjsr77Name, module.getName(), NameFactory.JCA_RESOURCE);
//set up the metadata for the ResourceAdapterModule