[go: up one dir, main page]

0% found this document useful (0 votes)
84 views6 pages

Domain Creation in Glass Fish

Glassfish is an open source application server software from Oracle. It allows creating custom domains beyond the default Domain1. The document provides steps to create a new domain called "mydomain3" using the asadmin command line tool: 1. Run "asadmin create-domain" from the bin directory, specifying admin port 4747 and domain name "mydomain3". 2. The new domain is created under the domains directory. 3. Start the new domain using "asadmin start-domain mydomain3". The domain is now running and accessible on port 4747 for administration.

Uploaded by

rithuik1598
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views6 pages

Domain Creation in Glass Fish

Glassfish is an open source application server software from Oracle. It allows creating custom domains beyond the default Domain1. The document provides steps to create a new domain called "mydomain3" using the asadmin command line tool: 1. Run "asadmin create-domain" from the bin directory, specifying admin port 4747 and domain name "mydomain3". 2. The new domain is created under the domains directory. 3. Start the new domain using "asadmin start-domain mydomain3". The domain is now running and accessible on port 4747 for administration.

Uploaded by

rithuik1598
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Glassfish Type: Application Server Software Vendor: Sun Microsystems (Oracle Corp.

) Open Source (Free) Default Port Number: 4848 (Admin Access) , 8080 (HTTP Access) 2.X (Compatible with JDK 1.5 +) Allows creating user-defined domains Default domain is: Domain1 Built-in Registry software name: Glassfish Registry
NOTE: Net Beans IDE software installation gives Glassfish 2.x software which can be used with

(or) without IDE. Procedure to create User domain in Glassfish 2.x: Installation folder of Glassfish C:\Sun | AppServer | bin | config | docs | domains | icons | imq | javadb | jbi | lib | samples and etc . . .
1. Open Command Prompt and do as following

C:\Sun\AppServer\bin>asadmin create-domain --adminport 4747 mydomain3 Please enter the admin user name>mydomain3 Please enter the admin password>mydomain3 Please enter the admin password again>mydomain3 Please enter the master password [Enter to accept the default]:> Please enter the master password again [Enter to accept the default]:> Using port 4747 for Admin. Default port 8080 for HTTP Instance is in use. Using 2831
1

(press enter) (Press enter)

Using default port 7676 for JMS. Using default port 3700 for IIOP. Using default port 8181 for HTTP_SSL. Using default port 3820 for IIOP_SSL. Using default port 3920 for IIOP_MUTUALAUTH. Using default port 8686 for JMX_ADMIN. Domain being created with profile:developer, as specified by variable AS_ADMIN_PROFILE in configuration file. Security Store uses: JKS Domain mydomain3 created. 2. Observe Domain has been created

C:\Sun\AppServer\bin>asadmin start-domain mydomain3 Starting Domain mydomain3, please wait. Default Log location is C:\Sun\AppServer\domains\mydomain3\logs\server.log.
2

Redirecting output to C:/Sun/AppServer/domains/mydomain3/logs/server.log Domain mydomain3 is ready to receive client requests. Additional services are being starte d in background. Domain [mydomain3] is running [Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fc s)] with its configuration and logs at: [C:\Sun\AppServer\domains]. Admin Console is available at [http://localhost:4747]. Use the same port [4747] for "asadmin" commands. User web applications are available at these URLs: [http://localhost:2831 https://localhost:8181 ]. Following web-contexts are available: [/web1 /__wstx-services ]. Standard JMX Clients (like JConsole) can connect to JMXServiceURL: [service:jmx:rmi:///jndi/rmi://admin:8686/jmxrmi] for domain management purposes. Domain listens on at least following ports for connections: [2831 8181 4747 3700 3820 3920 8686 ]. Domain does not support application server clusters and other standalone instances. 3. Domain has been started Please observe

4. Domain has been started now open browser and type http:/localhost:4747 the following thing will be opened then type username:mydomain3 and password:mydomain3

5. Now following window will be opened


4

6. The following window is user console

To stop server just type C:>sun/appserver/bin>asadmin stop domain-server mydomain3.

You might also like