users@glassfish.java.net

how to read init-param in Web Services

From: Patel, Ronak \(US SSA\) <"Patel,>
Date: Wed, 30 Aug 2006 10:36:18 -0400

Hi all,

I have a web service that is being loaded by the container at startup (I
have to load-on-startup tag on). I see that this causes the container to
call the constructor of my Web Service.

I would like to know if there is any way to read init-params from the
web.xml file upon initialization.

Does the constructor of the Web Service have to be a no-arg default
constructor as well?

Ronak Patel
Software Engineer
BAE Systems CNIR
450 Pulaski Road
Greenlawn, NY 11740
(631) 262 - 8230
ronak.patel_at_baesystems.com

-----Original Message-----
From: Jason Lee [mailto:lee_at_iecokc.com]
Sent: Wednesday, August 30, 2006 9:25 AM
To: users_at_glassfish.dev.java.net
Subject: RE: Re: Log4j is not logging

Jan, I can try that, though I'm not relishing giving up XML. :) I have
run into problems with log4j's XML and validating parsers (for example,
I can't run my unit tests at the moment for that very reason), but if
the .properties solves that problem, then I'm all for it. I've attached
my (cmoplete, but very simple) log4j config. Thanks for the tip.

-----
Jason Lee
Programmer/Analyst
http://www.iecokc.com
 

> -----Original Message-----
> From: Jan.Luehe_at_Sun.COM [mailto:Jan.Luehe_at_Sun.COM]
> Sent: Tuesday, August 29, 2006 9:17 PM
> To: users_at_glassfish.dev.java.net
> Subject: Re: Log4j is not logging
>
> Hi Jason,
> Can you send me your complete log4j.xml, including its
> DOCTYPE declaration?
> Do you see any errors in the server.log?
>
> When I tried using a log4j.xml config file, I saw this error
> in server.log:
>
> log4j:ERROR DOM element is - not a <log4j:configuration> element.
>
> I'll need to investigate.
>
> Using a log4j.properties works for me, though.
>
> Can you switch from using log4j.xml to using log4j.properties
> for the time being?
>
> Thanks,
>
>
> Jan
>
>
> >
> > -----
> > Jason Lee
> > Programmer/Analyst
> > http://www.iecokc.com <http://www.iecokc.com/>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>