final ServiceName referenceFactoryServiceName = ConnectionFactoryReferenceFactoryService.SERVICE_NAME_BASE
.append(jndi);
serviceTarget.addService(referenceFactoryServiceName, referenceFactoryService)
.addDependency(connectionFactoryServiceName, Object.class, referenceFactoryService.getDataSourceInjector())
.setInitialMode(ServiceController.Mode.ACTIVE).install();
final BinderService binderService = new BinderService(jndi.substring(6));
final ServiceName binderServiceName = Util.getBinderServiceName(jndi);
serviceTarget
.addService(binderServiceName, binderService)
.addDependency(referenceFactoryServiceName, ManagedReferenceFactory.class,
binderService.getManagedObjectInjector())
.addDependency(ContextNames.JAVA_CONTEXT_SERVICE_NAME, NamingStore.class,
binderService.getNamingStoreInjector())
.addDependency(ConnectorServices.RESOURCE_ADAPTER_SERVICE_PREFIX.append(deploymentName))
.addListener(new AbstractServiceListener<Object>() {
public void serviceStarted(ServiceController<?> controller) {
log.infof("Bound JCA ConnectionFactory [%s]", jndi);
}