WebLogic Interview Questions and Answers
Last updated on 19th Oct 2020, Blog, Interview Question
Finding another job can be so cumbersome that it can turn into a job itself. Prepare well for the job interviews to get your dream job. Here’s our recommendation on the important things to need to prepare for the job interview to achieve your career goals in an easy way. Weblogic is a server developed and maintained by Oracle Corporation. It is based on the J2EE platform that uses the Java programming language. Once the ear file is generated, we need Weblogic to run it. Candidates should have basic knowledge on how this is done in order to get a job. Certifications exams available to increase competency. Follow our Wisdom Jobs page for Weblogic job interview questions and answers page to get through your job interview successfully in first attempt.
1. What Is Weblogic?
WebLogic is a J2EE application server and also an HTTP web server by Oracle , for Unix, Linux, Microsoft Windows, and other platforms. WebLogic supports Oracle, DB2, Microsoft SQL Server, and other JDBC-compliant databases.
2. What Is The Basic Components Of Weblogic Server?
These are the basic weblogic components
- Admin Server
- Managed Server
- Node Manager
- Weblogic Server Cluster
3. What Is The Domain In Weblogic Server?
- Domain is a logically related group of Oracle WebLogic Server resources that are managed as a single unit
- Domain Provides one point of administration
- Can logically separate:
- Development, test, and production applications
- Organizational divisions
4. What Is The Server?
A server is an instance of weblogic.Server executing in a Java Virtual Machine (JVM).
- Runs on a designated Oracle WebLogic Server machine
- Has a dedicated amount of RAM
- Is multithreaded
Two types of servers:
- Administration Server
- Managed Server
5. What Is The Admin Server?
Admin Server is the central domain configuration interface which is used to create, delete and configure the resources of a domain like managed server, machine, cluster, data source, work managers etc.
6. What Is The Managed Server?
Managed server is a server in a domain that is not the Administration server. It contacts the administration server for configuration information. It runs business application in a production environment. It is independent of all other Managed servers in a domain (unless they are not in a cluster). You can have many managed servers in a domain. Individual managed servers are typically added for capacity and application isolation.
7. How Administration Server And Managed Servers Will Interact?
The Administration Server stores the master copy of the domain configuration, including the configuration for all Managed Servers in the domain. Each Managed Server stores a local copy of the domain configuration file. When a Managed Server starts, it connects to the Administration Server to synchronize the configuration. When the configuration is changed, the Administration Server sends the changed configuration to the Managed Servers.
8. What Is The Msi Mode In Weblogic? How Can You Enable And Disable This Option?
MSI is nothing but Managed Server Independence. By default, Managed Servers can function independently of the Administration Server. A Managed Server instance can start in MSI mode if the Administration Server is unavailable. Configure MSI mode from the Administration Console.To start a Managed Server in MSI mode, perform the following:
Ensure that the Managed Server’s root directory contains the config subdirectory. If the config subdirectory does not exist, copy it from the Administration Server’s root directory.Start the Managed Server at the command line or by using a script.
Environment > Servers > Server_Name > Tuning > Advanced > Managed Server Independence Enabled check box
Subscribe For Free Demo[contact-form-7 404 "Not Found"]
9. Difference Between Weblogic Development And Production Mode?
Here are some difference between Weblogic Development Mode and Production Mode:
- The default JDK for development domain is Sun Hotspot
- You can use the demo certificates for SSL
- Auto deployment is enabled
- Server instances rotate their log files on startup
- Admin Server uses an automatically created boot.properties during startup
- The default maximum capacity for JDBC Datasource is 15
- The default JDK for production domain is JRockit
- If you use the demo certificates for SSL a warning is displayed
- Auto deployment is disabled
- Server instances rotate their log files when it reaches 5MB
- Admin Server prompts for username and password during startup
- The default maximum capacity for JDBC Datasource is 25
10. How To Change From Development Mode To Production Mode In Weblogic 10.3?
To change Weblogic start up mode from DEV to production. One way to change it is, by simply editing setDomainEnv.cmd which resides in $root_domain/bin folder.
- Look for the line that sets the PRODUCTION_MODE script variable: set PRODUCTION_MODE
Add false to the value of the PRODUCTION_MODE variable to ensure the server starts in development
Set true for starting in prod mode.
- Save your changes and exit the text editor.
11. What Are The Supported Installation Modes For Weblogic Server?
- Graphical mode
- console mode
- silent mode
12. What Is The Default Port Of Weblogic Admin Server?
By default weblogic admin server configured on port 7001 and SSL is on 7002.
13. What Is Boot.proerties File In Weblogic Server?
boot.properties is the file used by admin or managed server during startup for username and password. it exist under your domain/servers/server_name/security folder.
14. What Is Config.xml?
config.xml is the central configuration repository for a domain. every resource you have configured from admin console or by command line or by any other tool registered under this file.WLS 9.x onwards, this file contain references to other xml configuration files also those are under your domain/config folder ( further sub folder under it for respective resources ).
15. How Do I Provide User Credentials For Starting Weblogic Server?
When you create a domain, the Configuration Wizard prompts you to provide the username and password for an initial administrative user. If you create the domain in development mode, the wizard saves the username and encrypted password in a boot identity file.
A WebLogic Server instance can refer to a boot identity file during its startup process. If a server instance does not find such a file,it prompts you to enter credentials.
If you create a domain in production mode, or if you want to change user credentials in an existing boot identity file, you can create a new boot identity file.
16. Can We Start A Managed Server If The Administration Server Is Unavailable?
By default, if a Managed Server is unable to connect to the specified Administration Server during startup, it can retrieve its configuration by reading a configuration file and other files directly. You cannot change the server’s configuration until the Administration Server is available. A Managed Server that starts in this way is running in Managed Server Independence mode.
17. What Is A Weblogic Server Cluster?
A WebLogic Server cluster consists of multiple WebLogic Server server instances running simultaneously and working together to provide increased scalability and reliability.
A cluster appears to clients to be a single WebLogic Server instance. The server instances that constitute a cluster can run on the same machine, or be located on different machines.
You can increase a cluster’s capacity by adding additional server instances to the cluster on an existing machine, or you can add machines to the cluster to host the incremental server instances.
Each server instance in a cluster must run the same version of WebLogic Server.
18. What Is The Advantage Of Clustering?
WebLogic clustering offers three important benefits:
- Scalability : The capacity of an application deployed on a WebLogic Server cluster can be increased dynamically to meet demand. You can add server instances to a cluster without interruption of service — the application continues to run without impact to clients and end users.
- Load balancing : The ability to distribute requests across all members of the cluster, according tothe workload on each server.
- High availability : A mix of features that ensure applications and services are available even if aserver or machine fails.Clients can continue to work with little or no disruption ina highly available environment. WebLogic achieves high availability using acombination of features: replication, failover, and migratable services.
19. What Is Multicast And Unicast In Weblogic?
Mulicast : Multicast is easier to explain over Unicast. Multicast is a broadcast UDP option for sending a packet/announcement over to a group that is listening on a specific multicast address and port over which the announcement is sent.There is a defined range for valid Multicast address (220.127.116.11 to 18.104.22.168). Everyone listening on the given address hears the announcement just like following a Twitter post. Some limitations with Multicast is the TTL (time to live) across machines/subnets/routers needs to be adjusted and the routers configured to retransmit the multicast packet across subnets
Unicast : Unicast is more of a point to point UDP option to send the packet to a specific member and not everyone. That way, unicast is more of a private conversation between two individuals while multicast is more of a shout to a group or room. Both are UDP based, so there can be losses unlike TCP that handles retransmissions on message loss. But Unicast can span across routers and does not have to worry about TTL without the everyone hearing the announcement. So, Network Admins in general prefer to go with Unicast over Multicast for these reasons
20. What Is Horizontal And Vertical Clustering?
There are two method of clustering Horizontal and Vertical.
Horizontal clustering : involves running multiple Java application servers that are run on two or more separate physical machines.Horizontal scaling is more reliable than vertical scaling, since there are multiple machines involved in the cluster environment, as compared to only one machine
Vertical clustering: however, consists of multiple Java application servers on a single physical machine.With vertical scaling, the machine’s processing power, CPU usage, and JVM heap memory configurations are the main factors in deciding how many server instances should be run on one machine.
21. How Does A Cluster Relate To A Domain?
A cluster is part of a particular WebLogic Server domain.A domain is an interrelated set of WebLogic Server resources that are managed as a unit. A domain includes one or more WebLogic Server instances, which can be clustered, non-clustered, or a combination of clustered and non-clustered instances. A domain can include multiple clusters. A domain also contains the application components deployed in the domain, and the resources and services required by those application components and the server instances in the domain.
22. What Is Node Manager?
Node Manager is program that is used to control WebLogic Server instances. A single Node Manager instance is used to control all of the server instances running on the same physical machine or different machine. These instances can reside in different clusters, domains, and such. You must configure each machine in your domain to communicate with Node Manager.
23. How Many Way To Start And Stop Weblogic Servers?
There are many ways to start & stop weblogic Admin and managed servers:
You can start and stop Admin Server using :
- “Java weblogic.server “command(The weblogic.Server class is the main class for a WebLogic Server instance)
- From startup option on windows
- WLST with or without node manager
You can start managed servers using :
- admin console
- using WLST
- using node manager
- java weblogic.server command( The weblogic.Server class is the main class for a WebLogic Server instance )
24. How Many Types You Configure Managed Server In Weblogic Server?
- Domain Configuration Wizard
- Administration Console
- Weblogic Scripting Tool
25. How To Know Weblogic Version?
In the WebLogic console, in the left navigation tree, click on “Environment”, then “Servers”. Then click on one of the servers in the list. Then click on the “Monitoring” tab. Look at the “WebLogic Version” field.
26. How Do You Set The Classpath?
WebLogic Server installs the following script that you can use to set the classpath that a server requires:
WL_HOMEserverbinsetWLSEnv.cmd (on Windows)
WL_HOME/server/bin/setWLSEnv.sh (on UNIX)
27. How Does A Server Know When Another Server Is Unavailable?
WebLogic Server uses two mechanisms to determine if a given server instance is unavailable. Each WebLogic Server instance in a cluster uses multicast to broadcast regular “heartbeat” messages that advertise its availability. By monitoring heartbeat messages, server instances in a cluster determine when a server instance has failed. The other server instances will drop a server instance from the cluster, if they do not receive three consecutive heartbeats from that server instance WebLogic Server also monitors socket errors to determine the availability of a server instance. For example, if server instance A has an open socket to server instance B, and the socket unexpectedly closes, server A assumes that server B is offline
28. How Do You Differentiate Between A Server Hang And Server Crash Issue?
When a Server crashes, the JAVA process no longer exists. When the Server is hung, it stops responding.We can use the WebLogic .ADMIN utility to ping the server. In case of a hang situation we can take multiple thread dumps and analyze the cause of hang
Enhance Your Career with Weblogic Training from Real Time Experts
- Instructor-led Sessions
- Real-life Case Studies
29. How Are Notifications Made When A Server Is Added To A Cluster?
The WebLogic Server cluster broadcasts the availability of a new server instance each time a new instance joins the cluster. Cluster-aware stubs also periodically update their list of available server instances.
30. How Do I Turn The Auto-deployment Feature Off?
The auto-deployment feature checks the applications folder every three seconds to determine whether there are any new applications or any changes to existing applications and then dynamically deploys these changes.
The auto-deployment feature is enabled for servers that run in development mode.
To disable auto-deployment feature, use one of the following methods to place servers in production mode:
=>In the Administration Console, click the name of the domain in the left pane, then select the Production Mode checkbox in the right pane.
=>At the command line, include the following argument when starting the domain’s Administration Server:
Production mode is set for all WebLogic Server instances in a given domain.
31. How Managed Servers Communicate With Each Other?
Managed servers communicate each other using t3 protocol internally.
32. What Is Ssl In Weblogic?
Secure Sockets Layer (SSL) provides secure connections by allowing two applications connecting over a network connection to authenticate the other’s identity and by encrypting the data exchanged between the applications. Authentication allows a server and optionally a client to verify the identity of the application on the other end of a network connection. Encryption makes data transmitted over the network intelligible only to the intended recipient
33. How You Deploy Your Applications On Weblogic Server?
These are the types.
- Auto Deployment
- Command line – weblogic.deployer
- ANT / WLST
34. What Are Stating Modes Are Available In Weblogic Server ?
There are three starting modes are available:
- Stage mode : Administration Server copies the deployment files from their original location on the Administration Server machine to the staging directories of each target server
- External Stage : target servers deploy using local copies of the deployment files, here the Administration Server does not automatically copy the deployment files to targeted servers in external_stage mode ; instead, you must copy the files to the staging directory of each target server before deployment.
- No Stage : The Administration Server does not copy deployment unit files; instead, all servers deploy using the same physical copy of the deployment files, which must be directly accessible by the Administration Server and target servers
35. What Is A Thread Dump? How Will You Take In Unix/linux And Windows?
A Java thread dump is a way of finding out what every thread in the JVM is doing at a particular point in time. This is especially useful if your Java application sometimes seems to hang when running under load, as an analysis of the dump will show where the threads are stuck.
- Linux : kill -3 <ps_id>
- Windows (console mode) : crtl+break
- Windows (service) : beasvc -dump -svcname:mydomain_myserver
36. Explain Deployment Descriptors?
Deployment descriptors are associated with almost all the modules as well as applications. The deployment descriptors can be seen in the form of XML documents and they are capable of describing the contents that are part of directory or the jar file. J2EE specifications usually define the standard as well as the deployment descriptors which are portable for J2EE applications and modules.
37. What Is The Name Of Default Jvm That Is Made Used For Weblogic?
The sun hotspot JDK default is made used for development, JRockit is the one used for production of WebLogic 11g as well as 12c. Operating system is another factor that helps in choosing the certified JDK JVM.
38. Explain The Methods For Providing User Credentials For Starting The Server?
At the time of the creation of domain, 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 an administrator. If the domain is created in development mode, the configuration wizard saves the encrypted password as well as the username inside an identity file. This file is available for reference during the time of booting so that in the absence of this file, system can prompt the user for the purpose of entering credentials. A new boot – identity file can be created if you want to change the use credentials or else if you are having the requirement of creating domain in the production mode.
39. Is There Any Possibility For Starting Managed Server During The Absence Of Administrator Server?
The usual process is that in case of any difficulty for the manager server to get connected to any administration server at the time of start up, there is an option for the managed server to retrieve the configuration related to it from the configuration files as well as other files involved. The information thus retrieved cannot be altered and it is possible only when the administration server is really available. When the administration server is unavailable, then the managed server enters into its independence mode for carrying out its operations.
40. What Are The Capabilities Of Weblogic Server?
There are various capabilities associated with WebLogic server and they are
- Changes in dynamic configuration
- Production application redeployment
- Rolling upgrades
41. What Is Core Server Tuning?
This is the process involving the tuning of work manager, chuck size, performance packs, chunk pool size and connection backlog buffering.
42. How Many Weblogic Servers Can Be Held Inside A Multiprocessor Machine?
There is no limitation for the number of servers.
43. What Is A Stage Deployment?
Stage deployment is a kind of process in which the admin gets a physical copy which is distributed to the other instances.
44. What Is Non-stage Deployment?
There is no copy in the administrator but each and every server needs to contact the source directly for getting the item to be deployed.
45. How Can Port Number Be Checked?
Port number can be checked by using netstat-na|grep connected.
46. What Are The Various Types Of Weblogic Installations?
The WebLogic installation usually occurs in three different modes which are:
- Graphical mode
- Console mode
- Silent mode.
47. Explain The Term Clustering?
Clustering is the process of grouping the servers together for accomplishing high percentage of scalability and availability.
48. What Is The Purpose Of Clustering?
The major goal of performing the process of clustering is to make high scalability as well as availability of the servers possible. This process also helps in balancing the load in a proper manner and also accomplishes failover.
49. How Can Cluster Communication Occur?
The communication through cluster is made possible by the multicast IP as well as port by the process of sending periodic messages which are normally called as heartbeat messages.
50. How Do Stubs Function Inside Weblogic Server Cluster At The Time Of Failure?
Stubs perform the process of removing the failed instance from the list whenever there is a failure. The stub usually makes use of DNS for finding the running server and also for obtaining the list of the instances that are currently available with the application. List of the instances available with the server inside cluster gets periodically refreshment and allows in acquiring advantages associated with new servers. The advantages are gained as the server gets added to the cluster.
Are you looking training with Right Jobs?Contact Us
- IBM WebSphere Application Server Tutorial
- JBOSS Tutorial
- Drools Interview Questions and Answers
- What is Dimension Reduction? | Know the techniques
- Difference between Data Lake vs Data Warehouse: A Complete Guide For Beginners with Best Practices
- What is Dimension Reduction? | Know the techniques
- What does the Yield keyword do and How to use Yield in python ? [ OverView ]
- Agile Sprint Planning | Everything You Need to Know