-
1. Re: JBoss EAP 6.1.0.Beta1 ResourceAdapter Deployed but Not Started or Associated with MCF
jim_b_o May 20, 2013 8:29 AM (in response to jim_b_o)I've made some further discoveries:
1. The problem is intermittent. It does work some of the time.
2. When it doesn't work, the <resourceadapter-class> is not present in the CMD passed to ParsedRaDeploymentProcessor. Here's an example where we can see there is no <resourceadapter-class> between <resourceadapter> and <outbound-resourceadapter>:
13:08:12,831 DEBUG [org.jboss.as.connector.deployment] (MSC service thread 1-8) ParsedRaDeploymentProcessor: CMD=<?xml version="1.0" encoding="UTF-8"?>
<connector version="1.6" metadata-complete="false">
<module-name></module-name>
<vendor-name></vendor-name>
<eis-type></eis-type>
<license><license-required>false</license-required></license>
<resourceadapter-version>1.6</resourceadapter-version>
<resourceadapter>
<outbound-resourceadapter>
<connection-definition>
<managedconnectionfactory-class>xxx.TCPManagedConnectionFactoryImpl</managedconnectionfactory-class>
<connectionfactory-interface>xxx.TCPConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>xxx.TCPConnectionFactoryImpl</connectionfactory-impl-class>
<connection-interface>xxxi.TCPConnection</connection-interface>
<connection-impl-class>xxx.TCPConnectionImpl</connection-impl-class>
</connection-definition>
<transaction-support>NoTransaction</transaction-support>
<reauthentication-support>false</reauthentication-support>
</outbound-resourceadapter>
<inbound-resourceadapter><messageadapter></messageadapter></inbound-resourceadapter>
</resourceadapter>
</connector>
Using a simple RA created via the codegenerator I do get this entry, e.g:
...
<resourceadapter>
<resourceadapter-class>test.one.Test1ResourceAdapter</resourceadapter-class>
<outbound-resourceadapter>
...
I've looked for differences between the generated code and my code and they include:
- additional third party jars in the rar.
- some inheritance in the connection objects to keep boiler plate stuff in abstract classes.
I suspect there's some kind of change in the way that 7.2.0 discovers the <resourceadapter-class> versus how it worked in 7.1.3.
-
2. Re: JBoss EAP 6.1.0.Beta1 ResourceAdapter Deployed but Not Started or Associated with MCF
jim_b_o May 20, 2013 12:38 PM (in response to jim_b_o)Adding an ra.xml that specifies the <resourceadapter-class> resolves the problem.
I'm guessing that the presence of an abstract ResourceAdapter superclass (again used to avoid boilerplate code) is confusing Weld or whatever is doing the discovery. This super class is 'abstract' and does not have a @Connector annotation so should not be considered as a ResourceAdapter candidate.