Skip to content

Commit

Permalink
Fix resource adaptor JNDI service names
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Jun 26, 2011
1 parent 4f055d3 commit 9b52152
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.jboss.as.connector.services.AdminObjectService;
import org.jboss.as.connector.services.ConnectionFactoryReferenceFactoryService;
import org.jboss.as.connector.services.ConnectionFactoryService;
import org.jboss.as.connector.subsystems.datasources.Util;
import org.jboss.as.connector.subsystems.jca.JcaSubsystemConfiguration;
import org.jboss.as.connector.util.Injection;
import org.jboss.as.naming.ManagedReferenceFactory;
Expand Down Expand Up @@ -235,7 +236,7 @@ public String[] bindConnectionFactory(URL url, String deployment, Object cf, fin
.addDependency(connectionFactoryServiceName, Object.class, referenceFactoryService.getDataSourceInjector())
.setInitialMode(ServiceController.Mode.ACTIVE).install();
final BinderService binderService = new BinderService(jndi.substring(6));
final ServiceName binderServiceName = ContextNames.JAVA_CONTEXT_SERVICE_NAME.append(jndi);
final ServiceName binderServiceName = Util.getBinderServiceName(jndi);
serviceTarget
.addService(binderServiceName, binderService)
.addDependency(referenceFactoryServiceName, ManagedReferenceFactory.class,
Expand Down

0 comments on commit 9b52152

Please sign in to comment.