• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disabling a service port in apache Axis

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to disable a Service port using some API in Apache Axis?
Thanks
 
Raj Chila
Ranch Hand
Posts: 128
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pradeep,
I think the Axis is a Servlet Running in the Servlet container, like Tomcat, which by default runs on a port 8080.
if you are refering to the webservice port, which exists for each webservice hosted by Axis, then I think you can probably "close" a service by undeploying the service through the AdminClient, or may be eiditing the methods being exposed in the webservice.
because when you open the services page of the Axis, it parses the server.config file and lists all the services that are appearing in the config file.
I hope I understood your query.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to disable a web service temporarily and bring it up after some time, all this using API? Is it possible?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try calling the AdminClient class from your code or add a enable/disable method into your web service and handle the problem on that level (say, keeping a "private static boolean isEnabled" in your web service implementation class), or having a separate Enabler web service which does the same but is only exposed to requests from the local network.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
say, keeping a "private static boolean isEnabled" in your web service implementation class),

Thanks! This is exactly my current implementation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic