You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Benoit Marchal <be...@novaxon.com> on 2003/11/03 10:37:28 UTC

DBCP accessed by an outside JVM

Dear All,

 

We have an application that works in parallel with tomcat in a separate
JVM. We would like that application to access the DBCP of a web
application of Tomcat, so the application in the outside JVM can use the
connection of the pool. Is that possible to do that ? If yes How?

 

Benoit Marchal

 


Re: DBCP accessed by an outside JVM

Posted by José Antonio Pérez Testa <ja...@indra.es>.
You are asking for connection between two different JVM in order to 
share resources, DB conections in your case.
There are many ways to do that: sockets, JMS, etc.
In any case you have to delegate the connection use to the JVM that 
really 'has' the pool.

Benoit Marchal wrote:

>Dear All,
>
> 
>
>We have an application that works in parallel with tomcat in a separate
>JVM. We would like that application to access the DBCP of a web
>application of Tomcat, so the application in the outside JVM can use the
>connection of the pool. Is that possible to do that ? If yes How?
>
> 
>
>Benoit Marchal
>
> 
>
>
>  
>


-------------------------------------------------------------------------------------------------------------------
Este correo electr�nico y, en su caso, cualquier fichero anexo al mismo, contiene informaci�n de car�cter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgaci�n, copia o distribuci�n a terceros sin la previa autorizaci�n escrita de Indra. En el caso de haber recibido este correo electr�nico por error, se ruega notificar inmediatamente esta circunstancia mediante reenv�o a la direcci�n electr�nica del remitente.

The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Indra. If you have received this communication in error, please, notify the sender by reply e-mail

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: DBCP accessed by an outside JVM

Posted by Dirk Verbeeck <di...@pandora.be>.
What are you trying to do? What do you need?

- Connection pool in standalone application
- JNDI lookup in standalone application
- workaround for firewall blocking direct database connections
- transaction coordination between webapp / standalone
- invoke business method inside webapp
- ...

Take your pick

-- Dirk

Benoit Marchal wrote:

> Dear All,
> 
>  
> 
> We have an application that works in parallel with tomcat in a separate
> JVM. We would like that application to access the DBCP of a web
> application of Tomcat, so the application in the outside JVM can use the
> connection of the pool. Is that possible to do that ? If yes How?
> 
>  
> 
> Benoit Marchal
> 
>  
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org