0 Replies Latest reply on Oct 29, 2004 2:17 PM by jim_stoll

    why does axis always get a newinstance of a pojo

      hey guys,

      I guess i am specifying something wrong becasue Axis keeps getting a newInstance of a pojo that i have defined as a service. Can someone tell me what i have to specify in my web-service.xml so that Axis only gets one instance of the pojo ,WindowsExecService, no matter how many requests it gets ?

      my currennt web-service.xml looks like this

      <!-- Example Web Service Descriptor -->
      
      <deployment
       xmlns="http://xml.apache.org/axis/wsdd/"
       xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
       xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
       <service name="WindowsExecService" provider="java:RPC">
       <parameter name="className" value="mil.jlwi.webservices.axis.services.WindowsExecService"/>
       <parameter name="allowedMethods" value="*"/>
       </service>
      
      </deployment>
      



      Thanks for your time ...

      Jim Stoll