6 Replies Latest reply on Aug 21, 2002 12:01 PM by scharlau

    How to list services deployed in JBoss/Axis

    magesh

      Hi,

      I am using the pre-configured package for JBoss/Tomcat/Axis and it is working great. I am trying to find out how to list the services deployed as part of the server. I tried

      http://:<port#>/axis/services/AdminServlet and I am not getting any listing.

      Any pointers?
      Thanks
      Magesh.

        • 1. Re: How to list services deployed in JBoss/Axis
          magesh

          Well, I got this to work by setting the following in run script

          -Daxis.enableListQuery=true

          After setting this, I was able to see the list

          http://localhost:8080/axis/services/AxisServlet?list

          Magesh.

          • 2. Re: How to list services deployed in JBoss/Axis
            cake

            Is this been documented anywhere? I can't find it in the JBoss documentation and Axis documentation. May be I missed something, but can you point that out for me? Thanks.

            • 3. Re: How to list services deployed in JBoss/Axis
              magesh

              Well, I found it the hard way. I decompiled the code to find out what is going on.. That's where I found out that the AxisServlet looks for a system property axis.enableListQuery when one tries to perform the list functionality.

              • 4. Re: How to list services deployed in JBoss/Axis
                essington

                Actually yes, this is in the readme.html file in the jboss.net/docs directory:

                When you start JBoss with the -Daxis.enableListQuery=true option (which you usually do not in a security-aware productive environment), a http://localhost:8080/axis/services?list request should return an xml document describing the current configuration of the AxisEngine including the deployed services.

                of course it is rather hidden if you quickly browsed the file you probably missed it. I was looking for it and had to read it twice :-/

                -jason

                • 5. Re: How to list services deployed in JBoss/Axis
                  magesh

                  Yep.. you are right.. I just saw it in the jboss.netnet/docs directory.. It is not present as part of the bundled package (both Jetty/Tomcat). So, for novices like me it is kinda hard to figure out why the list functionality is disabled. It would have been better if it is included as part of the normal documentation.

                  • 6. Re: How to list services deployed in JBoss/Axis

                    Magesh,

                    thanks for reminding me about this! I'd forgotten about the feature. I implemented by adding the line here in run.bat:

                    rem Setup JBoss sepecific properties
                    set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME%
                    set JAVA_OPTS=-Daxis.enableListQuery=true %JAVA_OPTS%
                    set JBOSS_HOME=%DIRNAME%\..

                    However, the page you mention only gave me an empty screen in IE6 and Netscape6, but when I looked at the source code, voila!

                    Pretty cool stuff. Great help for debugging!

                    cheers

                    Bruce