Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address
Withoutbook LIVE Mock Interviews
The Best LIVE Mock Interview - You should go through before Interview

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
 

Intermediate / 1 to 5 years experienced level questions & answers

Ques 6. How to Deploy and Undeploy Applications in Glassfish Command Line?

The process of configuring and enabling applications to run within the GlassFish Server
framework is referred to asdeployment.

To Obtain the Sample Application
Download a copy of thehello.warsample application fromhttp://glassfish.java.net/
downloads/quickstart/hello.war.
Save thehello.warfile in the directory of your choice.
This directory is referred to as sample-dir

To Deploy the Sample Application From the Command Line
The sample application must be available before you start this task. To download the sample, see “To Obtain the Sample Application” on page 8. At least one GlassFish Server domain must be started before you deploy the sample application.
Run the asadmin deploy command.
The general form for the command is as follows:
as-install/bin/asadmin deploy war-name
To deploy the hello.war sample, the command is as follows:
as-install/bin/asadmin deploy sample-dir/hello.war
Access thehelloapplication by typing the following URL in your browser:
http://localhost:8080/hello
The application's start page is displayed, and you are prompted to type your name.
Hi, my name is Angel. What’s yours?
Type your name and click Submit.
The application displays a customized response, giving you a personal Hello.

To List Deployed Applications From the Command Line
Run the asadmin list-applications command:
as-install/bin/asadmin list-applications

To Undeploy the Sample Application From the Command Line
Run the asadmin undeploy command.
The general form for the command is as follows:
as-install/bin/asadmin undeploy war-name
Forwar-name, use the literal hello, not the full hello.warname.
For the hello.war example, the command is as follows:
as-install/bin/asadmin undeploy hello

Is it helpful? Add Comment View Comments
 

Experienced / Expert level questions & answers

Ques 7. 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 8. How to deploy and undeploy application automatically in Glassfish?

To Deploy the Sample Application Automatically
You can deploy applications automatically by placing them in the
as-install/domains/domain-name/autodeploydirectory, wheredomain-nameis the name of
the domain for which you want to configure automatic deployment. For this example, use the
default domain, domain1:
as-install/domains/domain1/autodeploy
The sample application must be available before you start this task.
Copy the applicationWAR file to theas-install/domains/domain-name/autodeploydirectory.
■ On UNIX, Linux, and Mac OS X systems, type this command:
cp sample-dir/hello.war as-install/domains/domain-name/autodeploy
■ OnWindows systems, type this command:
copy sample-dirhello.war as-installdomainsdomain-nameautodeploy
GlassFish Server automatically discovers and deploys the application. The default URL for the application is as follows:
http://localhost:8080/hello/

To Undeploy the Sample Application Automatically
Change to the domain'sautodeploydirectory.
cd as-install/domains/domain-name/autodeploy
Delete the sample application'sWAR file to undeploy and remove the application.
■ On UNIX, Linux, and Mac OS X systems, type this command:
rm hello.war
■ OnWindows systems, type this command:
del hello.war

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

Related interview subjects

Ubuntu interview questions and answers - Total 30 questions
Linux interview questions and answers - Total 43 questions
Unix interview questions and answers - Total 105 questions
Weblogic interview questions and answers - Total 30 questions
Tomcat interview questions and answers - Total 16 questions
Glassfish interview questions and answers - Total 8 questions

All interview subjects

LINQ interview questions and answers - Total 20 questions
C# interview questions and answers - Total 41 questions
ASP .NET interview questions and answers - Total 31 questions
Microsoft .NET interview questions and answers - Total 60 questions
ASP interview questions and answers - Total 82 questions
Google Cloud AI interview questions and answers - Total 30 questions
IBM Watson interview questions and answers - Total 30 questions
ChatGPT interview questions and answers - Total 20 questions
NLP interview questions and answers - Total 30 questions
OpenCV interview questions and answers - Total 36 questions
Amazon SageMaker interview questions and answers - Total 30 questions
Hugging Face interview questions and answers - Total 30 questions
TensorFlow interview questions and answers - Total 30 questions
Artificial Intelligence (AI) interview questions and answers - Total 47 questions
Machine Learning interview questions and answers - Total 30 questions
Python Coding interview questions and answers - Total 20 questions
Scala interview questions and answers - Total 48 questions
Swift interview questions and answers - Total 49 questions
Golang interview questions and answers - Total 30 questions
Embedded C interview questions and answers - Total 30 questions
C++ interview questions and answers - Total 142 questions
VBA interview questions and answers - Total 30 questions
COBOL interview questions and answers - Total 50 questions
R Language interview questions and answers - Total 30 questions
CCNA interview questions and answers - Total 40 questions
Oracle APEX interview questions and answers - Total 23 questions
AWS interview questions and answers - Total 87 questions
Microsoft Azure interview questions and answers - Total 35 questions
Azure Data Factory interview questions and answers - Total 30 questions
OpenStack interview questions and answers - Total 30 questions
ServiceNow interview questions and answers - Total 30 questions
Snowflake interview questions and answers - Total 30 questions
LGPD interview questions and answers - Total 20 questions
PDPA interview questions and answers - Total 20 questions
OSHA interview questions and answers - Total 20 questions
HIPPA interview questions and answers - Total 20 questions
PHIPA interview questions and answers - Total 20 questions
FERPA interview questions and answers - Total 20 questions
DPDP interview questions and answers - Total 30 questions
PIPEDA interview questions and answers - Total 20 questions
GDPR interview questions and answers - Total 30 questions
CCPA interview questions and answers - Total 20 questions
HITRUST interview questions and answers - Total 20 questions
PoowerPoint interview questions and answers - Total 50 questions
Data Structures interview questions and answers - Total 49 questions
Computer Networking interview questions and answers - Total 65 questions
Microsoft Excel interview questions and answers - Total 37 questions
Computer Basics interview questions and answers - Total 62 questions
Computer Science interview questions and answers - Total 50 questions
Operating System interview questions and answers - Total 22 questions
MS Word interview questions and answers - Total 50 questions
Tips and Tricks interview questions and answers - Total 30 questions
Pandas interview questions and answers - Total 30 questions
Deep Learning interview questions and answers - Total 29 questions
Flask interview questions and answers - Total 40 questions
PySpark interview questions and answers - Total 30 questions
PyTorch interview questions and answers - Total 25 questions
Data Science interview questions and answers - Total 23 questions
SciPy interview questions and answers - Total 30 questions
Generative AI interview questions and answers - Total 30 questions
NumPy interview questions and answers - Total 30 questions
Python interview questions and answers - Total 106 questions
Python Pandas interview questions and answers - Total 48 questions
Django interview questions and answers - Total 50 questions
Python Matplotlib interview questions and answers - Total 30 questions
Redis Cache interview questions and answers - Total 20 questions
MySQL interview questions and answers - Total 108 questions
Data Modeling interview questions and answers - Total 30 questions
MariaDB interview questions and answers - Total 40 questions
DBMS interview questions and answers - Total 73 questions
Apache Hive interview questions and answers - Total 30 questions
PostgreSQL interview questions and answers - Total 30 questions
SSIS interview questions and answers - Total 30 questions
SQL Query interview questions and answers - Total 70 questions
SQLite interview questions and answers - Total 53 questions
Teradata interview questions and answers - Total 20 questions
Cassandra interview questions and answers - Total 25 questions
Neo4j interview questions and answers - Total 44 questions
MSSQL interview questions and answers - Total 50 questions
OrientDB interview questions and answers - Total 46 questions
Data Warehouse interview questions and answers - Total 20 questions
SQL interview questions and answers - Total 152 questions
IBM DB2 interview questions and answers - Total 40 questions
Elasticsearch interview questions and answers - Total 61 questions
Data Mining interview questions and answers - Total 30 questions
Oracle interview questions and answers - Total 34 questions
MongoDB interview questions and answers - Total 27 questions
AWS DynamoDB interview questions and answers - Total 46 questions
Entity Framework interview questions and answers - Total 46 questions
Data Engineer interview questions and answers - Total 30 questions
AutoCAD interview questions and answers - Total 30 questions
Robotics interview questions and answers - Total 28 questions
Power System interview questions and answers - Total 28 questions
Electrical Engineering interview questions and answers - Total 30 questions
Verilog interview questions and answers - Total 30 questions
VLSI interview questions and answers - Total 30 questions
Software Engineering interview questions and answers - Total 27 questions
MATLAB interview questions and answers - Total 25 questions
Digital Electronics interview questions and answers - Total 38 questions
Civil Engineering interview questions and answers - Total 30 questions
Electrical Machines interview questions and answers - Total 29 questions
Oracle CXUnity interview questions and answers - Total 29 questions
Web Services interview questions and answers - Total 10 questions
Salesforce Lightning interview questions and answers - Total 30 questions
IBM Integration Bus interview questions and answers - Total 30 questions
Power BI interview questions and answers - Total 24 questions
OIC interview questions and answers - Total 30 questions
Dell Boomi interview questions and answers - Total 30 questions
Web API interview questions and answers - Total 31 questions
IBM DataStage interview questions and answers - Total 20 questions
Talend interview questions and answers - Total 34 questions
Salesforce interview questions and answers - Total 57 questions
TIBCO interview questions and answers - Total 30 questions
Informatica interview questions and answers - Total 48 questions
JBoss interview questions and answers - Total 14 questions
Log4j interview questions and answers - Total 35 questions
Java Mail interview questions and answers - Total 27 questions
Java Applet interview questions and answers - Total 29 questions
Java 21 interview questions and answers - Total 21 questions
Google Gson interview questions and answers - Total 8 questions
Apache Camel interview questions and answers - Total 20 questions
Struts interview questions and answers - Total 84 questions
RMI interview questions and answers - Total 31 questions
Java Support interview questions and answers - Total 30 questions
JAXB interview questions and answers - Total 18 questions
Apache Tapestry interview questions and answers - Total 9 questions
JSP interview questions and answers - Total 49 questions
Java Concurrency interview questions and answers - Total 30 questions
J2EE interview questions and answers - Total 25 questions
JUnit interview questions and answers - Total 24 questions
Java OOPs interview questions and answers - Total 30 questions
Java 11 interview questions and answers - Total 24 questions
JDBC interview questions and answers - Total 27 questions
Java Garbage Collection interview questions and answers - Total 30 questions
Spring Framework interview questions and answers - Total 53 questions
Java Swing interview questions and answers - Total 27 questions
Java Design Patterns interview questions and answers - Total 15 questions
JPA interview questions and answers - Total 41 questions
Java 8 interview questions and answers - Total 30 questions
Hibernate interview questions and answers - Total 52 questions
JMS interview questions and answers - Total 64 questions
JSF interview questions and answers - Total 24 questions
Java 17 interview questions and answers - Total 20 questions
Spring Boot interview questions and answers - Total 50 questions
Servlets interview questions and answers - Total 34 questions
Kotlin interview questions and answers - Total 30 questions
EJB interview questions and answers - Total 80 questions
Java Beans interview questions and answers - Total 57 questions
Java Exception Handling interview questions and answers - Total 30 questions
Java 15 interview questions and answers - Total 16 questions
Core Java interview questions and answers - Total 306 questions
Java Multithreading interview questions and answers - Total 30 questions
Apache Wicket interview questions and answers - Total 26 questions
Pega interview questions and answers - Total 30 questions
ITIL interview questions and answers - Total 25 questions
Finance interview questions and answers - Total 30 questions
JIRA interview questions and answers - Total 30 questions
SAP MM interview questions and answers - Total 30 questions
SAP ABAP interview questions and answers - Total 24 questions
SCCM interview questions and answers - Total 30 questions
Tally interview questions and answers - Total 30 questions
Ionic interview questions and answers - Total 32 questions
Android interview questions and answers - Total 14 questions
Mobile Computing interview questions and answers - Total 20 questions
Xamarin interview questions and answers - Total 31 questions
iOS interview questions and answers - Total 52 questions
Laravel interview questions and answers - Total 30 questions
XML interview questions and answers - Total 25 questions
GraphQL interview questions and answers - Total 32 questions
Bitcoin interview questions and answers - Total 30 questions
Active Directory interview questions and answers - Total 30 questions
Apache Kafka interview questions and answers - Total 38 questions
Tableau interview questions and answers - Total 20 questions
Adobe AEM interview questions and answers - Total 50 questions
Kubernetes interview questions and answers - Total 30 questions
Microservices interview questions and answers - Total 30 questions
OOPs interview questions and answers - Total 30 questions
Fashion Designer interview questions and answers - Total 20 questions
Desktop Support interview questions and answers - Total 30 questions
IAS interview questions and answers - Total 56 questions
PHP OOPs interview questions and answers - Total 30 questions
Linked List interview questions and answers - Total 15 questions
Dynamic Programming interview questions and answers - Total 30 questions
SharePoint interview questions and answers - Total 28 questions
CICS interview questions and answers - Total 30 questions
Yoga Teachers Training interview questions and answers - Total 30 questions
Nursing interview questions and answers - Total 40 questions
Language in C interview questions and answers - Total 80 questions
Behavioral interview questions and answers - Total 29 questions
School Teachers interview questions and answers - Total 25 questions
Statistics interview questions and answers - Total 30 questions
Digital Marketing interview questions and answers - Total 40 questions
Apache Spark interview questions and answers - Total 24 questions
Full-Stack Developer interview questions and answers - Total 60 questions
VISA interview questions and answers - Total 30 questions
IIS interview questions and answers - Total 30 questions
System Design interview questions and answers - Total 30 questions
SEO interview questions and answers - Total 51 questions
Google Analytics interview questions and answers - Total 30 questions
Cloud Computing interview questions and answers - Total 42 questions
BPO interview questions and answers - Total 48 questions
ANT interview questions and answers - Total 10 questions
HR Questions interview questions and answers - Total 49 questions
REST API interview questions and answers - Total 52 questions
Content Writer interview questions and answers - Total 30 questions
SAS interview questions and answers - Total 24 questions
Control System interview questions and answers - Total 28 questions
Agile Methodology interview questions and answers - Total 30 questions
Mainframe interview questions and answers - Total 20 questions
Hadoop interview questions and answers - Total 40 questions
Banking interview questions and answers - Total 20 questions
Checkpoint interview questions and answers - Total 20 questions
Blockchain interview questions and answers - Total 29 questions
Technical Support interview questions and answers - Total 30 questions
Nature interview questions and answers - Total 20 questions
Chemistry interview questions and answers - Total 50 questions
Docker interview questions and answers - Total 30 questions
Sales interview questions and answers - Total 30 questions
Cryptography interview questions and answers - Total 40 questions
RPA interview questions and answers - Total 26 questions
Interview Tips interview questions and answers - Total 30 questions
College Teachers interview questions and answers - Total 30 questions
SDLC interview questions and answers - Total 75 questions
Blue Prism interview questions and answers - Total 20 questions
Memcached interview questions and answers - Total 28 questions
GIT interview questions and answers - Total 30 questions
Business Analyst interview questions and answers - Total 40 questions
Splunk interview questions and answers - Total 30 questions
DevOps interview questions and answers - Total 45 questions
Accounting interview questions and answers - Total 30 questions
SSB interview questions and answers - Total 30 questions
Algorithm interview questions and answers - Total 50 questions
OSPF interview questions and answers - Total 30 questions
Sqoop interview questions and answers - Total 30 questions
JSON interview questions and answers - Total 16 questions
Accounts Payable interview questions and answers - Total 30 questions
Computer Graphics interview questions and answers - Total 25 questions
IoT interview questions and answers - Total 30 questions
Insurance interview questions and answers - Total 30 questions
Scrum Master interview questions and answers - Total 30 questions
Express.js interview questions and answers - Total 30 questions
Ansible interview questions and answers - Total 30 questions
ES6 interview questions and answers - Total 30 questions
Electron.js interview questions and answers - Total 24 questions
RxJS interview questions and answers - Total 29 questions
NodeJS interview questions and answers - Total 30 questions
jQuery interview questions and answers - Total 22 questions
Vue.js interview questions and answers - Total 30 questions
ExtJS interview questions and answers - Total 50 questions
Svelte.js interview questions and answers - Total 30 questions
Shell Scripting interview questions and answers - Total 50 questions
Next.js interview questions and answers - Total 30 questions
Knockout JS interview questions and answers - Total 25 questions
TypeScript interview questions and answers - Total 38 questions
PowerShell interview questions and answers - Total 27 questions
Terraform interview questions and answers - Total 30 questions
JCL interview questions and answers - Total 20 questions
JavaScript interview questions and answers - Total 59 questions
Ajax interview questions and answers - Total 58 questions
Ethical Hacking interview questions and answers - Total 40 questions
Cyber Security interview questions and answers - Total 50 questions
PII interview questions and answers - Total 30 questions
Data Protection Act interview questions and answers - Total 20 questions
BGP interview questions and answers - Total 30 questions
Ubuntu interview questions and answers - Total 30 questions
Linux interview questions and answers - Total 43 questions
Unix interview questions and answers - Total 105 questions
Weblogic interview questions and answers - Total 30 questions
Tomcat interview questions and answers - Total 16 questions
Glassfish interview questions and answers - Total 8 questions
Postman interview questions and answers - Total 30 questions
TestNG interview questions and answers - Total 38 questions
SDET interview questions and answers - Total 30 questions
Selenium interview questions and answers - Total 40 questions
Kali Linux interview questions and answers - Total 29 questions
Mobile Testing interview questions and answers - Total 30 questions
UiPath interview questions and answers - Total 38 questions
Quality Assurance interview questions and answers - Total 56 questions
API Testing interview questions and answers - Total 30 questions
Appium interview questions and answers - Total 30 questions
ETL Testing interview questions and answers - Total 20 questions
QTP interview questions and answers - Total 44 questions
Cucumber interview questions and answers - Total 30 questions
PHP interview questions and answers - Total 27 questions
Oracle JET(OJET) interview questions and answers - Total 54 questions
Frontend Developer interview questions and answers - Total 30 questions
Zend Framework interview questions and answers - Total 24 questions
RichFaces interview questions and answers - Total 26 questions
HTML interview questions and answers - Total 27 questions
Flutter interview questions and answers - Total 25 questions
CakePHP interview questions and answers - Total 30 questions
React interview questions and answers - Total 40 questions
React Native interview questions and answers - Total 26 questions
Web Developer interview questions and answers - Total 50 questions
Angular 8 interview questions and answers - Total 32 questions
Angular JS interview questions and answers - Total 21 questions
Dojo interview questions and answers - Total 23 questions
Symfony interview questions and answers - Total 30 questions
GWT interview questions and answers - Total 27 questions
CSS interview questions and answers - Total 74 questions
Ruby On Rails interview questions and answers - Total 74 questions
Yii interview questions and answers - Total 30 questions
Angular interview questions and answers - Total 50 questions
©2024 WithoutBook