There are two ways to use a JMSJCA adapter with an EAR.
The adapter can be packaged in the EAR as a local RAR
The adapter can be deployed in the application server as a global RAR
In either case, to use outbound connections, a mapping must be made in the deployment descriptor of the EJB or servlet that ties the Java Naming and Directory Interface (JNDI) names of the connection factories to names in the Environment Naming Context (ENC). The application code can then lookup the JMS connection factory and create outbound connections.