Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Integrating my application with tomcat

 
basha khan
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, this the second time in as many posts I have answered to the wrong poster!!

Jon
 
Scott Dunbar
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic