6 Replies Latest reply on Oct 25, 2010 7:28 AM by ceene

    Two Jboss in one Network

    ceene

      Hi guys

       

      I have a little question. I have two Jboss in one network. In one Jboss is a application wich should show some data from an bean wich is located on the other jboss.

       

      Is this possible?

        • 1. Re: Two Jboss in one Network
          wdfink

          I suppose you mean a EntityBean which data you want to show in a different application.

           

          I prefer to separate this beans into a component and deploy it to both instances.

           

          A remote access will be slow and is only possible if you use EJB2.x ;-)

          • 2. Re: Two Jboss in one Network
            ceene

            I have a *.jar file and I would like to call a method from this file, but this *.jar file is in the same network, but on an other jboss.

             

            I found something in the Internet. Jboss Messaging Bridge. Is this not a solution?

            • 3. Re: Two Jboss in one Network
              wdfink

              A method from a jar file, I'm confused

               

              What kind of component it is?

               

              BTW JBossMessagingBridge is for asynchronous JMS messaging system, nothing where are methots can be called.

              • 4. Re: Two Jboss in one Network
                ceene

                I have a statelessSessionBean (Data.jar).

                 

                Is JBossMessagingBridge not for the communication between two servers?

                • 5. Re: Two Jboss in one Network
                  wdfink

                  If you have a SLSB you have to add the interfaces to your 'other' application and lookup and call the SLSB as a (remote)client.

                   

                  A MessagingBridge is something to bring two different systems together, might be an EAP system or two different JMS systems.

                  But normaly it is asynchronous.

                  You talk about synchron method invocation.

                  • 6. Re: Two Jboss in one Network
                    ceene

                    SLSB (Stateless SessionBean I think)

                    I already done this, but the problem is, that the Bean must be in the same deploy-file and the same jboss as my application or not?