hello Mohammed, what i have done is to use a startup parameter that specifies the path name to a configuration file.. this way i can change the configuration file (i used an xml document that loads itself as a "properties" object ) without changing the parameter.
in other words i only use the startup parameter in the wssd file as a bootstrap to load the real configuration file.. but i'm sure there are other ways to do the same thing.. hope this helps. tom -----Original Message----- From: Akacem Mohammed [mailto:Mohammed.Akacem@;arbeitsamt.de] Sent: Sat 11/9/2002 2:39 AM To: '[EMAIL PROTECTED]' Cc: Subject: AW: How to pass a parametre to a webservice on startup hallo tom again, Ok I can access a parameter from a wssd file, but the probleme is that I would have to deploy my service every time I change the value of my parameter. I want a way to read a parameter in my case it's a debug option, so I want to be able to set on or set off debuging without having to deploy my service again. is ther a way to do this? thanks Mohammed -----Urspr�ngliche Nachricht----- Von: Akacem Mohammed [mailto:Mohammed.Akacem@;arbeitsamt.de] Gesendet: Freitag, 8. November 2002 15:04 An: '[EMAIL PROTECTED]' Betreff: AW: How to pass a parametre to a webservice on startup hello mattia, now it's clear to me thanks Mohammed -----Urspr�ngliche Nachricht----- Von: Mattia dongili [mailto:m.dongili@;hisn.it] Gesendet: Freitag, 8. November 2002 15:04 An: [EMAIL PROTECTED] Betreff: RE: How to pass a parametre to a webservice on startup hi, > I didn't understand when you said that this approach will > lock me into using Axis as your SOAP layer. what does this means? that this is an Axis specific way of passing/retrieving parameters to webservices and if you move to any other SOAP framework you'll have to rewrite that piece of code. -- mattia > > Mohammed > > -----Urspr�ngliche Nachricht----- > Von: Tom Schuring [mailto:Tom.Schuring@;BaycorpAdvantage.com] > Gesendet: Donnerstag, 7. November 2002 22:32 > An: [EMAIL PROTECTED] > Betreff: RE: How to pass a parametre to a webservice on startup > > > Hello Mohammed, > > i asked the same question yesterday and got this useful help: > --------------------------------------- > I use the parameter element in the WSDD deployment for the > service such as: > > <parameter name="myparam" value="somevalue"/> > > In my service code, I use the following: > > MessageContext msgCxt = MessageContext.getCurrentContext(); > SOAPService soapSvc = msgCxt.getService(); > soapSvc.getOption("myparam"); > --------------------------------------- > and then someone commented: > > That approach will lock you into using Axis as your SOAP layer. > > hope this is useful. > > > -----Original Message----- > From: Akacem Mohammed [mailto:Mohammed.Akacem@;arbeitsamt.de] > Sent: Friday, November 08, 2002 2:10 AM > To: '[EMAIL PROTECTED]' > Subject: How to pass a parametre to a webservice on startup > > > Hello, > > I want to pass a debug option to myservice on startup is > there a way to bring such parameter in the configuration file > of the webservice application > > thanks for any help > > Mohammed >
<<winmail.dat>>
This correspondence is for the named person's use only. It may contain confidential or legally privileged information, or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Baycorp Advantage.
