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> </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> </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>> -----Original Message-----</FONT> > <BR><FONT SIZE=2>> From: David Jencks [<A > HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT> > <BR><FONT SIZE=2>> Sent: Thursday, January 02, 2003 10:25 AM</FONT> > <BR><FONT SIZE=2>> To: [EMAIL PROTECTED]</FONT> > <BR><FONT SIZE=2>> Subject: Re: [JBoss-user] Remote Shutdown of JBoss > Server</FONT> > <BR><FONT SIZE=2>> </FONT> > <BR><FONT SIZE=2>> </FONT> > <BR><FONT SIZE=2>> less drastically you could not deploy the shutdown > mbean. I </FONT> > <BR><FONT SIZE=2>> think most</FONT> > <BR><FONT SIZE=2>> versions of jboss 3+ do not use jmx-console to > shutdown </FONT> > <BR><FONT SIZE=2>> remotely, instead</FONT> > <BR><FONT SIZE=2>> communicating directly with the jmx server and > using the </FONT> > <BR><FONT SIZE=2>> shutdown mbean.</FONT> > <BR><FONT SIZE=2>> </FONT> > <BR><FONT SIZE=2>> david jencks</FONT> > <BR><FONT SIZE=2>> </FONT> > <BR><FONT SIZE=2>> On 2003.01.02 13:19:59 -0500 JD Brennan > wrote:</FONT> > <BR><FONT SIZE=2>> > One way would be to turn off the jmx-console > by deleting the</FONT> > <BR><FONT SIZE=2>> > jmx-console.war</FONT> > <BR><FONT SIZE=2>> > in the deploy directory.</FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > JD</FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > -----Original Message-----</FONT> > <BR><FONT SIZE=2>> > From: FLYNN, Peter -Syntegra UK [<A > HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT> > <BR><FONT SIZE=2>> > Sent: Thursday, January 02, 2003 9:08 > AM</FONT> > <BR><FONT SIZE=2>> > To: Jboss-User (E-mail)</FONT> > <BR><FONT SIZE=2>> > Subject: [JBoss-user] Remote Shutdown of JBoss > Server</FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > Hi, </FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > I've noticed that the scripts allow you to > specify another </FONT> > <BR><FONT SIZE=2>> server as a</FONT> > <BR><FONT SIZE=2>> > parameter and shut it down. </FONT> > <BR><FONT SIZE=2>> > Is there a way to stop anyone remotely > shutting down the </FONT> > <BR><FONT SIZE=2>> JBOSS server</FONT> > <BR><FONT SIZE=2>> > when</FONT> > <BR><FONT SIZE=2>> > they use the shutdown.bat command file? > </FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > Regards, </FONT> > <BR><FONT SIZE=2>> > Peter </FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > > ********************************************************************</FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > This email may contain information which is > privileged or </FONT> > <BR><FONT SIZE=2>> confidential.</FONT> > <BR><FONT SIZE=2>> > If</FONT> > <BR><FONT SIZE=2>> > you are not the intended recipient of this > email, please notify the</FONT> > <BR><FONT SIZE=2>> > sender</FONT> > <BR><FONT SIZE=2>> > immediately and delete it without reading, > copying, </FONT> > <BR><FONT SIZE=2>> storing, forwarding</FONT> > <BR><FONT SIZE=2>> > or</FONT> > <BR><FONT SIZE=2>> > disclosing its contents to any other > person</FONT> > <BR><FONT SIZE=2>> > Thank you</FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > Check us out at <A > HREF="http://www.syntegra.com" TARGET="_blank">http://www.syntegra.com</A></FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > > ********************************************************************</FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD > HTML 4.0 Transitional//EN"></FONT> > <BR><FONT SIZE=2>> > <HTML><HEAD></FONT> > <BR><FONT SIZE=2>> > <META HTTP-EQUIV="Content-Type" > CONTENT="text/html; </FONT> > <BR><FONT SIZE=2>> charset=iso-8859-1"></FONT> > <BR><FONT SIZE=2>> > <TITLE>Remote Shutdown of JBoss > Server</TITLE></FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > <META content="MSHTML > 5.00.3315.2870" name=GENERATOR></HEAD></FONT> > <BR><FONT SIZE=2>> > <BODY></FONT> > <BR><FONT SIZE=2>> > <DIV><FONT color=#000080 > face="Comic Sans MS" size=2><SPAN </FONT> > <BR><FONT SIZE=2>> > class=220261918-02012003><STRONG>One > way would be to turn off the</FONT> > <BR><FONT SIZE=2>> > jmx-console by </FONT> > <BR><FONT SIZE=2>> > deleting the > jmx-console.war</STRONG></SPAN></FONT></DIV></FONT> > <BR><FONT SIZE=2>> > <DIV><FONT color=#000080 > face="Comic Sans MS" size=2><SPAN </FONT> > <BR><FONT SIZE=2>> > class=220261918-02012003><STRONG>in > the deploy </FONT> > <BR><FONT SIZE=2>> > > directory.</STRONG></SPAN></FONT></DIV></FONT> > <BR><FONT SIZE=2>> > <DIV><FONT color=#000080 > face="Comic Sans MS" size=2><SPAN </FONT> > <BR><FONT SIZE=2>> > > class=220261918-02012003></SPAN></FONT>&nbsp;</DIV></FONT> > <BR><FONT SIZE=2>> > <DIV><FONT color=#000080 > face="Comic Sans MS" size=2><SPAN </FONT> > <BR><FONT SIZE=2>> > > class=220261918-02012003><STRONG>JD</STRONG></SPAN></FONT></DIV></FONT> > <BR><FONT SIZE=2>> > <DIV><FONT color=#000080 > face="Comic Sans MS" size=2><SPAN </FONT> > <BR><FONT SIZE=2>> > > class=220261918-02012003></SPAN></FONT>&nbsp;</DIV></FONT> > <BR><FONT SIZE=2>> > <DIV align=left class=OutlookMessageHeader > dir=ltr><FONT </FONT> > <BR><FONT SIZE=2>> face=Tahoma </FONT> > <BR><FONT SIZE=2>> > size=2>-----Original > Message-----<BR><B>From:</B> FLYNN, </FONT> > <BR><FONT SIZE=2>> Peter -Syntegra</FONT> > <BR><FONT SIZE=2>> > UK </FONT> > <BR><FONT SIZE=2>> > [<A HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL > PROTECTED]</A>]<BR><B>Sent:</B> > Thursday, </FONT> > <BR><FONT SIZE=2>> January 02,</FONT> > <BR><FONT SIZE=2>> > 2003 </FONT> > <BR><FONT SIZE=2>> > 9:08 AM<BR><B>To:</B> > Jboss-User </FONT> > <BR><FONT SIZE=2>> (E-mail)<BR><B>Subject:</B> > [JBoss-user]</FONT> > <BR><FONT SIZE=2>> > Remote </FONT> > <BR><FONT SIZE=2>> > Shutdown of JBoss > Server<BR><BR></FONT></DIV></FONT> > <BR><FONT SIZE=2>> > <P><FONT size=2>Hi, > </FONT></P></FONT> > <BR><FONT SIZE=2>> > <P><FONT size=2>I've noticed that > the scripts allow you to specify</FONT> > <BR><FONT SIZE=2>> > another </FONT> > <BR><FONT SIZE=2>> > server as a parameter and shut it down. > </FONT><BR><FONT </FONT> > <BR><FONT SIZE=2>> size=2>Is there</FONT> > <BR><FONT SIZE=2>> > a way </FONT> > <BR><FONT SIZE=2>> > to stop anyone remotely shutting down the > JBOSS server when </FONT> > <BR><FONT SIZE=2>> they use the </FONT> > <BR><FONT SIZE=2>> > shutdown.bat command file?</FONT> > </P></FONT> > <BR><FONT SIZE=2>> > <P><FONT > size=2>Regards,</FONT> <BR><FONT > size=2>Peter</FONT></FONT> > <BR><FONT SIZE=2>> > </P><CODE><FONT </FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > size=3><BR><BR>***********************************************</FONT> > <BR><FONT SIZE=2>> *********************<BR><BR>This</FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2>> > email may contain information which is > privileged or </FONT> > <BR><FONT SIZE=2>> confidential. If you</FONT> > <BR><FONT SIZE=2>> > are </FONT> > <BR><FONT SIZE=2>> > not the intended recipient of this email, > please notify the sender</FONT> > <BR><FONT SIZE=2>> > immediately </FONT> > <BR><FONT SIZE=2>> > and delete it without reading, copying, > storing, forwarding </FONT> > <BR><FONT SIZE=2>> or disclosing</FONT> > <BR><FONT SIZE=2>> > its </FONT> > <BR><FONT SIZE=2>> > contents to any other person<BR>Thank > you<BR><BR>Check us out at </FONT> > <BR><FONT SIZE=2>> > </FONT> > <BR><FONT SIZE=2><A HREF="http://www.syntegra.com" > TARGET="_blank">http://www.syntegra.com</A><BR><BR>********************************************************************<BR></FONT></CODE></BODY></HTML></FONT></P> > > <P><FONT SIZE=2>> </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