Race condition during server start-up - RA not deployed in JBoss EAP 6
Issue
-
We have run into the following bugs in our testing of JBoss EAP version 6.1.0:
- "Race condition during server start-up - RA not deployed"
https://bugzilla.redhat.com/show_bug.cgi?id=984855
- "Race condition during server start-up - RA not deployed"
-
We defined our resource adapter in the
resource-adapterssubsystem, it should bind a JNDB nameMyRANoTx, which another one of our deployments is trying to lookup.
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">
<resource-adapters>
<resource-adapter id="MyRA.rar">
<archive>
MyRA.rar
</archive>
<transaction-support>NoTransaction</transaction-support>
<connection-definitions>
<connection-definition class-name="com.jboss.examples.connector.MyManagedConnectionFactory" jndi-name="java:/MyRANoTx" pool-name=MyRANoTx"/>
</connection-definitions>
</resource-adapter>
</resource-adapters>
</subsystem>
- The deployment fails sometimes because the
resource-adapterhas not bound into JNDI in time:
...
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.TIPRANoTx (missing) dependents: [service jboss.naming.context.java.comp.MyRATest.MyRATest.MyRATest.env.MyRANoTx]
03:38:34,143 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
03:38:34,143 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
03:38:34,143 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.2.0.GA (AS 7.3.0.Final-redhat-14) started (with errors) in 4816ms - Started 233 of 306 services (5 services failed or missing dependencies, 67 services are passive or on-demand)
...
connection-definitionare not registered in time in JBoss EAP 6.2.0
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.