Stefan,
open services.xml and, after this element
<parameter name="ServiceClass" locked="xsd:false>
class_name
</parameter>
try to add this line
<parameter name="load-on-startup" locked="false">true</parameter>
Michele
Stefan Bokor wrote:
> Update:
>
> Ok, getting closer...
>
> I have realized that I use WSDL2Java with switch -S (deploy
> skeleton), so I have also modified the XXSoapBindingSkeleton
> class. My Skeleton and Impl classes now look like this:
>
> ----
> public class XXSoapBindingSkeleton
> implements com.vx.soap.XX,
> org.apache.axis.wsdl.Skeleton,
> javax.xml.rpc.server.ServiceLifecycle // added
> {
> private com.vx.soap.XX impl;
> ...
>
> // added
> public void init(Object ctx) throws ServiceException {
> ((ServiceLifecycle) impl).init(ctx);
> }
> public void destroy() {
> ((ServiceLifecycle) impl).destroy();
> }
>
> ...
> }
>
>
> public class XXSoapBindingImpl
> implements com.vx.soap.XX,
> ServiceLifecycle // added
> {
> String info = "none";
>
> // added
> public void init(Object ctx) throws ServiceException {
> info = "inited";
> }
>
> public void destroy() {}
>
> public String getX() {return info;}
> }
> -----
>
> On client side I execute getX() two times like this:
>
> -----
> clnt = new XXSoapBindingStub(url, null);
> String ret = clnt.getX();
> ret += ", " + clnt.getX();
> ...
> -----
>
> And the return is "inited, inited" - the init() in the service
> is being called each time the client invokes getX(). I would
> expect init() to be only called the 1st time, e.g.: the return
> should be "inited, empty".
>
> BTW, I deploy the service with scope "Application".
>
> Do I miss something? Do I need to configure Tomcat too?
> Thank you,
> -stefan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]