Accessing tomcat settings from external applications

S

Steve Szabo

Hello,

Hopefully this isn't too stupid of a question. I have settings
defined in my Tomcat application server.xml file that I would also
like to use from an external Java application. Specifically, the
connection pool settings and preferably the connection pool itself.

My external app already shares code from the same bean package that I
run within my Tomcat application. The data layer code does a "new
InitialContext()", which works fine when run in the Tomcat container.

When the same code is accessed from my code outside of Tomcat, I get
the following Exception:

"Need to specify class name in environment or system property, or as
an applet parameter, or in an application resource file:
java.naming.factory.initial"

Your insight is appreciated.

Thank you,

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top