[jboss-user] [IronJacamar] - JBoss EAP 6.1.0.Beta1 ResourceAdapter Deployed but Not Started or Associated with MCF

jim_b_o do-not-reply at jboss.com
Sun May 5 07:07:01 EDT 2013

jim_b_o [https://community.jboss.org/people/jim_b_o] created the discussion

"JBoss EAP 6.1.0.Beta1 ResourceAdapter Deployed but Not Started or Associated with MCF"

To view the discussion, visit: https://community.jboss.org/message/815493#815493

I have a custom ResourceAdapter which includes a ManagedConnectionFactoryImpl.  The ResourceAdapter is annotated with @javax.resource.spi.Connector and the ManagedConnectionFactoryImpl is annotated with @javax.resource.spi.ConnectionDefinition and 
implements ResourceAdapterAssociation.  I have an ironjacamar.xml in the RAR as follows:

<connection-definition jndi-name="java:/eis/TCP" class-name="xxx.TCPConnectionFactoryImpl" />

The problem that I am having is that although the RAR is being deployed and the ConnectionFactory is being bound to JNDI as shown below, the ResourceAdapterAssociation#setResourceAdapter(...) callback on the MCF is never invoked nor is the ResourceAdapter#start(...) method.

12:40:02,153 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-10) JBAS010406: Registered connection factory java:/eis/TCP
12:40:02,156 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-10) IJ020002: Deployed: file:/XXX/jboss-eap-6.1/standalone/tmp/vfs/deploymentf64462aa42d86cdf/XXX-tcp-rar.rar-99e55f11ad53e7dd/contents/
12:40:02,158 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-9) JBAS010401: Bound JCA ConnectionFactory [java:/eis/TCP]

I have @javax.annotation.Resource(lookup = "java:/eis/TCP") references that are injected succesfully but when I obtain a Connection from the Factory the Connection is not useable as it lacks the ResourceAdapter association.
I'm not using MDBs so do not have any @ResourceAdapter annotations anywhere.

This used to work OK with 7.1.3.Final.  It appears that something has changed since then.  Any ideas on what I might be missing would be appreciated.

JCA Subsystem (JBoss IronJacamar 1.0.16.Final-redhat-1)
JBoss EAP 6.1.0.Beta1 (AS 7.2.0.Final-redhat-4)

Reply to this message by going to Community

Start a new discussion in IronJacamar at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130505/8baa9419/attachment.html 

More information about the jboss-user mailing list