Paul French wrote: > The handler.init method is not passed the configuration context. So I > suppose I have to obtain the resources on each invocation of the invoke or > revoke method of the handler. Being a big Spring fan I was looking for a way > to configure my module and handlers up front. > Yes that should be the case, because handlers are said to be stateless. So you are not supposed to store anything inside a handler. You can do the initialization at the startup time and store into the configuration context and use that at the runtime.
Thank you! Deepal > Thanks > > -----Original Message----- > From: Deepal jayasinghe [mailto:[email protected]] > Sent: 28 December 2008 17:47 > To: [email protected] > Subject: Re: Modules and Handlers > > Paul French wrote: > >> I have written a simple Module that logs all SOAP messages into a >> database. >> >> My handlers needs access to resources setup in the Module init method >> e.g a DataSource >> >> I cannot see how a handler can get access to resources setup in the >> module? Can someone give me a clue? >> > At the initialization put the resources into the ConfigurationContext, and > then you can access at the runtime > > Deepal > >> >> Thanks >> Paul >> >> >> > > > -- > Thank you! > > > http://blogs.deepal.org > http://deepal.org > > > __________ NOD32 3719 (20081227) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > > > > -- Thank you! http://blogs.deepal.org http://deepal.org
