Thanks Depal, I read in an arcticle that the paramter for init() is messageContext. http://www.developer.com/open/article.php/10930_3589126_3
With the serviceCcontext it works - Thanks for clearing this. Bille > -----Ursprüngliche Nachricht----- > Von: [email protected] > Gesendet: 05.06.06 07:29:13 > An: [email protected] > Betreff: Re: [axis2] How to initialize settings on startup of the service > Just add the following method and it will be called when ever service > get initiated. > > public void init(ServiceContext sctx){ > } > > Depending on the scope that you are trying to deploy your service the > number of times that init method call may vary.As an example if you > deploy the service in application scope then it will be called once else > it will be more than once. > > [EMAIL PROTECTED] wrote: > > >Hi to all, > > > >how do you initialize settings on startup? > > > >I'd like to set some configurations on the service start; e.g. setting the > >path of log-file, which I have to do absolute. Therefore I need to access > >the configurationContext to get the real path of the service location. > >I put a static initializer in my service implementation; this is called on > >startup. But AFAK at that time I have no possibility to access the > >MessageContext, or any other context. > >I tried o put an init(incomingMessageContext) in my service, but this method > >never seems to be called. The "first" possibility to access the > >context-hierarchie is the setOperationContext() which is called whenever a > >service method is called. > >At which point the init() is called? > >I don't like to do the settings at any operation call. > > > >Could anyone clearify this please ?! > > > >Thanks to the community > > > >Bille > > > >______________________________________________________________ > >Verschicken Sie romantische, coole und witzige Bilder per SMS! > >Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > Thanks, > Deepal > ................................................................ > ~Future is Open~ > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000071 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
