File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Disable web service using JMX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Disable web service using JMX" Watch "Disable web service using JMX" New topic
Author

Disable web service using JMX

Rajesh Seth
Greenhorn

Joined: Aug 30, 2010
Posts: 12

I like to have the following features in JMX. Web Services deployed on Tomcat instance with Axis2.

1. All the functionality provided by axis2 web admin should be there
2. It should be able to change global handler chain
3. It should be able to disable and enable service
4 it should be able to turn off an opeartion of a service
5. it provide a way to edit parameters in each level (Global , service ,
opearation , module , handlers , Transport sender and recivers)
6. Engaging and disengaging module (s)

Point number 3 is important to me.


Regards
Rajesh Seth
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
I don't think Axis-2 makes any of that available out of the box. I would imagine that you can implement quite a few of these by filtering org.apache.axis2.webapp.AxisAdminServlet and org.apache.axis2.transport.http.AxisServlet (and possibly org.apache.axis2.webapp.AdminAgent).


Ping & DNS - updated with new look and Ping home screen widget
Rajesh Seth
Greenhorn

Joined: Aug 30, 2010
Posts: 12
Thanks for the reply.
Actually we have the Axis2 admin page disabled intentionally but there should be some way to do it through JMX or REST
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
By filtering org.apache.axis2.transport.http.AxisServlet you should still be able to accomplish most of what you ask for. Start by studying the source code of org.apache.axis2.webapp.AxisAdminServlet. You may have to adapt some of the Axis-2 classes, though.

I would expect the Axis-2 developer mailing list to be a more direct approach to get input from the people familiar with the Axis-2 innards.
Rajesh Seth
Greenhorn

Joined: Aug 30, 2010
Posts: 12
Half way through. Placed some methods in JMX Object model making sure they are not starting with set. This will create buttons in JConsole to control services. Below is the query configured in Tomcat to authenticate from LDAP server.

Tomcat { /* should match to the com.sun.management.jmxremote.login.config property */

com.sun.security.auth.module.LdapLoginModule REQUIRED
userProvider="ldap://172.16.10.160:389/dc=mulesoft,dc=com"
userFilter="(&(uid={USERNAME})(objectClass=inetOrgPerson))"
authzIdentity="{departmentNumber}"
useSSL=false
debug=true;
};

But it doesn't work if direct DN is not provided. With direct DN (From root to bottom path) provided in "userFilter=", it authenticates fine. A wild guess to the problem is that it is not searching the subtree. I need some parameter here which tells the Server to search inside the subtree's as well for the user. Right now it is only looking into the head tree and not navigating inside.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Please ask unrelated questions in a new thread. People will not expect LDAP stuff in a topic about JMX.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disable web service using JMX
 
Similar Threads
Using WS-RM with Axis2 1.5?
Erreur lors de l’exécution d'un client axis2 qui fait une redirection
ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server
Client Customised Device Content
Issue while deploying Application in Jboss 7.1