[jboss-dev-forums] [JBoss AS 7 Development] - AS7 JCA Resource Adapter JNDI Not Binding

Mehboob Alam do-not-reply at jboss.com
Fri Feb 3 18:09:08 EST 2012


Mehboob Alam [https://community.jboss.org/people/bob_alam] created the discussion

"AS7 JCA Resource Adapter JNDI Not Binding"

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

--------------------------------------------------------------
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
[https://community.jboss.org/message/714399#714399]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120203/c8bcbf18/attachment.html 


More information about the jboss-dev-forums mailing list