4 Replies Latest reply on Feb 13, 2004 7:18 AM by marc fleury

    Tomcat loses connection to JBoss

    birwin Newbie

      I am using standalone Tomcat as a web application server/EJB client. My web applications are using EJBs located on a central app server (JBoss 3.2.2). If I reboot my central JBoss app server, My Tomcat clents lose connection and never regain connection. Is there some way to reestablish this connection without rebooting my Tomcat servers?

        • 1. Re: Tomcat loses connection to JBoss
          Juha Lindfors Master

          You need to do a lookup again for the EJB proxies, there's no automated way to do this. It would be much easier for you to run embedded tomcat.

          • 2. Re: Tomcat loses connection to JBoss
            Erik Sliman Apprentice

            There are a lot of benefits to doing what he's doing. For one, he can have many clients access the central EJB server. Security is also increased as clients don't have access to local interfaces or the data source on the EJB server.

            Another alternative is to setup a timer for redoing the lookup. Of course, the clients will still be down until the timer resets, but this still offers the efficiency benefits of cached home interfaces while permitting the clients to reset without restarting them if JBoss or the applications are restarted.

            • 3. Re: Tomcat loses connection to JBoss
              Juha Lindfors Master

               

              "erik777" wrote:
              For one, he can have many clients access the central EJB server.


              embedding tomcat doesn't change this.

              "erik777" wrote:

              Security is also increased as clients don't have access to local interfaces or the data source on the EJB server.


              and all benefits of local interfaces are lost. there's a security in J2EE for securing beans, separating tiers for security doesn't make sense. Plus you lose the thread stack.,



              • 4. Re: Tomcat loses connection to JBoss
                marc fleury Master

                juha is right on that one, reboot the whole