File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Integrating my application with tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Integrating my application with tomcat " Watch "Integrating my application with tomcat " New topic

Integrating my application with tomcat

basha khan
Ranch Hand

Joined: Jan 26, 2002
Posts: 516

I wanna integrate my network(not web) application with tomcat so it can be accessed through browser in network to confugure. I know that i can use servlets and start from there. But any more ideas?. Also wanna create an installer for it.

Anyone knowing?

Jon Bates

Joined: Oct 06, 2005
Posts: 8

I am no expert, but since noone else has posted, Ill try my best

1) Goto the admin console in tomcat. For the localhost, you can try and log in

2) select "Data Sources" from the left hand pane, and wait for the page to load.

3) in "Data Source Actions" on the top right of the screen, select "Create New DataSource"

4) type in the JNDI source name you want to associate with the connection pool, add the class name (as if calling `class.forname(...)' when creating a normal connection) and anything else you like.

5) finally, save and commit changes.

This should give you a connection pool which can be used in the standard manner. You will need to add your DB connection jar to the tomcat_dir\common\lib directory (I think, but i may get a slap on the wrists!)


Jon Bates
Jon Bates

Joined: Oct 06, 2005
Posts: 8
Sorry, this the second time in as many posts I have answered to the wrong poster!!

Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
We're going to need more information than you provided. What is your application? How would you normally communicate with it?

As far as an installer, again, we don't have enough information. A Java application can be installed with the Java Webstart system but there are tons of other ways too.

<a href="" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
I agree. Here's the link:
subject: Integrating my application with tomcat
It's not a secret anymore!