2 Replies Latest reply on Dec 3, 2013 9:32 AM by jamit

    Issue deploying resource adapter as module in clustered environment.

    jamit

      Hi Team,

      I have deploy my existing rar file as a module by creating a jar,META-INF,MANIFEST.MF,ra.xml into a module say"mymodule" in the resource-adapter folder.

      Made respective changes to the standalone resource adapter subsystem as well like instead of using <archive> used <module> etc..

      The module gets detected and loaded in a non-clustered environment.

       

      The same stuff when run on a clustered environment with just one slave fails with following exception,while the same works if the adapter is deployed as rar and using <archive> tag in domain.xml :

       

      00:27:08,255 WARN  [org.jboss.remoting.remote] (Remoting "slave2:server-two-slave1" read-1) JBREM000205: Failed to accept a connection: java.nio.channels.ClosedChannelException

      00:28:10,287 WARN  [org.jgroups.protocols.pbcast.GMS] (ViewHandler,web,slave2:server-two-slave1/web) slave2:server-two-slave1/web: failed to collect all ACKs (expected=1) for view [slave2:server-two-slave1/web|2] after 5000ms, missing ACKs from [slave2:server-two-slave1/web]

      00:29:04,476 ERROR [org.jboss.remoting.remote.connection] (Remoting "slave2:server-two-slave1:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: An existing connection was forcibly closed by the remote host.

       

      Is this something to do with the deployment of resource adapter as module instead of archive?

      (Not in this forums scope) Would be great if someone could throw more light on the issue itself...what is ACKs...is it acknowledgements in the Unicast protocol or NAKACK.

       

       

      Thanks

      Amit

        • 1. Re: Issue deploying resource adapter as module in clustered environment.
          rareddy

          Amit,

           

          The error is from the JGroups which is used for all the master/slave communication. The error itself does not indicate above issue, but can not say for sure. I have not heard of similar issues from our testing. But will investigate further. Let us know if find any further information.

           

          You can ask what ACK message explanations in AS7 or JGroups forums.

           

          Ramesh..

          • 2. Re: Issue deploying resource adapter as module in clustered environment.
            jamit

            Hi,

            Thanks for the info,but there are some more findings around this issue :

            When the resource adapter is deployed as a module it does not show up on the Jboss console-resource adapters tab.

            This seems like an issue with JBoss domain controller which manages connection definition for modules that are not deployed centrally through the JBoss console.

            The exception while loading the metadata is:

            Reason: TEIID31097 Metadata load requires a connection factory.

             

            ** The other important aspect is when the resource adapter is deployed as rar file with <archive> tag in domain.xml, the rar gets deployed and also shows up on the JBoss Console.

             

            Thanks

            Amit