Jeffrey Hi Jeffrey I would write a service which implements javax.xml.rpc.LifeCycle. I will do all the initialization of connecting to database in the init(..) method. From your requirement it looks like your service is better off having an application scope. So I would add <parameter name="scope" value="application" /> as a part of the service description in the wsdd.
hope this helps, Vidyanand -----Original Message----- From: Jeffrey J Gaynor/jqhome [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 2:21 PM To: [EMAIL PROTECTED] Subject: RE: Lifespan of axis objects Indeed this is it. (Thanks Muthu!!) I need to write a service that accesses a database backend and therefore should have a persistent jdbc connection. Has anyone done this successfully? Our idea is to store certain information about objects in a database and use axis to access these over the web. The client side would be more or less a command line tool. Any suggestions/help/advice appreciated. Cheers, Jeff On 12/09/2002 03:39:44 "Brown, Jeff (INRI)" wrote: >Just a guess but it sounds like you're talking about object scope. Although >I haven't tried it out myself, the docs talk about application, session, and >request scope. > >JAB > >-----Original Message----- >From: Jeffrey J Gaynor/jqhome [mailto:[EMAIL PROTECTED]] >Sent: Monday, December 09, 2002 4:26 PM >To: [EMAIL PROTECTED] >Subject: Lifespan of axis objects > > >Hi, > >I am trying to get up to speed on using axis. What is the lifespan of an >object? In other words, if I am communicating with a server and make a >request of an object, does the server create a new instance every time? If >so, is there any way to govern the persistence of such objects? Where can I >read up more on this? > >Thanks in Advance, > >-- J
