On Mon, Jun 03, 2002 at 04:22:54PM -0400, Edwards, Jeff wrote: > I am having problems getting this to work. I defined my service to be of > 'application' scope and have my service impl class implementing the > 'javax.xml.rpc.server.ServiceLifecycle' interface. The 'init' message is > not being called after the service is started -- for the initial call or > subsequent calls. Could someone explain the appropriate use of the > 'ServiceLifecycle' interface? Thanks in advance!
I would like to ask the same question... attached are my implementation and deploy.wsdd. The idea is to build the MySQL/JDBC example that was discussed earlier. Thanks! -- Miguel A Paraz <http://mparaz.com> Mobile: +63-916-423-7922 Imperium Technology, Inc. <[EMAIL PROTECTED]> Office: +63-2-812-3155
/** * MyDBAccessSoapBindingImpl.java * * This file was auto-generated from WSDL * by the Apache Axis WSDL2Java emitter. */ package com.mparaz.axis; import javax.xml.rpc.server.ServiceLifecycle; import java.lang.Object; public class MyDBAccessSoapBindingImpl implements MyDBAccess, ServiceLifecycle { String marker; public void doPut(String key, String value) throws java.rmi.RemoteException { } public String doGet(java.lang.String key) throws java.rmi.RemoteException { return marker; } // Methods for persistence public void init(Object context) { marker = ""; } public void destroy() { } }
<!-- Use this file to deploy some handlers/chains and services --> <!-- Two ways to do this: --> <!-- java org.apache.axis.client.AdminClient deploy.wsdd --> <!-- after the axis server is running --> <!-- or --> <!-- java org.apache.axis.utils.Admin client|server deploy.wsdd --> <!-- from the same directory that the Axis engine runs --> <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <!-- Services from MyDBAccessService WSDL service --> <service name="MyDBAccess" provider="java:RPC"> <parameter name="className" value="com.mparaz.axis.MyDBAccessSoapBindingSkeleton"/> <parameter name="allowedMethods" value="*"/> <parameter name="scope" value="application"/> </service> </deployment>