You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Wesley Acheson <we...@gmail.com> on 2010/09/12 22:38:38 UTC

Possible to proxy JMX?

Hi I was wondering if Its possible to proxy a JMX service.  I got to
thinking a lot of people don't hot deploy for whatever reasons. They
literally shut down tomcat and put in the new content and start it up
again.

If it was possible to proxy JMX though I think it should be possible
to have a small daemon application that proxy's tomcats JMX, and
injects two commands, startup and restart. The idea being so this
minimal java application could launch or relaunch tomcat. (I think it
would need to call the startup.sh or startup.bat file)

What does everyone think? Would that be useful / possible? Its beyond
my capabilities to write.

I got to thinking about this after reading a misunderstanding in
bugzilla. https://issues.apache.org/bugzilla/show_bug.cgi?id=49234#c70
and https://issues.apache.org/bugzilla/show_bug.cgi?id=49234#c71 with
chamith buddhika's changes it really would be possible to do every
step in this list. Including startup.

Just an Idea really. I'm not going to attempt it.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Possible to proxy JMX?

Posted by Wesley Acheson <we...@gmail.com>.
On Mon, Sep 13, 2010 at 11:21 PM, Wesley Acheson
<we...@gmail.com> wrote:
> On Mon, Sep 13, 2010 at 11:12 PM, Pid <pi...@pidster.com> wrote:
>> On 12/09/2010 21:38, Wesley Acheson wrote:
>>> If it was possible to proxy JMX though I think it should be possible
>>> to have a small daemon application that proxy's tomcats JMX, and
>>> injects two commands, startup and restart. The idea being so this
>>> minimal java application could launch or relaunch tomcat. (I think it
>>> would need to call the startup.sh or startup.bat file)
>>
>> Wouldn't you just launch an embedded Tomcat instance?
>
> No cause that kind of defeats the point of having a shutdown. If
> peoples applications memory leak etc. You would want the container
> separate from the launcher. Dunno If I'm making sense with this. It
> does make sense in my head.
>
>> You made me think of this, new in Java 6:
>>  http://download.oracle.com/javase/6/docs/api/javax/management/JMX.html
>
> Taking a look now
>>
>> p
>>
>
>>
>

I guess people aren't interested in this or what I'm saying doesn't
make sense. :(

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Possible to proxy JMX?

Posted by Wesley Acheson <we...@gmail.com>.
On Mon, Sep 13, 2010 at 11:12 PM, Pid <pi...@pidster.com> wrote:
> On 12/09/2010 21:38, Wesley Acheson wrote:
>> If it was possible to proxy JMX though I think it should be possible
>> to have a small daemon application that proxy's tomcats JMX, and
>> injects two commands, startup and restart. The idea being so this
>> minimal java application could launch or relaunch tomcat. (I think it
>> would need to call the startup.sh or startup.bat file)
>
> Wouldn't you just launch an embedded Tomcat instance?

No cause that kind of defeats the point of having a shutdown. If
peoples applications memory leak etc. You would want the container
separate from the launcher. Dunno If I'm making sense with this. It
does make sense in my head.

> You made me think of this, new in Java 6:
>  http://download.oracle.com/javase/6/docs/api/javax/management/JMX.html

Taking a look now
>
> p
>

>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Possible to proxy JMX?

Posted by Pid <pi...@pidster.com>.
On 12/09/2010 21:38, Wesley Acheson wrote:
> Hi I was wondering if Its possible to proxy a JMX service.  I got to
> thinking a lot of people don't hot deploy for whatever reasons. They
> literally shut down tomcat and put in the new content and start it up
> again.
> 
> If it was possible to proxy JMX though I think it should be possible
> to have a small daemon application that proxy's tomcats JMX, and
> injects two commands, startup and restart. The idea being so this
> minimal java application could launch or relaunch tomcat. (I think it
> would need to call the startup.sh or startup.bat file)

Wouldn't you just launch an embedded Tomcat instance?

You made me think of this, new in Java 6:
 http://download.oracle.com/javase/6/docs/api/javax/management/JMX.html


p

> What does everyone think? Would that be useful / possible? Its beyond
> my capabilities to write.
> 
> I got to thinking about this after reading a misunderstanding in
> bugzilla. https://issues.apache.org/bugzilla/show_bug.cgi?id=49234#c70
> and https://issues.apache.org/bugzilla/show_bug.cgi?id=49234#c71 with
> chamith buddhika's changes it really would be possible to do every
> step in this list. Including startup.
> 
> Just an Idea really. I'm not going to attempt it.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>