JBoss Community

AS7 JCA Resource Adapter JNDI Not Binding

created by Mehboob Alam in JBoss AS 7 Development - View the full discussion

Hi,

I have noticed that if my resource adapter is within a ear, the ear is deployed, but the rar is not deploying correctly. The same rar deploys correctly if it is outside the ear. This is a legacy application that works correctly in AS6/AS61

 

I added proper declaration for the resource-adapter in standalone-full.xml, e.g.:

 

                   <resource-adapter>

                      <archive>

                        myapp.ear#myrar.rar

                    </archive>

                    <transaction-support>

                        NoTransaction

                    </transaction-support>

                    <connection-definitions>

                        <connection-definition class-name="com.test.connector.HelloWorldManagedConnectionFactory" jndi-name="java:/HelloWorldConnectionFactory" enabled="true" use-java-context="true" pool-name="HelloWorldConnectionFactory" use-ccm="true">

                            <pool>

                                <prefill>

                                    false

                                </prefill>

                                <use-strict-min>

                                    false

                                </use-strict-min>

                                <flush-strategy>

                                    FailingConnectionOnly

                                </flush-strategy>

                            </pool>

                            <security>

                                <application/>

                            </security>

                            <validation>

                                <background-validation>

                                    false

                                </background-validation>

                                <use-fast-fail>

                                    false

                                </use-fast-fail>

                            </validation>

                        </connection-definition>

                    </connection-definitions>

                </resource-adapter>

 

However, after the server starts, the archive entry is changes to something like this:

          <resource-adapter> 

                      <archive>

                        myapp.ear

                    </archive>

                    .....

                    .....

          </resource-adapter> 

 

 

Obviously this is incorrect.

 

I experimented and found that if I pulled the rar out of the ear, (using appropriate archive value change for the resource-adapter), then I am able to successfully deploy both the rar and the ear. In that case, I see a message logged like the one below and my application works correctly.

 

16:46:02,315 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-2) JBAS010401: Bound JCA ConnectionFactory [java:/HelloWorldConnectionFactory]

 

 

Tried build #524 from Feb3. The error is there as well.

 

Is this a known issue?

 

Thanks in advance!

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community