Hehhe .. Steve, I guess you are right .. I did finally find the place where it is. the worst part is that I looked arnd the same place last time and it was just not visible to my eyes .. :-) Now i can not confused anymore as to why it worked for Ben.
Vidyanand. -----Original Message----- From: Steve Loughran [mailto:[EMAIL PROTECTED]] Sent: Friday, November 15, 2002 11:15 PM To: [EMAIL PROTECTED] Subject: Re: Initialization Parameters um, remember, just because I'm a committer, doesnt mean that I know what I'm talking about. Any project of significant size has someone who causes more damage to the codebase through ignorance than they contribute :) I believe the current situation is that the session expiry code isnt working, cos there is no expiry support. But that doesnt mean that init wont get a look in. ----- Original Message ----- From: "Vidyanand Murunikkara" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 13:43 Subject: RE: Initialization Parameters Hi Ben When you said "it works well" did u mean u tried it out and it worked fine ? I was under the impression this feature doesn't exist. I checked the code and it doesn't seem to be in there. And Steve Loughran from the Axis commiter list also said that this feature is not supported. http://marc.theaimsgroup.com/?l=axis-user&m=103679570405098&w=2. Vidyanand. -----Original Message----- From: Ben Souther [mailto:[EMAIL PROTECTED]] Sent: Friday, November 15, 2002 6:16 AM To: [EMAIL PROTECTED] Subject: Re: Initialization Parameters While digging through the archives, I found this and it works well. Thanks Eric Jung. List: axis-user Subject: RE: Beginner's question From: "Jung, Eric (Contractor)" <[EMAIL PROTECTED]> Date: 2002-08-16 16:04:47 [Download message RAW] How about this? Your service implements ServiceLifecycle. Axis should call your init() method, passing you a reference to the ServletContext. From that you can get servlet initialization parameters (like filenames) that you specified in web.xml. I'm new, too, so don't take my input as a good way to do things! public class MyService implements ServiceLifecycle { public void init(java.lang.Object context) throws ServiceException { ServletEndpointContext ctx = (ServletEndpointContext)context; ServletContext servletContext = ctx.getServletContext(); //get filename specified in web.xml and open it String filename = servletContext.getInitParameter("filename"); InputStream is = servletContext.getResourceAsStream(filename); } } Eric H. Jung On Wednesday 13 November 2002 08:18 am, Ben Souther wrote: > Does Axis have a mechanism for passing initialization parameters to a > webservice class?