The shutdown method is on the jboss.system:type=server mbean which is set
up to represent the jboss server, so you need it.  Until jmx remoting is
done (jb4) which will I believe include security features, pretty much the
only option I am aware of is to not deploy the jmx rmi adapter so no jmx
commands can be sent to your jboss instance.

david jencks

On 2003.03.02 20:27 Scott Rehorn wrote:
> Hello, 
> 
> What exactly does that shutdown mbean look like? Or, better, where is it
> deployed? It seems like the remote shutdown program works happily whether
> or
> not jmx-console is there or if security is turned on for it, etc. 
> 
> The goal is to keep a casual user from running shutdown accidentally or
> otherwise. It seems that the shutdown program gets a proxied connection
> to
> the core server-- am I reading that wrong? 
> 
> It seems to work the way I want if I change jboss-service.xml in
> jmx-rmi-adaptor.sar/META-INF so the rmiadaptor name disappears, but that
> seems a little sketchy. 
> 
> I am using jboss3.2RC2/win2k/jvm1.3.
> 
> thanks!
> 
> - scott r
> 
> 
> > -----Original Message-----
> > From: David Jencks [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, January 02, 2003 10:25 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Remote Shutdown of JBoss Server
> > 
> > 
> > less drastically you could not deploy the shutdown mbean.  I 
> > think most
> > versions of jboss 3+ do not use jmx-console to shutdown 
> > remotely, instead
> > communicating directly with the jmx server and using the 
> > shutdown mbean.
> > 
> > david jencks
> > 
> > On 2003.01.02 13:19:59 -0500 JD Brennan wrote:
> > > One way would be to turn off the jmx-console by deleting the
> > > jmx-console.war
> > > in the deploy directory.
> > >  
> > > JD
> > >  
> > > -----Original Message-----
> > > From: FLYNN, Peter -Syntegra UK [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, January 02, 2003 9:08 AM
> > > To: Jboss-User (E-mail)
> > > Subject: [JBoss-user] Remote Shutdown of JBoss Server
> > > 
> > > 
> > > 
> > > Hi, 
> > > 
> > > I've noticed that the scripts allow you to specify another 
> > server as a
> > > parameter and shut it down. 
> > > Is there a way to stop anyone remotely shutting down the 
> > JBOSS server
> > > when
> > > they use the shutdown.bat command file? 
> > > 
> > > Regards, 
> > > Peter 
> > > 
> > > 
> > > 
> > > ********************************************************************
> > > 
> > > This email may contain information which is privileged or 
> > confidential.
> > > If
> > > you are not the intended recipient of this email, please notify the
> > > sender
> > > immediately and delete it without reading, copying, 
> > storing, forwarding
> > > or
> > > disclosing its contents to any other person
> > > Thank you
> > > 
> > > Check us out at http://www.syntegra.com
> > > 
> > > ********************************************************************
> > > 
> > > 
> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > > <HTML><HEAD>
> > > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; 
> > charset=iso-8859-1">
> > > <TITLE>Remote Shutdown of JBoss Server</TITLE>
> > > 
> > > <META content="MSHTML 5.00.3315.2870" name=GENERATOR></HEAD>
> > > <BODY>
> > > <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN 
> > > class=220261918-02012003><STRONG>One way would be to turn off the
> > > jmx-console by 
> > > deleting the jmx-console.war</STRONG></SPAN></FONT></DIV>
> > > <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN 
> > > class=220261918-02012003><STRONG>in the deploy 
> > > directory.</STRONG></SPAN></FONT></DIV>
> > > <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN 
> > > class=220261918-02012003></SPAN></FONT>&nbsp;</DIV>
> > > <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN 
> > > class=220261918-02012003><STRONG>JD</STRONG></SPAN></FONT></DIV>
> > > <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN 
> > > class=220261918-02012003></SPAN></FONT>&nbsp;</DIV>
> > > <DIV align=left class=OutlookMessageHeader dir=ltr><FONT 
> > face=Tahoma 
> > > size=2>-----Original Message-----<BR><B>From:</B> FLYNN, 
> > Peter -Syntegra
> > > UK 
> > > [mailto:[EMAIL PROTECTED]<BR><B>Sent:</B> Thursday, 
> > January 02,
> > > 2003 
> > > 9:08 AM<BR><B>To:</B> Jboss-User 
> > (E-mail)<BR><B>Subject:</B> [JBoss-user]
> > > Remote 
> > > Shutdown of JBoss Server<BR><BR></FONT></DIV>
> > > <P><FONT size=2>Hi, </FONT></P>
> > > <P><FONT size=2>I've noticed that the scripts allow you to specify
> > > another 
> > > server as a parameter and shut it down. </FONT><BR><FONT 
> > size=2>Is there
> > > a way 
> > > to stop anyone remotely shutting down the JBOSS server when 
> > they use the 
> > > shutdown.bat command file?</FONT> </P>
> > > <P><FONT size=2>Regards,</FONT> <BR><FONT size=2>Peter</FONT>
> > > </P><CODE><FONT 
> > > 
> > size=3><BR><BR>***********************************************
> > *********************<BR><BR>This
> > > 
> > > email may contain information which is privileged or 
> > confidential. If you
> > > are 
> > > not the intended recipient of this email, please notify the sender
> > > immediately 
> > > and delete it without reading, copying, storing, forwarding 
> > or disclosing
> > > its 
> > > contents to any other person<BR>Thank you<BR><BR>Check us out at 
> > > 
> http://www.syntegra.com<BR><BR>*********************************************
> ***********************<BR></FONT></CODE></BODY></HTML>
> > 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
> <TITLE>RE: [JBoss-user] Remote Shutdown of JBoss Server</TITLE>
> </HEAD>
> <BODY>
> 
> <P><FONT SIZE=2>Hello, </FONT>
> </P>
> 
> <P><FONT SIZE=2>What exactly does that shutdown mbean look like? Or,
> better, where is it deployed? It seems like the remote shutdown program
> works happily whether or not jmx-console is there or if security is
> turned on for it, etc. </FONT></P>
> 
> <P><FONT SIZE=2>The goal is to keep a casual user from running shutdown
> accidentally or otherwise. It seems that the shutdown program gets a
> proxied connection to the core server-- am I reading that wrong?
> </FONT></P>
> 
> <P><FONT SIZE=2>It seems to work the way I want if I change
> jboss-service.xml in jmx-rmi-adaptor.sar/META-INF so the rmiadaptor name
> disappears, but that seems a little sketchy. </FONT></P>
> 
> <P><FONT SIZE=2>I am using jboss3.2RC2/win2k/jvm1.3.</FONT>
> </P>
> 
> <P><FONT SIZE=2>thanks!</FONT>
> </P>
> 
> <P><FONT SIZE=2>- scott r</FONT>
> </P>
> <BR>
> 
> <P><FONT SIZE=2>&gt; -----Original Message-----</FONT>
> <BR><FONT SIZE=2>&gt; From: David Jencks [<A
> HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT>
> <BR><FONT SIZE=2>&gt; Sent: Thursday, January 02, 2003 10:25 AM</FONT>
> <BR><FONT SIZE=2>&gt; To: [EMAIL PROTECTED]</FONT>
> <BR><FONT SIZE=2>&gt; Subject: Re: [JBoss-user] Remote Shutdown of JBoss
> Server</FONT>
> <BR><FONT SIZE=2>&gt; </FONT>
> <BR><FONT SIZE=2>&gt; </FONT>
> <BR><FONT SIZE=2>&gt; less drastically you could not deploy the shutdown
> mbean.&nbsp; I </FONT>
> <BR><FONT SIZE=2>&gt; think most</FONT>
> <BR><FONT SIZE=2>&gt; versions of jboss 3+ do not use jmx-console to
> shutdown </FONT>
> <BR><FONT SIZE=2>&gt; remotely, instead</FONT>
> <BR><FONT SIZE=2>&gt; communicating directly with the jmx server and
> using the </FONT>
> <BR><FONT SIZE=2>&gt; shutdown mbean.</FONT>
> <BR><FONT SIZE=2>&gt; </FONT>
> <BR><FONT SIZE=2>&gt; david jencks</FONT>
> <BR><FONT SIZE=2>&gt; </FONT>
> <BR><FONT SIZE=2>&gt; On 2003.01.02 13:19:59 -0500 JD Brennan
> wrote:</FONT>
> <BR><FONT SIZE=2>&gt; &gt; One way would be to turn off the jmx-console
> by deleting the</FONT>
> <BR><FONT SIZE=2>&gt; &gt; jmx-console.war</FONT>
> <BR><FONT SIZE=2>&gt; &gt; in the deploy directory.</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; JD</FONT>
> <BR><FONT SIZE=2>&gt; &gt;&nbsp; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; -----Original Message-----</FONT>
> <BR><FONT SIZE=2>&gt; &gt; From: FLYNN, Peter -Syntegra UK [<A
> HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT>
> <BR><FONT SIZE=2>&gt; &gt; Sent: Thursday, January 02, 2003 9:08
> AM</FONT>
> <BR><FONT SIZE=2>&gt; &gt; To: Jboss-User (E-mail)</FONT>
> <BR><FONT SIZE=2>&gt; &gt; Subject: [JBoss-user] Remote Shutdown of JBoss
> Server</FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; Hi, </FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; I've noticed that the scripts allow you to
> specify another </FONT>
> <BR><FONT SIZE=2>&gt; server as a</FONT>
> <BR><FONT SIZE=2>&gt; &gt; parameter and shut it down. </FONT>
> <BR><FONT SIZE=2>&gt; &gt; Is there a way to stop anyone remotely
> shutting down the </FONT>
> <BR><FONT SIZE=2>&gt; JBOSS server</FONT>
> <BR><FONT SIZE=2>&gt; &gt; when</FONT>
> <BR><FONT SIZE=2>&gt; &gt; they use the shutdown.bat command file?
> </FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; Regards, </FONT>
> <BR><FONT SIZE=2>&gt; &gt; Peter </FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; 
> ********************************************************************</FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; This email may contain information which is
> privileged or </FONT>
> <BR><FONT SIZE=2>&gt; confidential.</FONT>
> <BR><FONT SIZE=2>&gt; &gt; If</FONT>
> <BR><FONT SIZE=2>&gt; &gt; you are not the intended recipient of this
> email, please notify the</FONT>
> <BR><FONT SIZE=2>&gt; &gt; sender</FONT>
> <BR><FONT SIZE=2>&gt; &gt; immediately and delete it without reading,
> copying, </FONT>
> <BR><FONT SIZE=2>&gt; storing, forwarding</FONT>
> <BR><FONT SIZE=2>&gt; &gt; or</FONT>
> <BR><FONT SIZE=2>&gt; &gt; disclosing its contents to any other
> person</FONT>
> <BR><FONT SIZE=2>&gt; &gt; Thank you</FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; Check us out at <A
> HREF="http://www.syntegra.com"; TARGET="_blank">http://www.syntegra.com</A></FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; 
> ********************************************************************</FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD
> HTML 4.0 Transitional//EN&quot;&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;HTML&gt;&lt;HEAD&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;META HTTP-EQUIV=&quot;Content-Type&quot;
> CONTENT=&quot;text/html; </FONT>
> <BR><FONT SIZE=2>&gt; charset=iso-8859-1&quot;&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;TITLE&gt;Remote Shutdown of JBoss
> Server&lt;/TITLE&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;META content=&quot;MSHTML
> 5.00.3315.2870&quot; name=GENERATOR&gt;&lt;/HEAD&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;BODY&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;DIV&gt;&lt;FONT color=#000080
> face=&quot;Comic Sans MS&quot; size=2&gt;&lt;SPAN </FONT>
> <BR><FONT SIZE=2>&gt; &gt; class=220261918-02012003&gt;&lt;STRONG&gt;One
> way would be to turn off the</FONT>
> <BR><FONT SIZE=2>&gt; &gt; jmx-console by </FONT>
> <BR><FONT SIZE=2>&gt; &gt; deleting the
> jmx-console.war&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;DIV&gt;&lt;FONT color=#000080
> face=&quot;Comic Sans MS&quot; size=2&gt;&lt;SPAN </FONT>
> <BR><FONT SIZE=2>&gt; &gt; class=220261918-02012003&gt;&lt;STRONG&gt;in
> the deploy </FONT>
> <BR><FONT SIZE=2>&gt; &gt; 
> directory.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;DIV&gt;&lt;FONT color=#000080
> face=&quot;Comic Sans MS&quot; size=2&gt;&lt;SPAN </FONT>
> <BR><FONT SIZE=2>&gt; &gt; 
> class=220261918-02012003&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;DIV&gt;&lt;FONT color=#000080
> face=&quot;Comic Sans MS&quot; size=2&gt;&lt;SPAN </FONT>
> <BR><FONT SIZE=2>&gt; &gt; 
> class=220261918-02012003&gt;&lt;STRONG&gt;JD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;DIV&gt;&lt;FONT color=#000080
> face=&quot;Comic Sans MS&quot; size=2&gt;&lt;SPAN </FONT>
> <BR><FONT SIZE=2>&gt; &gt; 
> class=220261918-02012003&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;DIV align=left class=OutlookMessageHeader
> dir=ltr&gt;&lt;FONT </FONT>
> <BR><FONT SIZE=2>&gt; face=Tahoma </FONT>
> <BR><FONT SIZE=2>&gt; &gt; size=2&gt;-----Original
> Message-----&lt;BR&gt;&lt;B&gt;From:&lt;/B&gt; FLYNN, </FONT>
> <BR><FONT SIZE=2>&gt; Peter -Syntegra</FONT>
> <BR><FONT SIZE=2>&gt; &gt; UK </FONT>
> <BR><FONT SIZE=2>&gt; &gt; [<A HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL 
> PROTECTED]</A>]&lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt;
> Thursday, </FONT>
> <BR><FONT SIZE=2>&gt; January 02,</FONT>
> <BR><FONT SIZE=2>&gt; &gt; 2003 </FONT>
> <BR><FONT SIZE=2>&gt; &gt; 9:08 AM&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt;
> Jboss-User </FONT>
> <BR><FONT SIZE=2>&gt; (E-mail)&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt;
> [JBoss-user]</FONT>
> <BR><FONT SIZE=2>&gt; &gt; Remote </FONT>
> <BR><FONT SIZE=2>&gt; &gt; Shutdown of JBoss
> Server&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/DIV&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;P&gt;&lt;FONT size=2&gt;Hi,
> &lt;/FONT&gt;&lt;/P&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;P&gt;&lt;FONT size=2&gt;I've noticed that
> the scripts allow you to specify</FONT>
> <BR><FONT SIZE=2>&gt; &gt; another </FONT>
> <BR><FONT SIZE=2>&gt; &gt; server as a parameter and shut it down.
> &lt;/FONT&gt;&lt;BR&gt;&lt;FONT </FONT>
> <BR><FONT SIZE=2>&gt; size=2&gt;Is there</FONT>
> <BR><FONT SIZE=2>&gt; &gt; a way </FONT>
> <BR><FONT SIZE=2>&gt; &gt; to stop anyone remotely shutting down the
> JBOSS server when </FONT>
> <BR><FONT SIZE=2>&gt; they use the </FONT>
> <BR><FONT SIZE=2>&gt; &gt; shutdown.bat command file?&lt;/FONT&gt;
> &lt;/P&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;P&gt;&lt;FONT
> size=2&gt;Regards,&lt;/FONT&gt; &lt;BR&gt;&lt;FONT
> size=2&gt;Peter&lt;/FONT&gt;</FONT>
> <BR><FONT SIZE=2>&gt; &gt; &lt;/P&gt;&lt;CODE&gt;&lt;FONT </FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; 
> size=3&gt;&lt;BR&gt;&lt;BR&gt;***********************************************</FONT>
> <BR><FONT SIZE=2>&gt; *********************&lt;BR&gt;&lt;BR&gt;This</FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2>&gt; &gt; email may contain information which is
> privileged or </FONT>
> <BR><FONT SIZE=2>&gt; confidential. If you</FONT>
> <BR><FONT SIZE=2>&gt; &gt; are </FONT>
> <BR><FONT SIZE=2>&gt; &gt; not the intended recipient of this email,
> please notify the sender</FONT>
> <BR><FONT SIZE=2>&gt; &gt; immediately </FONT>
> <BR><FONT SIZE=2>&gt; &gt; and delete it without reading, copying,
> storing, forwarding </FONT>
> <BR><FONT SIZE=2>&gt; or disclosing</FONT>
> <BR><FONT SIZE=2>&gt; &gt; its </FONT>
> <BR><FONT SIZE=2>&gt; &gt; contents to any other person&lt;BR&gt;Thank
> you&lt;BR&gt;&lt;BR&gt;Check us out at </FONT>
> <BR><FONT SIZE=2>&gt; &gt; </FONT>
> <BR><FONT SIZE=2><A HREF="http://www.syntegra.com";
> TARGET="_blank">http://www.syntegra.com</A>&lt;BR&gt;&lt;BR&gt;********************************************************************&lt;BR&gt;&lt;/FONT&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</FONT></P>
> 
> <P><FONT SIZE=2>&gt; </FONT>
> </P>
> <BR>
> 
> <P><FONT SIZE=2>-------------------------------------------------------</FONT>
> <BR><FONT SIZE=2>This sf.net email is sponsored by:ThinkGeek</FONT>
> <BR><FONT SIZE=2>Welcome to geek heaven.</FONT>
> <BR><FONT SIZE=2><A HREF="http://thinkgeek.com/sf";
> TARGET="_blank">http://thinkgeek.com/sf</A></FONT>
> <BR><FONT SIZE=2>_______________________________________________</FONT>
> <BR><FONT SIZE=2>JBoss-user mailing list</FONT>
> <BR><FONT SIZE=2>[EMAIL PROTECTED]</FONT>
> <BR><FONT SIZE=2><A HREF="https://lists.sourceforge.net/lists/listinfo/jboss-user";
> TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/jboss-user</A></FONT>
> </P>
> 
> </BODY>
> </HTML>


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to