tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Programatically Controlling Tomcat 7
Date Thu, 04 Oct 2012 17:22:45 GMT
Hash: SHA1


On 10/3/12 4:38 PM, Peloquin, Willie wrote:
> Sorry to disturb the list with this question, but I have been
> looking for the answer online. I know that I can control the Tomcat
> Manager using text or JMX.

Technically, you aren't controlling the Tomcat Manager via JMX.
Instead, you can invoke operations on JMX beans -- some of which can
affect the manager just because it happens to be a webapp. The manager
webapp can also perform some operations like deploy, start, stop, etc.
on webapps.

> will provide me a list of
> web services and some status.
> I read the sections on JMX, but I do not have a clue on the
> operations. To quote the Tomcat 7.0 documentation, "For you to
> really understand the JMX Proxy Servlet, you should have a general
> understanding of JMX. If you don't know what JMX is, then prepare
> to be confused."

I think you have become confused.

> My goal is to be able to start, stop and restart web services 
> programmatically.

Okay, no problem.

> I know that I could send http packets in a stream to the web
> server, but I feel that web sites are for user interaction. I would
> like to have some type of API.

You *are* using an API: it's just based upon HTTP. You can send
messages via HTTP just like you would call methods on an object (some
OO languages like Objective C even call method calls "messages").

Hope that helps,
- -chris
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools -
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message