Top 40 Most Asked Weblogic Interview Questions and Answers
1) What is the WebLogic server, and what are its main usages?
WebLogic Server is a Java-based Java EE application server currently developed and managed by Oracle Corporation. That's why it is also called Oracle WebLogic Server. The Oracle organization acquired WebLogic Server when it purchased BEA Systems in 2008. The Oracle WebLogic Server is a unified and extensible platform for developing, deploying, and running enterprise applications, such as Java, on-premises, and in the cloud.
It can host Java-based applications. It provides a robust, mature, and scalable implementation of Java Enterprise Edition (EE) and Jakarta EE. Web applications and Enterprise applications that are developed can be deployed in a WebLogic server to serve the business logic. In Layman's words, we can say that, with a WebLogic server, we can easily deploy, distribute, and run Java-based applications.
2) What do you understand by deployment descriptors?
In Oracle WebLogic Server, the deployment descriptors are associated with almost all the modules and applications. We can see the deployment descriptors in the form of XML documents. They are mainly used to describe the contents that are part of the directory or the jar file. J2EE specifications usually define the standard and the deployment descriptors that are portable for J2EE applications and modules.
3) What are the different versions of the WebLogic Server?
The following is the list of different versions of the WebLogic Server:
4) Is Oracle WebLogic Server supported on Kubernetes?
The Oracle WebLogic Server is fully supported on Kubernetes. It enables users to migrate and efficiently build modern container apps with comprehensive Java services. It provides WebLogic Kubernetes ToolKit, which is a complete set of open-source tools that simplify running on Kubernetes, on-premises, or in the cloud.
5) What are the core components of the Oracle WebLogic Server?
Following is the list of the core components of the Oracle WebLogic Server:
6) What is a domain in an Oracle WebLogic server?
In the Oracle WebLogic server, domains are the logical set of resources that individually constitutes a single unit. In other words, domains are the logically related groups of Oracle WebLogic Server resources that are managed as a single unit.
A domain provides one point of administration. It contains a special Oracle WebLogic server instance known as Administration Server, which can be used to configure and manage all resources in that specific domain. A domain can logically separate development, test, production applications, and organizational divisions.
7) What do you understand by a Server?
Oracle WebLogic Server is an application server. It is a unified and extensible platform for developing and deploying multitier distributed enterprise applications and running enterprise applications, such as Java, for on-premises and in the cloud.
WebLogic Server provides a robust, mature, and scalable implementation of Java Enterprise Edition (EE) and Jakarta EE.
The WebLogic Server has the following properties:
There are mainly two types of Oracle WebLogic Servers:
8) What do you understand by the Admin Server in Oracle WebLogic Servers?
The Administration Server or Admin Server is a certain category of Oracle WebLogic Servers. It provides a central point for managing a WebLogic Server domain. Except for this type of server, all other WebLogic Server instances in a domain are called Managed Servers. As the Admin Server is the central domain configuration interface, it is used to create, delete and configure the resources of a domain like managed server, machine, cluster, data source, work managers, etc.
If a domain has only a single WebLogic Server instance, it works as both the Administration Server and the Managed Server.
9) What is the Managed Server in Oracle WebLogic Servers?
The Managed Server is an instance of the WebLogic server that runs on JVM and has its configuration. We deploy the java components such as Web Applications, EJB Applications, JMS Applications, and Web services in the managed server. The managed server contacts the administration server for configuration information. It runs the business application in a production environment. It does not depend on any other managed servers in a domain unless they are not in a cluster. We can have many managed servers in a domain. Generally, a single domain can have zero to N Managed Server.
Server instances other than the Administration Server are called Managed Servers in a domain. The Managed Servers in a domain can start-up independently of the Administration Server if the Administration Server is unavailable. We can configure two or more Managed Servers as a WebLogic Server cluster to increase the application scalability and availability.
10) What do you understand by web.xml in the WebLogic server?
The web.xml is an XML document mainly used for application purposes. It is very useful and helps list out the J2EE components and configuration of the application in J2EE modules format.
11) Is WebLogic Server an Application Server or a Web Server?
The WebLogic Server is an application server. It is a platform used to develop and deploy multitier distributed enterprise applications.
Some important features of WebLogic Server:
12) What are the different thread states in a WebLogic server?
Following is a list of several thread states used in a WebLogic server:
13) What methods can be used to provide user credentials for starting the server?
When the domain is created, the wizard for setting configuration asks for the details, like user name, password, etc., from the user who is logging in for the first time as the administrator. If you have created the domain in development mode, the configuration wizard saves the encrypted password and the username inside the identity file. When the system is booting, this file is available for reference so that in the absence of this file, the system can prompt the user so that it can enter the credentials. A new boot named "identity file" can be created if you want to change the user credentials or if you have the requirement of creating a domain in production mode.
14) What would happen if the Administration Server fails?
If the Administration Server fails for a domain, it does not affect the operation of Managed Servers in the domain. If an Administration Server for a domain becomes unavailable while the server instances it manages (clustered or otherwise) are up and running, those Managed Servers continue to run. If the domain contains clustered server instances, the load balancing and failover capabilities supported by the domain configuration remain available, even if the Administration Server fails. In this case, if the Administration Server stops running while the Managed Servers in the domain continue to run, then each Managed Server periodically attempts to reconnect to the Administration Server.
If the system faces any hardware or software failure on its host machine, and if the Administration Server fails, then the other server instances on the same machine may be similarly affected. But, if the Administration Server fails, it does not interrupt the operation of Managed Servers in the domain. You can start a Managed Server even if the Administration Server is not running. In this case, the Managed Server uses a local copy of its configuration files for its starting configuration and then periodically attempts to connect with the Administration Server. In this case, if the connection doesn't occur, it synchronizes its configuration state with the Administration Server.
14) What are the different supported installation modes available for WebLogic Server?
Following are the three supported installation modes available for WebLogic Server:
16) What is the use of HTTP?
HTTP is a protocol that enables the communication between the WebLogic server and processes.
17) What are the key differences between the stage and the non-stage deployments in Weblogic Server?
The stage deployment is a process where the Admin receives a copy which is later distributed amongst the available instances. On the other hand, the Non-Stage deployment provides a restriction that each instance needs to contact the source for the necessary deployments.
18) How many ways can we provide credentials to start the WebLogic server?
There are three ways to provide credentials to start the WebLogic server:
19) What is the default port of the Weblogic admin server?
The default port of the WebLogic Admin server is 7001. It is 7002 for SSL.
20) How can we start and stop a WebLogic server?
There are several ways to start and stop a WebLogic server. Some of them are as follows:
21) What is the auto-deployment feature in the WebLogic server? How can you turn off this feature?
The auto-deployment mode or auto-deployment feature of the WebLogic server works for the development mode. Here it checks every 3 seconds to see if any new applications are available or any new changes are available for the existing applications and deploy them.
Following are some available options that can be used to disable this automatic deployment feature in the WebLogic server:
22) How can you set a CLASSPATH in a WebLogic server?
We can use the script files from WebLogic to set a CLASSPATH in a WebLogic server. These files should be used based on the OS type (Windows or Linux):
23) What is the process to access the admin console of the WebLogic server?
We can access the admin console of the WebLogic server by entering the administration machine name and port in the browser's navigation bar. After that, we have to ask for the login credentials.
24) How can you see the version of the WebLogic server that you are using?
Follow the steps given to see the version of the WebLogic server that you are using:
25) What are the different ways to configure a Managed server in the WebLogic server?
There are three ways to configure a Managed server in the WebLogic server:
26) What are the main capabilities of a WebLogic server?
Following is the list of the main capabilities of a WebLogic server:
27) What is the main functionality of IIOP?
IIOP is a protocol that enables communication between the WebLogic server and object request broker.
28) What do you understand by BSU in the WebLogic server?
BSU stands for BEA Smart Update utility or WebLogic Smart Update. It is a utility available to update or apply patches on WebLogic Servers. You can see it under the following folder (WL_HOME/utils/bsu).
29) What is the difference between Weblogic Development and Production Mode?
Following is a list of some differences between Weblogic Development Mode and Production Mode:
30) What is the main functionality of T3 associated with the WebLogic server?
The main functionality of T3 associated with the WebLogic server is providing a framework or overall structure for the messages that can support the enhancements. T3 performs serialization of java object and also predation of RMI. It is considered a superset associated with java objects. The enhancements include product tunneling, working in the context associated with WebLogic server clusters, and object replacement.
31) How can you set a classpath in the WebLogic server?
We can set a classpath in the WebLogic server by making use of the following script:
32) What steps are involved in creating Pooling within the Tomcat server?
There are mainly two steps involved in the creation of Pooling within the Tomcat server:
33) How do stubs function inside the WebLogic server cluster at the time of failure?
Stubs are used to remove the failed instance from the list whenever a failure occurs. It generally uses DNS to find the running server and obtain the list of the instances currently available with the application. A list of the instances available with the server inside the cluster gets refreshment periodically and allows for acquiring advantages associated with new servers. As the server gets added to the cluster, the advantages are achieved.
34) What is the key difference between server crash and server hang?
The main difference between server crash and server hang is that in a server crash, there is no existence of the Java process. On the other hand, in the server hang, the Java process stops responding.
35) How can you solve the server hang problem?
To solve the server hang problem, we have to check the Java WebLogic.Admin PING whether we get a normal and positive response. We can find out the root cause for hanging from this file by rectifying the errors that are identified in this file.
36) What are the main reasons for server hang?
The main reasons for server hang are memory leak, deadlock, and a long return time.
37) What are the main causes of a server crash?
The main causes of server crashes are the native IO, JVM, supported configuration, JDBC driver issues, and SSL native libraries.
38) What is the boot.properties file in the WebLogic server? Why is it important?
The boot.properties file is available under the domain/servers/<YOUR_SERVER_NAME>/security folder. This file can be used by both the Administration server and/or the Managed server to get the login credentials.
39) How can you solve the problem of a server crash?
We can solve the problem of server crashes by focusing on the following things:
A crash associated with JVM generates the hs_err_pid file. We have to refer to this file to find the root cause of such a crash. If the native IO is the origin of the thread, we need to disable it. If the origin of the problem is from the driver, we need to contact the driver team.
40) What are the reasons behind the OUT OF MEMORY condition?
Following are the various reasons behind the OUT OF MEMORY condition: