final ConnectionFactoryReferenceFactoryService referenceFactoryService = new ConnectionFactoryReferenceFactoryService(deployment); final ServiceName referenceFactoryServiceName = ConnectionFactoryReferenceFactoryService.SERVICE_NAME_BASE .append(bindInfo.getBinderServiceName()); serviceTarget.addService(referenceFactoryServiceName, referenceFactoryService) .addDependency(connectionFactoryServiceName, Object.class, referenceFactoryService.getConnectionFactoryInjector()) .setInitialMode(ServiceController.Mode.ACTIVE).install();
final ConnectionFactoryReferenceFactoryService referenceFactoryService = new ConnectionFactoryReferenceFactoryService(); 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 ConnectionFactoryReferenceFactoryService referenceFactoryService = new ConnectionFactoryReferenceFactoryService(); final ServiceName referenceFactoryServiceName = ConnectionFactoryReferenceFactoryService.SERVICE_NAME_BASE .append(bindInfo.getBinderServiceName()); serviceTarget.addService(referenceFactoryServiceName, referenceFactoryService) .addDependency(connectionFactoryServiceName, Object.class, referenceFactoryService.getConnectionFactoryInjector()) .setInitialMode(ServiceController.Mode.ACTIVE).install();