7 Replies Latest reply on Oct 1, 2013 1:28 PM by wdfink

    Jboss Start and stop

    shekhar16

      Hi,

       

      I am running jboss4.0.5

      I have a problem related to stop the server, when i received a request and in between processing the request if I stop or shutdown the server it stops the process in mid ,and stop the server

      My request processing will be incomplete i.e. half work is done and half remains,this cause unusual behavior for my app.

       

       

      Any suggestions?


      Thanks & Regards.

        • 1. Re: Jboss Start and stop
          wdfink

          You use a very old version of JBoss

           

          How do you stop the server? And what is incomplete?

          Could you a bit more detailed?

          • 2. Re: Jboss Start and stop
            shekhar16

            Hii,

            i am stopping server with

            shutdown -S

            or ctrl C

             

            Whenever client call my web services, and sever start running the process for service in between that process if i stop server by any of above method it remains the process transaction incomplete ,

            The process for request my server get will be incompleted.

            • 3. Re: Jboss Start and stop
              wdfink

              Is the process spit in several web-services? AFAIK a single call will be finished. But I'm not sure whether this is the case with such old AS version.

              Do you have a change to check that with the latest AS4 or newer version?

              • 4. Re: Jboss Start and stop
                shekhar16

                No i didnt check with with any other version.
                yes the web services is spit in several web services deployed on same server instance and other instance as well..

                • 5. Re: Jboss Start and stop
                  wdfink

                  I suppose the problem is that you invoke a sequence of services from a client outside the used server.

                  If you shutdown the server it will wait to finish the current runing service, after this is complete the server will undeploy the app and continue shutdown.

                  If you try to call the next service in this sequence for the business case the first webservice is commited and this one can not invoked as the application is down.

                   

                  A possible solution is to use  a more coarse-grained approach which use a container-transaction to be consistent.

                  Other option might be to have a business transaction where you can restore the process after such situation.

                  • 6. Re: Jboss Start and stop
                    shekhar16

                    is there any way to stop the incoming http requests and the current pending requests complete its process after that we call shutdown the server.

                    • 7. Re: Jboss Start and stop
                      wdfink

                      A common way is to redirect new request to a "under construction" page if there is a apache in front.

                      If you have a DNS in front you might redirect a new request here.

                      For the direct JBoss connection I did not know a possibility.