|
|
Choosing A Webhost: |
Re: accesing data: msg#00049text.xml.soap.user
My summary: you want to access a text file from the constructor for your service class, and you are wondering how you can put the name of the file in configuration data the can be accessed from the constructor. Is that right? Nothing is provided in the Apache SOAP framework to help you do exactly what I have stated above. In all versions, you would have the alternative of having an initialization method called from each of your methods, i.e. lazy initialization. Your methods would each have the SOAPContext parameter for you to access the deployment descriptor or servlet initialization information. Added to the current code after the 2.3.1 release, your service class can also implement the ConfigurableService interface. The configure method on this interface is called once per instance of the service, immediately after the constructor. This method receives webapp, servlet and deployment descriptor initialization values in Hashtables. With post-2.3.1 code, this is the preferred method for initializing services. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: <tizo@xxxxxxxxxxxxx> To: <soap-user@xxxxxxxxxxxxx> Sent: Saturday, February 14, 2004 6:41 PM Subject: accesing data Hi, I am implementing a service with SOAP RPC (with application scope), and I would like to know how can I access a text file from it. I have read from the list, that there is a way to do that putting the data in the deploymenent descriptor, and then accessing it with SOAPContext, but I need the data in the constructor of the service. How could I do that? I had though in an environment variable too, but it's not portable, and Java don't allow to read them. Thanks very much, Tizo
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | SOAP Data Handler, sunil joshi |
|---|---|
| Next by Date: | Asunto: Re: accesing data, tizo |
| Previous by Thread: | accesing data, tizo |
| Next by Thread: | Asunto: Re: accesing data, tizo |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |