Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: accesing data: msg#00049

text.xml.soap.user

Subject: Re: accesing data

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>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation