0 Replies Latest reply on Jan 21, 2013 8:32 AM by mitvivek

    Implementing the javax.xml.rpc.server.ServiceLifecycle

    mitvivek

      Hi,

       

      I am trying to implement javax.xml.rpc.server.ServiceLifecycle but the init() method is not being invoked.

       

      public class TestServicesSoapBindingImpl extends TestManager implements ws.webservices.testservices.TestServices_Port{

      }

       

      In my web.xml, I have entry for my servlet class.

      <servlet>

        <servlet-name>ws_webservices_testservices_TestServicesSoapBindingImpl</servlet-name>

        <servlet-class>ws.webservices.testservices.TestServicesSoapBindingImpl</servlet-class>

        <load-on-startup>1</load-on-startup>

      </servlet>

      <servlet-mapping>

        <servlet-name>ws_webservices_testservices_TestServicesSoapBindingImpl</servlet-name>

        <url-pattern>services/TestServices</url-pattern>

      </servlet-mapping>

       

      This servlet extends a class which implemets the  javax.xml.rpc.server.ServiceLifecycle. i.e.

       

      public class TestManager implements ServiceLifecycle  {

      }

       

       

      When my application is loaded this servlet is not invoked. I guess there is some configuration that I might be missing.

       

      Any pointers will be really helpful.

       

      Thanks

      Vivek