Stop GlassFish
You stop the GlassFish server with the stop-domain
subcommand.
You will need to do this once the database is set up.
gshute@ukko:~$ cd ~/local2/glassfish4
gshute@ukko:~/local2/glassfish4$ bin/asadmin stop-domain domain1
Command stop-domain executed successfully.