6 Replies Latest reply on Dec 7, 2003 9:09 AM by stanimir

    Clustering an EJB on JBoss

    stanimir

      Hi,
      I would like to cluster an session EJB on JBoss.
      Could anybody tell me what is to be done????
      Thanks.
      Stan

        • 1. Re: Clustering an EJB on JBoss

          Add true to your jboss.xml
          copy to your deploy dir
          run -c all

          -- Juha

          • 2. Re: Clustering an EJB on JBoss
            stanimir

            Thank you,
            I have another question.
            I have a java client that needs to access an EJB on a remote JBoss server.
            I need the home and the remote stubs generated by JBoss during the deployment of the EJB, in the client classpath.
            I don't know where to find these stubs in JBoss server.
            Is there any directory where all generated client stubs are kept in JBoss?
            In general, how a client could call a Remote EJB if it has not the EJB jar in its classpath??
            Thank you.

            Stan

            • 3. Re: Clustering an EJB on JBoss

              We don't have a stub compiler, they're created dynamically at run-time.

              Your client just needs to have the home and remote interfaces.

              -- Juha

              • 4. Re: Clustering an EJB on JBoss
                stanimir

                Hi Juha,
                Thank you very much.
                I have another question.
                When you wrote "Your client just needs to have the home and remote interfaces" did you mean that I have to include the home and the remote interfaces in the client jar or just have these interfaces in the client classpath, which implies that the EJB jar is physically present on the client machine?
                Which solution do you prefer?
                Thank you
                Stan.

                • 5. Re: Clustering an EJB on JBoss

                  The interfaces must be somewhere in your client's classpaht.

                  -- Juha

                  • 6. Re: Clustering an EJB on JBoss
                    stanimir

                    Thank you very much for your help.

                    best regards.
                    Stan.