You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by The Duke <mi...@lycos.com> on 2001/10/16 14:56:27 UTC
Database connections problem
Hello,
Does any one know if I can use other applications database connections?
<Context path="/applicationpath" ..>
<Resource name="jdbc/myDB" ... />
<ResourceParams name="jdbc/myDB" ...>
<parameter>
...
</parameter
<ResourceParams>
</Context>
<Context path="/anotherapplicationpath" ..>
</Context>
How can I reach the applicationpath resource from anotherapplication? What do I have to change in the context? Or is this not possible?
thanx,
Dennis
Make a difference, help support the relief efforts in the U.S.
http://clubs.lycos.com/live/events/september11.asp
Re: Database connections problem
Posted by Glenn Nielsen <gl...@voyager.apg.more.net>.
I assume this is Tomcat 4, if so, look at the <DefaultContext ... />
documentation. The DefaultContext can be used to configure default
settings which are inherited by other Contexts within a <Host>.
Regards,
Glenn
The Duke wrote:
> Hello,
>
> Does any one know if I can use other applications database connections?
>
> <Context path="/applicationpath" ..>
> <Resource name="jdbc/myDB" ... />
> <ResourceParams name="jdbc/myDB" ...>
> <parameter>
> ...
> </parameter
> <ResourceParams>
> </Context>
>
> <Context path="/anotherapplicationpath" ..>
> </Context>
>
> How can I reach the applicationpath resource from anotherapplication? What do I have to change in the context? Or is this not possible?
>
> thanx,
> Dennis
>
>
> Make a difference, help support the relief efforts in the U.S.
> http://clubs.lycos.com/live/events/september11.asp
>
--
----------------------------------------------------------------------
Glenn Nielsen glenn@more.net | /* Spelin donut madder |
MOREnet System Programming | * if iz ina coment. |
Missouri Research and Education Network | */ |
----------------------------------------------------------------------