4 Replies Latest reply on Jul 12, 2006 4:54 AM by pegasenz

    How to deploy a connector in an ear file

    pegasenz

      Hi

      Newby in JBoss, I would like to deploy a JCA 1.5 connector via an enterprise archive file .ear. Could somebody tel me where to put the -ds.xml file.

      At the moment, if i put manualy the ds file and the rar file in the deploy directory it works.

      If i put the ds file in the directory and the rar file in an ear file that i drop down in the deploy directory it does'nt work :

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:service=RARDeployment,name='JcaAdapter.rar'
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.jca:service=ManagedConnectionFactory,name=AdocAdapter

      What i would like to do is to deploy only an ear file containing the rar and the ds file. Is it possible ?

      Thanks for help.

        • 1. Re: How to deploy a connector in an ear file
          schlaufuchs

          Did you edit the application.xml in your ear file?

           <module>
           <connector>JcaAdapter.rar</connector>
           </module>
          


          • 2. Re: How to deploy a connector in an ear file
            pegasenz

            I didt it. In the META-INF directory i have the 2 following descriptors :

            application.xml :

            <?xml version="1.0" encoding="UTF-8"?>
            <application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
             <display-name>JcaLaucher_EAR</display-name>
             <module id="ConnectorModule_1152537779516">
             <connector>JcaAdapter.rar</connector>
             </module>
             <module id="EjbModule_1152537779546">
             <ejb>JcaMDBLauncher.jar</ejb>
             </module>
            </application>


            JcaAdapter-ds.xml
            <!DOCTYPE connection-factories PUBLIC
             "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
             "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
            <!--
             AdocAdpater JBoss configuration File
            -->
            <connection-factories>
             <no-tx-connection-factory>
             <jndi-name>AdocAdapter</jndi-name>
             <rar-name>JcaAdapter.rar</rar-name>
             <connection-definition>
             javax.resource.cci.ConnectionFactory
             </connection-definition>
             </no-tx-connection-factory>
            </connection-factories>


            Everything works well if deploy outside an ear.
            Should not be a kind of specific jboss descriptor for an ear file ?

            • 3. Re: How to deploy a connector in an ear file
              dansalt

              Hi,

              Yes, it is possible. I deploy one EAR file containing everything.

              Put the DS file in the root of the RAR file.

              Then in the DS file, you need to use specify the RAR file as [EAR_FILE]#[RAR_FILE].

              <rar-name>JcaAdapter.rar</rar-name>

              with
              <rar-name>JcaLaucher_EAR.ear#JcaAdapter.rar</rar-name>


              (assuming your EAR file is called JcaLaucher_EAR.ear, edit if not)

              Hope that helps,

              Cheers,
              Dan

              • 4. Re: How to deploy a connector in an ear file
                pegasenz

                Thanks a lot. It works.