Forums Register Login

starting/stopping a web service programatically?

+Pie Number of slices to send: Send
Hello,

I wonder if I can start/stop a web service programatically? I am using apache axis 2.

If it's possible, can you please tell me how?

Thanks in advance,
+Pie Number of slices to send: Send
Hi Vassili,

I wonder if I can start/stop a web service programatically?


You can do it like any web/enterprise application in a server.

When you say Axis2, are you using Axis2 as a web server? If not, what web/application server are you using?

As a quick hint, here is one of the folks trying to do it in JBoss and not sure if his problem is resolved but this will point to some right direction atleast.
+Pie Number of slices to send: Send
Hi!
What do you mean by starting/stopping?
There are several possible meanings of this:
- Deploying/undeploying.
This depends on the server in which you run the web service. GlassFish v3, for instance, exposes a RESTful service allowing for programmatic management. See: http://weblogs.java.net/blog/arungupta/archive/2009/08/totd_96_glassfi.html
- Process requests/ignore requests.
See alternative below.
- Accept requests/not accept requests.
The last two alternatives can be accomplished in the web service by exposing some kind of control operation or JMX bean that allows for turning the service on or off.
For instance, if the flag is set to true then requests are processed in a normal fashion. If the flag is set to false, then requests may be ignored or a fault may even be returned as the result of a request to the service when it is in a mode not to accept requests.
Best wishes!
Uh oh, we're definitely being carded. Here, show him this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1946 times.
Similar Threads
question about user roles
Logging out issue
Modifying Property Files.
Convertion of SWF to PDF in java
Adding files to jar
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:51:18.