Resource Adapter Configuration for Jboss 7
coolaki2006 Apr 17, 2018 6:38 AMI am migrating from Jboss 4 to Jboss 7 . I understand we would not require now ra.xml file and need to incorporate the definition in standalone.xml .
This is how my it looks:-
<resource-adapters>
<resource-adapter name="java:jboss/EnqPxyConnector" id="EnqPxyConnector">
<archive>
mass-enq-connector.rar
</archive>
<transaction-support>NoTransaction</transaction-support>
<connection-definitions>
<connection-definition class-name="com.erggroup.mass.account.enqconn.EnquiryProxyConnectionFactory"
jndi-name="java:jboss/EnqPxyDS"
use-java-context="true"
pool-name="EnqPxyDS"
enabled="true"
use-ccm="true" >
<config-property name="ConnectorClassName">com.erggroup.mass.account.enqconn.EnquiryProxyConnection</config-property>
</connection-definition>
</connection-definitions>
<admin-objects>
<admin-object class-name="com.erggroup.mass.account.enqconn.CommandLineInvoker"
jndi-name="java:jboss/EnqPxyConnector"
use-java-context="true"
pool-name="EnqPxyConnector">
<config-property name="PhysicalName">java:jboss/EnqPxyConnector</config-property>
</admin-object>
</admin-objects>
</resource-adapter>
</resource-adapters>
I am getting Error:
javax.naming.NameNotFoundException: EnqPxyDS -- service jboss.naming.context.java.jboss.EnqPxyDS
From my code where i am doing this:-
Context ic = new InitialContext();
connectionFactory = (ConnectionFactory)ic.lookup("java:jboss/EnqPxyDS");
Thanks,
Akash Shah