This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes why JMX can not stop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "why JMX can not stop" Watch "why JMX can not stop" New topic
Author

why JMX can not stop

haifeng zhou
Greenhorn

Joined: Oct 30, 2009
Posts: 13
why JMX can not stop
jmxServer.stop(); doesn't work

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Is there an exception?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
haifeng zhou
Greenhorn

Joined: Oct 30, 2009
Posts: 13
Paul Sturrock wrote:Is there an exception?


no, the log print success
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
160

If there are no exceptions, are you checking for something else which shows that the server did not stop? Have you tried debugging the code?


[My Blog] [JavaRanch Journal]
haifeng zhou
Greenhorn

Joined: Oct 30, 2009
Posts: 13
Jaikiran Pai wrote:If there are no exceptions, are you checking for something else which shows that the server did not stop? Have you tried debugging the code?


I make a mistake, it can stop, but the next time boot up the web application, there are some exception, it seem I should unregisterMBean and UnicastRemoteObject.unexportObject(registry, false);
is there any example about close JMX?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: why JMX can not stop
 
Similar Threads
How to develop a standalone swing application with ejb 3.1
JDBC connection in different machine
Runtime.getRuntime block question
Front controller that doesn't stink
Getting value of static variable with Reflection ?