3 Replies Latest reply on Jun 26, 2003 2:49 AM by xiaoyi

    how to create a jca adapter for CMP EJB.

    xiaoyi

      I want to integrate two J2ee platforms.
      Jboss server1 and server2.
      I want to call an EJB that is on server2 from server1.
      I want to know how to write a jca adapter that connect to some CMP EJB which is on the remote server2.And execute some method or function of the EJB.
      The same time that i will also do some work on server1,for example,update some database.
      So the work on server1 and the calling EJB of server2 are in the same gloabal transaction.
      Could you tell me how to do the work?create the JCA adapter for EJB,and how to let them in the distributed transaction.
      It is really helpful if you could response me as soon as possilbe.I am looking forward to hearing from you soon!Thank you very much for your help!

        • 1. Re: how to create a jca adapter for CMP EJB.
          kbirch

          What you are asking for is a very complicated multi-server transaction system that can't be easily described in a small forum post. Besides which, no one is going to design such a thing for you.

          I don't believe that remote EJB invocations support XA semantics, and there is no way to get access to the XAResource object, even if you could somehow bridge it across the two servers. You would really be better off running this on one server.

          You should read the specs on JCA, JTA and JTS which are at java.sun.com, the X/Open XA specifcation which is at www.opengroup.org, along with the OSI DTP Model which is also at www.opengroup.org.

          • 2. Re: how to create a jca adapter for CMP EJB.
            kbirch

            Actually, after reading on of the other threads where you have asked this exact same question, warjort has already given you an answer. Check his last post in this thread:

            http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=

            • 3. Re: how to create a jca adapter for CMP EJB.
              xiaoyi

              thanks!
              Now i only want to know if i compile a jca adapter ,what classes are nessesary.
              connection ?
              Now i don't process the transaction and security.
              and only connection.
              and i just call the method test() of the remote EJB.
              that is i will create an adapter for EJB.
              and the record input and output are not used.
              I compile the connection adapter,but when i deploy it .there is wrong message.
              I attach the adapter ,and i hope someone can help me look it ,and tell me what's wrong it?
              thanks!