Prepare Interview

Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Glassfish Interview Questions and Answers

Freshers / Beginner level questions & 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 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
 

Ques 5. How to Deploy and Undeploy Applications by Using the Administration Console?

The graphical Administration Console of GlassFish Server enables you to perform the following deployment-related tasks:

To Deploy the Sample Application by Using the Administration Console
The sample application must be available before you start this task. At least one GlassFish Server domain must
be started before you deploy the sample application.
1) Launch the Administration Console by typing the following URL in your browser:
http://localhost:4848
2) Click the Applications node in the tree on the left.
The Applications page is displayed.
3) Click the Deploy button.
The Deploy Applications or Modules page is displayed.
4) Select Packaged File to be Uploaded to the Server, and click Browse.
5) Navigate to the location in which you saved thehello.warsample, select the file, and click
Open.
You are returned to the Deploy Applications or Modules page.
6) Specify a description in the Description field, for example: hello
7) Accept the other default settings, and click OK.
You are returned to the Applications page.
8) Select the check box next to thehelloapplication and click the Launch link to run the
application.
The default URL for the application is as follows:
http://localhost:8080/hello/

To View Deployed Applications in the Administration Console
1) Launch the Administration Console by typing the following URL in your browser:
http://localhost:4848
2) Click the Applications node in the tree on the left.
Expand the node to list deployed applications. Deployed applications are also listed in the table on the Applications page.

To Undeploy the Sample Application by Using the Administration Console
1) Launch the Administration Console by typing the following URL in your browser:
http://localhost:4848
2) Click the Applications node in the tree on the left.
The Applications page is displayed.
3) Select the check box next to thehellosample application.
4) Remove or disable the application.
■ To remove the application, click the Undeploy button.
■ To disable the application, click the Disable button.

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

Related interview subjects

JUnit interview questions and answers - Total 24 questions
Spring Framework interview questions and answers - Total 53 questions
Java Design Patterns interview questions and answers - Total 15 questions
Core Java interview questions and answers - Total 306 questions
Tomcat interview questions and answers - Total 16 questions
Apache Wicket interview questions and answers - Total 26 questions
Java Applet interview questions and answers - Total 29 questions
JAXB interview questions and answers - Total 18 questions
JMS interview questions and answers - Total 64 questions
Log4j interview questions and answers - Total 35 questions
Struts interview questions and answers - Total 84 questions
RMI interview questions and answers - Total 31 questions
Apache Camel interview questions and answers - Total 20 questions
JDBC interview questions and answers - Total 27 questions
Java 11 interview questions and answers - Total 24 questions
JPA interview questions and answers - Total 41 questions
EJB interview questions and answers - Total 80 questions
GWT interview questions and answers - Total 27 questions
Kotlin interview questions and answers - Total 30 questions
Glassfish interview questions and answers - Total 8 questions
Google Gson interview questions and answers - Total 8 questions
JSP interview questions and answers - Total 49 questions
J2EE interview questions and answers - Total 25 questions
Apache Tapestry interview questions and answers - Total 9 questions
Java Swing interview questions and answers - Total 27 questions
Java Mail interview questions and answers - Total 27 questions
Hibernate interview questions and answers - Total 52 questions
JSF interview questions and answers - Total 24 questions
Java 8 interview questions and answers - Total 30 questions
Java 15 interview questions and answers - Total 16 questions
JBoss interview questions and answers - Total 14 questions
Web Services interview questions and answers - Total 10 questions
RichFaces interview questions and answers - Total 26 questions
Servlets interview questions and answers - Total 34 questions
Java Beans interview questions and answers - Total 57 questions
Spring Boot interview questions and answers - Total 50 questions
©2023 WithoutBook