1 2 Previous Next 29 Replies Latest reply on Jul 18, 2013 11:01 AM by Ganesan S

    Outbound JCA

    Gerhard Visagie Newbie

      Hi all;

       

      We have a custom JCA we use for integration to our mainframe.I'd like to use that in my switcyard project, but im having difficulty creating the binding to our RAR file. Whenever I choose the jca option I only have hornetq in the list.

       

      How do I add our RAR file?

        • 1. Re: Outbound JCA
          Brian Fitzpatrick Expert

          Hi Gerhard,

           

          You should definitely be able to create a JCA binding with a custom resource adapter. Let me ask a question or two so we can figure out what's going on.

           

          First, what version are you using? Are you running the 0.8.1 version of the runtime and tooling or using a snapshot version of the 1.0 runtime?

           

          Second, there were some changes between 0.8.1 and 1.0 that should hopefully make things easier in the newer version of the tooling. Now you should be able to select the "Generic Resource Adapter" as the Resource Adapter Type (on the JCA Inbound Gateway or JCA Outbound Gateway tab) and type the name of your custom RAR file, which needs to be in the classpath of the project, and then set whatever custom activation properties and other details you need.

           

          Let me know and we will go from there.

           

          Thanks!

          --Fitz

          • 2. Re: Outbound JCA
            Gerhard Visagie Newbie

            Im running "switchyard-as7-0.8" at the moment, should I get the snapshot or the 0.8.1 ?

            • 3. Re: Outbound JCA
              Brian Fitzpatrick Expert

              The 1.0.0 snapshot is a bit in flux as we work towards the release, but 0.8.1 is stable and should handle what you're after. In the 0.8.1 tooling, there's an editable drop-down list on the JCA binding control that should allow you to type the name of your resource adapter and get the functionality you are after.

              • 4. Re: Outbound JCA
                Gerhard Visagie Newbie

                Another question from me...Do I need to register the RAR file as a driver in the standalone.xml, or is having it in the SY config engough?

                • 5. Re: Outbound JCA
                  Tomohisa igarashi Master

                  Hi Gerhard,

                   

                  You need to deploy the RAR to JBoss application server before SwitchYard application. SwitchYard JCA is just retrieving ResourceAdapter from JBoss JCA container.

                   

                  Thanks,

                  Tomo

                  • 6. Re: Outbound JCA
                    Gerhard Visagie Newbie

                    OK, so I configured the JCA in the standalone.xml and then added the RAR file to my ear file. In the application.xml I configured the jca rar file (before the swithyard jar file) and then started it all up. Server starts up prints it that its starting deployment of the jca, then processing weld deplopyment of the jca. Next the it tries to deploy the switchyard app and fails, which then fails the jca deployment as well. The error I am getting is Unique key for ResourceAdapter '<the name of my jca rar>' couldn't be found.

                     

                    So I tried to deploy the jca rar file on its own, without the switchayrd app, and it deploys with no problems. I can even see the deployment in the JNDI view in the admin console. What I am missing here?

                    • 7. Re: Outbound JCA
                      Tomohisa igarashi Master

                      Can you attach the whole log when you deployed RAR file, and then SwitchYard jar?

                      • 8. Re: Outbound JCA
                        Gerhard Visagie Newbie

                        Sure,

                         

                        Attached find the  log for starting my SY and JCA app, and then just my jca app. I also included the switchyard.xml file, just in case.

                        • 9. Re: Outbound JCA
                          Tomohisa igarashi Master

                          Can you try not to use ear, but just do following sequentially?

                           

                          1) deploy rar file

                          2) deploy switchyard jar

                          • 10. Re: Outbound JCA
                            Gerhard Visagie Newbie

                            Yeah, I tried that too, but it made no difference and I still ge the same error.

                             

                            I also tried putting the dependancy to our custom jca in the manifest of the ear file. Also made no differnce. Would It help if I posted the EAR file here?

                            • 11. Re: Outbound JCA
                              Tomohisa igarashi Master

                              I'd like to see the log for that (RAR->SY-JAR sequential deployment) - Was that exactly same error with EAR deployment?

                               

                              I think it's better to see how that simple sequential deployment fails first. EAR packaging makes it more complicated.

                               

                              And if you can attach your RAR and SwitchYard jar with that log, that would be helpful.

                              • 12. Re: Outbound JCA
                                Gerhard Visagie Newbie

                                OK, I attached the log with the sequential deploy, the ear file and the rar file for our jca. The ear file has in its manifest.mf a class-path entry to the jca.rar file. (I tried that instead of dependancy...made no differance)

                                • 13. Re: Outbound JCA
                                  Tomohisa igarashi Master

                                  Just took a look at the log real quick - It looks the ear deployment failed before it reached to switchyard deployment. There seems to be something on your ear packaging.

                                  If you extract the switchyard *JAR* and deploy it after RAR deployment, you should be able to see what's wrong between RAR and SwitchYard. Once it's solved, then you can try EAR packaging issue for next.

                                  • 14. Re: Outbound JCA
                                    Gerhard Visagie Newbie

                                    Hi;

                                     

                                    Still no dice. I removed all the SOAP referernce stuff and deployed the two jars and the socketjca.rar but we still get that UNique key not found error.

                                    1 2 Previous Next