2 Replies Latest reply on Jan 4, 2011 10:47 AM by jhalliday

    Guidance needed: Stand-alone JTS 4.6.1 + JBoss AS 5.1.0 cluster + Apache OFBiz

    aleksey.fedorchenko

      Dear Community,

       

      We're developing an application that was originally hosted in a single node of JBoss AS 4.0.5 but with the time we've realized a need to be truly scaleable and implement a clustered environment. Basically, we're going to distribute different services across cluster nodes (SOA-like) and integrate Apache OFBiz (our web trading platform) in the similar transactional environment. Our idea was to setup a following network of server machines:

      1. JTS@Server1, stand-alone configuration
      2. JBossAS@Server2, node 1 in JBossAS Cluster, uses JTS@Server1 as a transaction coordinator
      3. JBossAS@Server3, node 2 in JBossAS Cluster, uses JTS@Server1 as a transaction coordinator
      4. OFBiz@Server4, uses JTS@Server1 as a transaction coordinator

      All this JBossAS clustered staff invoked by an Apache Tomcat hosted elsewhere.

       

      That's the idea what we are going to setup. Let me repeat that we're going to use JBoss AS 5.1.0 in conjunction with stand-alone JTS 4.6.1.

       

      The problem is that we have not found any clear guidance on how to setup this configuration.

       

      Questions are:

      1. How to setup JTS in a stand-alone configuration at given host and port?
      2. How to tell JBossAS (preintegrated with the JTS Transaction Manager implementation) that actual transaction manager / coordinator was installed elsewhere (different host and port)?
      3. Is there any known OFBiz-to-JTS integration solution? As for now, we're going to resemble its OFBiz-to-Geronimo integration and code similar solution.

       

      Thanks!

        • 1. Re: Guidance needed: Stand-alone JTS 4.6.1 + JBoss AS 5.1.0 cluster + Apache OFBiz
          mmusgrov

          1. You would need to download the JBossTS product, in the bin directory there is a script called start-transaction-service which starts the JTS in standalone mode. But this configuration is not supported so I'd advise you to simply start it running on Server1 inside the AS container instead.

          2. JTS supports transaction propagation so you don't need to use a centralised transaction manager.

          3. I'm not familiar with the OFBiz integration issues. But if you need to remotely start transactions from Java then there are examples of how to do that on the WIKI. If you need to start transactions from C/C++ then, since the JTS uses CORBA, we have solutions for that also.

          • 2. Re: Guidance needed: Stand-alone JTS 4.6.1 + JBoss AS 5.1.0 cluster + Apache OFBiz
            jhalliday

            Just out of curiosity, can you explain the reasoning that leads you to conclude that putting your entire cluster's transaction load through Server1 is 'truly scaleable', much less performant or resilient. Aren't you just introducing a bottleneck / single point of failure?