By vbkraemer on Jul 19, 2010
Byron recently integrated a neat new feature into the GlassFish Server 3.1 code: support for restarting a server in debug mode with a single command. He did this by adding a new boolean option onto asadmin's subcommand "restart-domain". The new option is "--debug" and will usually appear as "--debug=true" or "--debug=false".
Folks should note that restart-domain also works with remote instances, so this allows you to restart a remote instance in debug mode without having to telnet/ssh/whatever onto that machine.
I have leveraged this new feature in the GlassFish Server integration module for NetBeans. Here are some of the changes that have been made:
- Remote GlassFish Server 3.1 domains do not automatically appear to be in debug mode in the Runtime explorer. This has been an open bug for some time.
- If the user triggers the 'Debug' action on a project that is deployed onto a GlassFish Server 3.1 domain, the server is restarted in debug mode... if the IDE thinks that the server is not in debug mode.
- When a user triggers the Restart action on a GlassFish Server 3.1 domain, the domain will restart in 'normal' mode.