2 Replies Latest reply on Mar 2, 2010 6:33 AM by mmusgrov

    jbossts examples

      Hi,

       

      In Hornetq there is a directory examples/ with a lot of examples. Where can I find examples for JBossTS?

       

      Thanks,

       

      Eric J.

        • 1. Re: jbossts examples
          whitingjr

          Hi Eric,
            Most examples are included in the documentation manuals for each module comprising the JBoss Transactions code base. A couple of modules provide sample applications outside the manual. To access the examples either get the transactions code from source code repository or download a release distribution.

          http://www.jboss.org/jbosstm/downloads.html Downloading the latest release distribution (JBossTS 4.9.0.GA) will get you started quickly.

           


          Inside each release distribution are several modules. Each module contains several manuals targeted for an audience. The "Programmers Guide" contains code examples along with explanations of context and theoretical background.
          The Transactional Web Services (XTS) and Transactional Bridging modules provide example demonstration applications.

           


          Depending on the type of example you are looking for this is what you can expect to find.

           


          Java POJO example. Providing transactional (persistent, atomic) behaviour to a plain old Java object. page 14, 25, 38. - ArjunaCore -

           

          <distribution-home>/JBOSSTS_4_9_0_GA/ArjunaCore/docs/user_guide/ProgrammersGuide.pdf

           

           

           

          JTA example. page 33 - ArjunaJTA -

           

          <distribution-home>/JBOSSTS_4_9_0_GA/ArjunaJTA/docs/user_guide/ProgrammersGuide.pdf

           

           

           


          JTS transaction propagation. page 68  - ArjunaJTS -

           

          <distribution-home>/JBOSSTS_4_9_0_GA/ArjunaJTS/docs/user_guide/ProgrammersGuide.pdf

           

           

           

          Transactional Web Services. Sample web application. - XTS -

           

          <distribution-home>/JBOSSTS_4_9_0_GA/XTS/demo

           

           

           

          Integrating JTA and XTS Web Services using a Transactional bridge. Sample web application. - TXBridge -

           

          <distribution-home>/JBOSSTS_4_9_0_GA/txbridge/demo

           

           

           

          That should keep you going for a while

           


          If your looking for EJB3 examples try visiting the JBoss EJB3 project.

           

           

           

          Jeremy

          • 2. Re: jbossts examples
            mmusgrov

            There's also the JTS examples on the wiki: http://community.jboss.org/wiki/TransactionPropagationwithJBoss