Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: tomcat 5 embedded ?

Remy Maucherat

2004-01-26

Replies:

Mark W. Webb wrote:

> Embedded tomcat 4 had an API that could be used to programatically start
> tomcat from within another application. I am wondering if the same API
> exists for tomcat 5. If not, how could I start tomcat in an existing
> process.
> I would guess that I could not take advantage of the JMX stuff in tomcat
> 5 by using this "startup" API.

Tomcat 5 has the same Embedded API. The main difference (although you
won't notice it) is that it is blended with the regular standalone
Tomcat code. No more weird incompatibilities, and you can use some of
each mode (ie, have a server.xml while using the Embedded API to manage
contexts).

The embedded dist also includes an Ant script, which is basically a set
of JMX commands. You can use the same JMX commands to embed Tomcat 5. I
used that to embed Tomcat 5 inside JBoss 3.2.x (actually, all the
initial code was Costin's).

--
xxxxxxxxxxxxxxxxxxxxxxxxx
R�my Maucherat
Developer & Consultant
JBoss Group (Europe) S�RL
xxxxxxxxxxxxxxxxxxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.