Reputation: 8829
I would like to run GlassFish 3.1.1 from the command line such that it will stop when I close the command line window. NetBeans does something like this, because when it is closed, any running GlassFish instance is also closed.
I'm using Windows.
Upvotes: 1
Views: 225
Reputation: 8829
Found the answer: use the -v option. Example:
asadmin start-domain -v
This causes all log output to be shown in stdout and terminates on CTRL-C or the window closing.
(For others looking for admin documentation, here's the GlassFish Product Documentation, esp. the Administration Guide.)
Upvotes: 2