Steve
Steve

Reputation: 8829

Run GlassFish 3.1.1 in the same way NetBeans does

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

Answers (2)

Steve
Steve

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

Dan675
Dan675

Reputation: 1767

or

asadmin stop-domain

will also stop it.

Upvotes: 0

Related Questions