This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Embedding Tomcat Into Java Applications. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Embedding Tomcat Into Java Applications." Watch "Embedding Tomcat Into Java Applications." New topic
Author

Embedding Tomcat Into Java Applications.

pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 410

Hi All,

I have seen few tutorials on net about this. But they are not working with Tomcat 5.x. Kindly let me know if any tutorial exist for Tomcat 5.x which can explain how to embed Tomcat into Java Application.


Pawan Chopra
SCJP - DuMmIeS mInD
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

I don't think the process has changed all that much over the years. Essentially, (if my memory hasn't failed), you have a JavaBean that represents Tomcat, you set properties on it to customize how Tomcat will run, then you call the bean's bootstrap method to launch the embedded Tomcat.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41060
    
  43
The http://faq.javaranch.com/java/TomcatFaq points to a couple of articles on embedding Tomcat.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Embedding Tomcat Into Java Applications.
 
Similar Threads
Question to Thomas on "Murach Servlets"
Which version of Tomcat to use?
Version issue while deploying
JDK 1.4.2 and Tomcat 5 on Windows Vista?
Tomcat Problem