aspose file tools*
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 Soft Skills 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
Author

Integrating my application with tomcat

basha khan
Ranch Hand

Joined: Jan 26, 2002
Posts: 516
Hi,

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?

Thanka,
Basha
Jon Bates
Greenhorn

Joined: Oct 06, 2005
Posts: 8
Hello,

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 http://127.0.0.1/admin 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!)

Regards,

Jon Bates
Jon Bates
Greenhorn

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

Jon
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="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Integrating my application with tomcat