Glassfish Interview Questions and Answers
Ques 1. What is Glassfish application server?
GlassFish Server Open Source Edition provides a server for the development and deployment of
Java Platform, Enterprise Edition (Java EE platform) applications and web technologies based
on Java technology. GlassFish Server 3.1 provides the following:
■ A lightweight and extensible core based on OSGi Alliance standards
■ A web container
■ An easy-to-use Administration Console for configuration and management
■ Update Tool connectivity for updates and add-on components
■ Support for high availability clustering and load balancing
Is it helpful?
Add Comment
View Comments
Ques 2. Default Administration values for Glassfish Server.
- Domain name : domain1
- Master password : changeit
- asadmin(1M) command-line utility : as-install/bin
- Configuration files : domain-dir/config
- Log files : domain-dir/logs
- Administration server port : 4848
- HTTP port : 8080
- HTTPS port : 8181
- Pure JMX clients port : 8686
- Message Queue port : 7676
- IIOP port : 3700
- IIOP/SSL port : 3820
- IIOP/SSL port with mutual authentication : 3920
Is it helpful?
Add Comment
View Comments
Ques 3. How to Start and Stop the Default Domain?
When you install GlassFish Server, a default domain nameddomain1 is created. The following
procedures describe how to start and stopdomain1when it is the only domain.
To Start the Default Domain
GlassFish Server software must be installed before you start the domain.
Run the asadmin start-domain command without an operand:
as-install/bin/asadmin start-domain
The command starts the default domain, domain1.
for starting any domain (e.g domain name: employee): as-install/bin/asadmin start-domain employee
To Stop the Default Domain
Run the asadmin stop-domain command without an operand:
as-install/bin/asadmin stop-domain
The command stops the default domain, domain1.
for stopping any domain (e.g domain name: employee): as-install/bin/asadmin stop-domain employee
Is it helpful?
Add Comment
View Comments
Ques 4. How to start and stop database server through Glassfish?
A database server is not started by default when you start the GlassFish Server domain. If your applications require a database back end, you must start and stop the database server manually.
The following procedures describe how to start and stop the Java DB server that is bundled with GlassFish Server. For information about starting and stopping other database servers, see the documentation for your specific product.
To Start the Java DB Server
At least one GlassFish Server domain must be started before you start the database server.
Run the asadmin start-database command.
The general form for the command is as follows:
as-install/bin/asadmin start-database --dbhome directory-path
For example, to start the Java DB server from its default location:
as-install/bin/asadmin start-database --dbhome as-install-parent/javadb
To Stop the Java DB Server
Run the asadmin stop-database command:
as-install/bin/asadmin stop-database
Is it helpful?
Add Comment
View Comments
Ques 5. How to start Administration console in Glassfish?
The GlassFish Server Administration Console provides a browser interface for configuring,
administering, and monitoring GlassFish Server.
To Start the Administration Console
At least one GlassFish Server domain must be started.
Type the URL in your browser.
The default URL for the Administration Console on the local host is as follows:
http://localhost:4848
If prompted, log in to the Administration Console.
You will be prompted to log in if you chose to require an administration password at the time GlassFish Server was installed.
Is it helpful?
Add Comment
View Comments
Most helpful rated by users:
- What is Glassfish application server?
- Default Administration values for Glassfish Server.
- How to Start and Stop the Default Domain?
- How to start and stop database server through Glassfish?
- How to Deploy and Undeploy Applications in Glassfish Command Line?