Showing posts with label GlassFish. Show all posts
Showing posts with label GlassFish. Show all posts

Saturday, 22 October 2011

Create GlassFish Domain

How to add GlassFish server to Netbeans and create new domain?


Follow the following Figures



GlsssFish Version 

GlassFish Location



GlassFish Domain, the check box "use default Ports" checked unchecke it

To get the server port



You can call any servelt on this server via the server computer IP and GlassFish Server Port which is 28354
Ex: http://43.17.33.9:28354/ServletProject/ServletName

Best Wishes,

Mohammad Abu Hmead

Sunday, 7 August 2011

How to start GlassFish 3.0 at boot time in windows?

You may want to start your GlassFish 3.0 Server automatically at windows boot (Start). to do that
Follow these instructions:

1) Go to the installation location and open the bin folder, this is the default bath
C:\glassfish3\bin

2) Double click on "asadmin.bat" file
3) Type "start-domain myDomain" and press enter
4) To create the windows service which starts the server automatically at windows boot
type the command "create-service" and the server domain which you want to create a service for it;
 "create-services myDomain" and press Enter.
4) Restart your PC.

See the following snapshot

















Congratulations, your server runs automatically

Note: to view all creating commands type "create" and press enter, and so on for any word
Mohammad Abu Hmead