Thank you...
I found out that I can add a context.xml file in the META-INF dir of the
war file.
And this way they are loaded inside the context of the new deployed
context

Simone

-------------------------
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
"Life is short, play hard"


> -----Messaggio originale-----
> Da: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Inviato: luned́ 5 aprile 2004 16.48
> A: Tomcat Users List
> Oggetto: RE: configuring realm in web.xml
> 
> 
> 
> Hi,
> You can setup a DBCP connection pool wherever you want, but 
> then it's your code running it, not the tomcat built-in code 
> (and thus access is not via JNDI).  That's what I do so that 
> I don't rely on the server's connection pooling.
> 
> You cannot setup a realm completely in web.xml, as a Realm is 
> tomcat-specific and therefore it's declaration and definition 
> must be in a tomcat configuration file, e.g. server.xml or 
> your context XML file if you're using one.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-----Original Message-----
> >From: Adam Hardy [mailto:[EMAIL PROTECTED]
> >Sent: Monday, April 05, 2004 8:54 AM
> >To: Tomcat Users List
> >Subject: Re: configuring realm in web.xml
> >
> >On 04/05/2004 02:02 PM Simone - Dev wrote:
> >> Hello All,
> >> I'm developing a webapplication that needs to authorize and
> authenticate
> >> users looking inside a database.
> >> Generally I'll be doing it adding a JDBCRealm inside the server.xml
> (or
> >> in the contex xml file)
> >> But I don't have access to these files.
> >> I'd like to know if it is possibile to define it inside the web.xml
> or
> >> if it's possibile to add some configuration for the 
> context using the 
> >> war archive.
> >>
> >> I looked on the web, and archive but didn't fine anything about it
> >
> >Hi Simone
> >I haven't seen it mentioned for months but it used to be possible to
> set
> >up a jakarta-commons DBCP connection pool outside server.xml 
> - I think 
> >it was done in struts-config.xml but I am not sure. You should check
> the
> >commons-user or the struts-user mailing list archive.
> >
> >Adam
> >--
> >struts 1.2 + tomcat 5.0.19 + java 1.4.2
> >Linux 2.4.20 Debian
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential 
> business communication, and may contain information that is 
> confidential, proprietary and/or privileged.  This e-mail is 
> intended only for the individual(s) to whom it is addressed, 
> and may not be saved, copied, printed, disclosed or used by 
> anyone else.  If you are not the(an) intended recipient, 
> please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to