4 Replies Latest reply on Dec 30, 2010 5:02 AM by Andrew Dinn

    Webservice transaction

    Chandra Shekhar Newbie

      hi there,

       

      how do i handle web service transactions from client application and server?

       

      BR

      C

        • 1. Re: Webservice transaction
          Andrew Dinn Master

          Chandra Shekhar wrote:


          how do i handle web service transactions from client application and server?

          It is probably best to start by reading the Programmers Guide. You will  find a copy in the JBossTS 4.11 download which can be located on this page

           

            http://www.jboss.org/jbosstm/downloads/JBOSSTS_4_11_0_Final.html

           

          Download jbossts-full-4.11.0.Final.zip, unpack and look for ProgrammersGuide.pdf in directory xts/docs.

           

          The programmers guide provides an overview of:

           

          • how Web Servcies Trasactions work in general;
          • how they work inside JBossTS;
          • which programming APIs you need to call or implement in the client and web services, including the crash recovery APIs;
          • and, finally, how to deploy and configure the Web Services Transactions implementation inside JBoss so that your app can use it

           

          There is also a demo app in the xts/demo directory which should help get you started.

          • 2. Re: Webservice transaction
            Chandra Shekhar Newbie

            thank you andrew

            • 3. Re: Webservice transaction
              Chandra Shekhar Newbie

              Hello Andrew,

               

              I downloaded final version stuff from suggested link and gone through installation guide to install Transaction Server in windows enviornment but it always unable to pick up required class files from jars. Can you please suggest me how do I overhead the installation problem?

              • 4. Re: Webservice transaction
                Andrew Dinn Master

                Chandra Shekhar wrote:


                I downloaded final version stuff from suggested link and gone through installation guide to install Transaction Server in windows enviornment but it always unable to pick up required class files from jars. Can you please suggest me how do I overhead the installation problem?

                 

                That's not really enough information  to idenitfy what is going wrong. However, I'll start by pointing out that XTS is built to run inside a JBoss Application Server (this is mentioned in  the XTS Programming and Administration Guide). So, you need to download more than just the JBossTS release if you want to deploy and run a transactional client/web service. In particular, if you want to build the demo then you need to have access to jars located in the Application Server lib directory. You make them accessible to the build script by setting environment variable JBOSS_HOME to point to your installed AS tree.

                 

                The final release of JBoss AS 6 is available from  jboss.org and it includes the code from the JBossTS 4.11 final release. It also includes  a precompiled version of the XTS code but this is not installed in the AS server deploy directory by default. After downloading JBoss AS you will need to install the XTS service archive included in the JBoss AS  release, jbossxts.sar, from the docs/examples/transactions directory to the server/default/deploy directory before you can deploy a transactional client or web service. There is a README in the docs directory explaining this.

                 

                You then need to build and deploy a transactional client and server which uses the XTS APIs as described in the Programming Guide and copy them to the deploy directory. Obviously, you would normally place the client and server in different JBoss AS instances on separate hosts. However, you can exercise the demo app by deploying them to the same AS instance. If you take the demo code from the 4.11 release you should be ableto  build and deploy it to you AS 6 deploy directory.

                 

                It is possible to make your transactional web client and transactional web service run outside fo JBoss AS. However, this requires providing some alternatives to the JBoss AS 6 jars (you can find most of the necessary code in the CXF release used by JBoss AS 6) and also configuring JBossTS and XTS to run standalone. The JBossTS guide describes how to run the bulk of the TS code outside of JBoss AS. For XTS there is currently no documentation for this process except in several long online discussions on the JBossTS forum between me and Mauro Molinari. We may document this at some point but it is not a priority for us as our paying customers only use XTS inside JBoss AS.