-
1. Re: Jboss Start and stop
wdfink Sep 27, 2013 1:46 PM (in response to shekhar16)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 Sep 30, 2013 4:36 AM (in response to wdfink)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 Sep 30, 2013 6:09 AM (in response to shekhar16)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 Sep 30, 2013 6:40 AM (in response to wdfink)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 Oct 1, 2013 3:15 AM (in response to shekhar16)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 Oct 1, 2013 4:10 AM (in response to wdfink)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 Oct 1, 2013 1:28 PM (in response to shekhar16)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.