You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by tomkitten <jw...@gmail.com> on 2008/12/10 00:31:57 UTC

Tomcat resources

I would like a web application to read in some data from a text file (I tried
using .class.getResourceAsStream). I am not sure how to write the
context.xml file. Also would the solution be the same if I am using a
hibernate.cfg.xml file to talk to my database? I should also say that my web
application is in a .war file.

Thanks in advance

-- 
View this message in context: http://www.nabble.com/Tomcat-resources-tp20926122p20926122.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat resources

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: tomkitten [mailto:jwilley44@gmail.com]
> Subject: RE: Tomcat resources
>
> How can I use a hibernate.cfg.xml (hibernate configuration) as
> resource in a war file? What needs to go into the Context.xml?

Possibly nothing.  GIYF:
http://www.hibernate.org/114.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat resources

Posted by tomkitten <jw...@gmail.com>.
Sorry if the question is unclear.
How can I use a hibernate.cfg.xml (hibernate configuration) as resource in a
war file? What needs to go into the Context.xml? 

Thanks




Caldarale, Charles R wrote:
> 
>> From: Kees de Kooter [mailto:kdekooter@gmail.com]
>> Subject: Re: Tomcat resources
>>
>> Is this some would-be turing machine babbling away or is there are
>> genuine question here?
> 
> Might be time to repost Andre's list...
> http://marc.info/?l=tomcat-user&m=122823060425367&w=2
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Tomcat-resources-tp20926122p20926497.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat resources

Posted by Pid <p...@pidster.com>.
Caldarale, Charles R wrote:
>> From: Kees de Kooter [mailto:kdekooter@gmail.com]
>> Subject: Re: Tomcat resources
>>
>> Is this some would-be turing machine babbling away or is there are
>> genuine question here?
> 
> Might be time to repost Andre's list...
> http://marc.info/?l=tomcat-user&m=122823060425367&w=2

lol.  i go away for a few weeks... i could have never known that this
existed.

p



>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat resources

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Kees de Kooter [mailto:kdekooter@gmail.com]
> Subject: Re: Tomcat resources
>
> Is this some would-be turing machine babbling away or is there are
> genuine question here?

Might be time to repost Andre's list...
http://marc.info/?l=tomcat-user&m=122823060425367&w=2

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat resources

Posted by Kees de Kooter <kd...@gmail.com>.
Is this some would-be turing machine babbling away or is there are
genuine question here?



On Wed, Dec 10, 2008 at 00:31, tomkitten <jw...@gmail.com> wrote:
>
> I would like a web application to read in some data from a text file (I tried
> using .class.getResourceAsStream). I am not sure how to write the
> context.xml file. Also would the solution be the same if I am using a
> hibernate.cfg.xml file to talk to my database? I should also say that my web
> application is in a .war file.
>
> Thanks in advance
>
> --
> View this message in context: http://www.nabble.com/Tomcat-resources-tp20926122p20926122.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org