As Danny mentions, the root of your problem is with name resolution, since it will 
shutdown properly when the IP address is specified.  Is defaultE2RD the hostname of 
the machine, or simply the name of the JBoss configuration that you are running?  The 
shutdown script takes the hostname or IP address of the machine, as well as the port, 
as the value for the --server argument. 

As to your question about why the shutdown script does not look at the bindings XML, 
it gets back what arguments are being passed to the script (see above).  The script 
cannot accept a JBoss configuration name as the argument, as it would then need to 
have some way of determining if that configuration was running locally or remotely 
and, based on that, need to figure out the hostname/IP address and port on which that 
configuration was running on that machine.  Also, what if that configuration was 
running on multiple machines?  Which one would you expect it to shut down?  The local 
one, a random one, or all of them?

To give you a little more detail on what the shutdown script does, it uses the value 
of the --server argument to make a RMI connection to the JMX server instance running 
on the specified server and port.  Once it connects to the JMX server, it executes the 
stop() method on the server instance, which initiates a clean shutdown of the JBoss 
instance that is using that JMX server as its backbone.  You can accomplish the same 
thing through a web browser by pointing it at the server's JMX console:
http://<hostname>:8080/jmx-console
>From the console, select the alias=jmx/rmi/RMIAdaptor entry under jboss.jmx, then 
>invoke the stop() MBean operation to stop the JMX server (which will stop the other 
>components and shut down the server).

Note:  configuration "names" are a convenience for grouping components for a 
particular configuration.  It does not uniquely identify a running server instance -- 
it simply identifies a top-level directory under which all of the configuration 
information and components for that configuration can be found.

It really doesn't get you anywhere to get angry in a post or reply (hint:  danny).  We 
are all working professionals and should conduct discussions in that same professional 
manner.  People will be more likely to provide assistance if you state your questions, 
concerns, and comments clearly and without resorting to inappropriate comments or 
remarks.

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826921#3826921";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826921>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to