On 6/20/2015 1:57 PM, Daniel Mierswa wrote:
Good afternoon list,

I would like to know how to access a running tomcat installation from
within another
Java application which is not running in the tomcat container.
More specifically I would like to end up using the datasource
which is configured via <GlobalNamingResources> in the server.xml.
This would allow me to use an existing configuration and so I wouldn't
need to specify
the jdbc parameters and dialect etc. somewhere else to get a connection
pool.

You seem to be mixing two different kinds of connections here. First you say you want to connect to another Tomcat installation. I do that with HTTP connections in Java.

Then you talk about what appear to be database connections.

Or are you trying to use the database connection information in your tomcat installation, in a standalone java program? I think to do that, you will need to read in the .xml files and parse out the information you want from there.



Thanks for reading.
Daniel

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




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

Reply via email to