WebLogic Interview Questions

Ratings:
(4.6)
Views: 21738
Banner-Img
Share this blog:

Looking for a job managing Java applications at the enterprise level? Be ready to impress your interviewer by mastering WebLogic Server, a widely used Java application server. With its ability to handle large applications, WebLogic has become a go-to choice for many enterprises. To help you prepare for your interview, we've put together an expert guide featuring common WebLogic Interview Questions and tips for answering them. Whether you're a seasoned WebLogic pro or new to the field, this guide can help you stand out from the competition and secure your dream job.

In this article, we will cover the following:

Most Frequently Asked WebLogic Interview Questions 

WebLogic Interview Questions 

Q1) What do you mean by WebLogic?

Ans: Weblogic server is basically a software application working on the middle tier, integrating the back-end database, related applications and browser-based clients. A Weblogic server is an instance of a Java process and executes in a JVM. It supports all major JDBC-compliant databases like Microsoft SQL Server, Oracle etc. There can be two types of Weblogic servers:

  • Administration server
  • Managed server

Q2) What are the major components of WebLogic?

Ans: A WebLogic server primarily comprises the following:

  • Admin server
  • Managed server
  • Domains
  • Node manager
  • Weblogic server cluster

Q3) What are deployment descriptors?

Ans: Deployment descriptors are XML documents that are used in describing the contents of a jar file or a directory. These can be found in most of the modules and applications. The standard and deployment descriptors are defined by the J2EE applications and modules.

Q4) What do you mean by admin in WebLogic?

Ans: Admin server in WebLogic serves as the central point of control that allows you to gain access to the configuration, monitoring and management of all resources. It is one of the instances of the WebLogic server that allows and maintains the data configuration of a given domain. It is a singleton service and every domain has at least 1 admin server.

Q5) What is web.xml?

Ans: Web.xml is an XML document that finds its applicability in the listing out of J2EE components and is primarily used for application purposes. It also helps in the configuration of applications in the J2EE module format.

Q6) What is a domain in webLogic?

Ans: A logically related group of WebLogic server resources like Oracle and collectively managed as a single unit is called a domain. These can be used to logically separate organizational divisions, tests, production and development applications. Domains serve as a single administration point.

Want to acquire industry skills and gain complete knowledge of WebLogic? Enrol in Instructor-Led live WebLogic Training to get Job Ready!

Q7) What is stage deployment?

Ans: Stage deployment refers to the process wherein the admin receives a physical copy that has been distributed among other instances.

Q8) What is a managed server?

Ans: A managed server is another instance of your WebLogic server that runs on the JVM and has a self-managed specific configuration. A managed server is used to deploy the components of Java-like EJB applications, Web applications, JMS applications and other related web services. A domain may or may not have a managed server and the count can go up to N number of managed servers. Until and unless the servers are in a cluster, a managed server always operates independently.

Q9) What is the relation between the administration server and managed servers?

Ans: The basic point of relation between the admin server and the managed server is that the admin server acts as a master manager for all the other servers including a managed server. To initiate the managed server start-up configuration, the admin server must be running. This is only a one-time process. Every managed server has a local copy of the configuration stored in it. Whenever there is an unavailability of the admin server, the managed server uses its local copy to boot. However, the managed server needs an admin server to synchronize its configurations over subsequent reboots.

Q10) What is BSU?

Ans:  BSU stands for BEA Smart update which is a java based application used to apply patches on Weblogic servers. This utility allows you to work both online and offline.

Q11) What is a machine in WebLogic?

Ans: Any physical computer that is present or hosts instances in the WebLogic environment is called a machine. It is logically represented in a WebLogic server.

Q12) Can a managed server be started if the administration server is not available? How?

Ans: In case of the absence of an admin server, the managed server can start up by fetching the configuration files and other related files. However, the managed server is bound to work on the retrieved information and no alterations are possible. Alterations can only be done as and when the admin server is actually available. The managed server can carry out its operation in the independent mode until the availability of the admin server.

Q13) What is meant by SSL in WebLogic?

Ans: SSL stands for Secure Sockets Layer which is a security protocol enabling secure transfer of data and information in an encrypted format. Standard certificate authorities provide SSL certification to ensure the authentication of the secure transfer of the data at the transport level. 

Q14) Are there multiple ways to start and stop WebLogic servers? Name any 3

Ans: Yes, there are multiple ways to start and stop a WebLogic server.

Following are the ways to start and stop the admin server:

  • By using the script
  • By using the “Java WebLogic. server” command
  • From the startup option on Windows

Following are the ways to start and stop a managed server:

  • By sung scripts
  • By using the admin console
  • By using the node manager

Q15) How are T3 and HTTP protocols different?

Ans: The T3 protocol in a WebLogic server is used to establish a connection between the internal and external servers. It is also used in the implementation of RMI in a WebLogic server.

HTTP is a protocol that is used for establishing communication between the web server and the browser. It is authenticated by the World Wide Web Consortium, W3C.

Q16) How can you troubleshoot a server hang in WebLogic?

Ans: This can be dealt with by using Java WebLogic.Admin PING and see if there is a normal response. Several thread dumps need to be checked with a kill-3 pid on Unix and CTRL Break on Windows. This step needs to be analyzed deeply to narrow down the root cause.

Q17) What is a node manager?

Ans: A node manager is a controlling program that is used to manage and control the WebLogic server instances. It allows you to control all server instances that may be running on single or multiple physical machines. To be able to communicate with a node manager, every machine must be configured with your node manager.

Checkout our Blog on Weblogic Tutorial

WebLogic Server Interview Questions

Q18) What are the different application layers in a WebLogic server?

Ans: There are three different application layers in a WebLogic server:

  • Presentation layer: it contains server containers and any other web application containers.
  • Business layer: it contains containers with business logic along with Entity Beans or Session Beans.
  • Service layer: it contains the services which are helpful in initiating the business logic functionality.

Q19) What is meant by multicasting in a WebLogic cluster?

Ans: Multicasting refers to establishing a peer to peer communication to initiate the process of messaging communications between different IP sockets.

Q20) What are the networking protocols deployed in Weblogic servers?

Ans: There are 7 different networking protocols deployed in a WebLogic server. These are:

  • SOAP- Simple object access protocol is a messaging protocol used in web service standard
  • HTTP- it is used in web standards for communication
  • HTTPS- it is used in the web browser along with SSL
  • IIOP- it is a secure WebLogic protocol
  • RMI- Remote Method Invocation allows the establishment of a connection in a disturbed environment.
  • T3- enables connection establishment between Java applications over several network connections
  • T3S- A secure WebLogic protocol

Q21) How can you install a WebLogic server? Are there multiple ways to do so?

Ans: A WebLogic Server can be installed in three different modes:

1. Silent mode: uses configuration files, there is no manual intervention during the installation

2. Graphical mode: GUI interaction with the user during installation

3. Console mode: Command-based interactive mode of installation

Q22) What is meant by JVM tuning in a WebLogic server?

Ans: JVM tuning refers to the enhancement and improvisation in the performance of a JVM execution engine in the WebLogic server. This is done by changing, adding or removing a few parameters in the WebLogic server like garbage collection or heap size, etc.

Q23) What are the capabilities of a WebLogic server?

Ans: The various capabilities of a WebLogic server are:

  • It allows rolling upgrades
  • It allows the redeployment of the production application
  • It allows changes in the dynamic configuration

Q24) Can you change the default JVM in a WebLogic server?

Ans: Yes, we can change the default JVM in Weblogic servers. It can be done as follows:

  • Set JAVA_HOME in the start script of the server
  • Use JRockit javac.exe to change the config.xml of the domain
  • Remove all Sun JVM switches from the start scripts server

Q25) How can you set a classpath in a WebLogic server?

Ans: A classpath in Windows can be set using the following script WL_HOMEserverbinsetWLSEnv.cmd

Q26) How can you create a pooling within the Tomcat server?

Ans: A pooling in the Tomcat server can be created by:

  • Download 3 jar files: commons-dbcp-1.2 jar, commons-pool-1.3.jar and commons-collections-3.1 jar
  • Make an entry inside the server.sml of the tomcat factory.

Q27) Is a server crash different from the server hang? How?

Ans: Yes, it is different. When a server crash happens, the Java process does not exist whereas in server hang the Java process stops responding.

Q28) What causes the server to hang?

Ans: A server hang generally happens due to a memory leak, deadlock, longer than anticipated return time in a database query

Q29) What is meant by memory leak?

Ans: A memory leak is a condition in which the objects are retained in the heap even after they are no longer required.

Q30) How can you enable and disable MSI mode in WebLogic?

Ans: MSI mode can be enabled or disabled by ensuring that the managed server’s root directory has the configuration subdirectory available. The following command can be used: Environment > Servers > Server_Name > Tuning > Advanced > Managed Server Independence Enabled checkbox

Checkout Our Blog on WebLogic Server Installation

Q31) What is the default port of a WebLogic admin server?

Ans: The default port for configuring the WebLogic server is port 7001.

Q32) How can you configure a DB connection pool?

Ans: DB or JDBC connection pools can be configured when the WebLogic server is started. The application you are running ideally borrows a connection from the existing database pool and returns it back to the pool by closing it. 

Q33) What is the main difference between WebLogic and WebSphere?

Ans: The basic difference between WebLogic and WebSphere lies in the standards used in their functionality. While a WebLogic server focuses primarily on the ease of use of J2EE and emerging standards governing them, the WebSphere is more focused on connectivity, web services, and integration.

Websphere is better in terms of transaction management and integration and strictly follows  J2EE architecture.

Q34) How to deal with a failure in WebLogic?

Ans: The WebLogic server failure can be dealt with in the following ways:

  • Overload protection
  • Failover for clustered services
  • Automatic restart for failed server instances
  • Server-level migration
  • Service level migration
  • Managed server independence (Mis) mode

 

WebLogic Administrator Interview Questions

Q35) How can you switch from a development mode to a production mode in WebLogic 10.3?

Ans: The switch from development mode to production mode can be done as follows:

Go to the $root_domain/bin folder and edit the setDomainEnv.cmd.

Set PRODUCTION_MODE = false; save and exit to restart in production mode.

Q36) What are the features present in the WebSphere?

Ans: A WebSphere supports:

  • The functionality of the Servlet/JSP container that deploys HTTP
  • Various HTTP servers like Netscape iPlant, IBM HTTP etc.
  • HTML pages, servlets, XML, Java Server pages etc.
  • Workload management and EJB component model

Q37) How to call Oracle stored procedures that take no parameters?

Ans: The following syntax can be used to call such procedures:

CallableStatement cstmt = conn.prepare all(“Begin to proclaim;

END;”);

cstmt.execute();

Q38) How can you know about the WebLogic version?

Ans: Go to WebLogic console >> left navigation tree >> Environment >> servers >> click of any server >> click monitoring tab >> note the WebLogic version field.

Q39) What is meant by OS tuning?

Ans: OS tuning refers to the process of tuning your operating system with a WebLogic server by setting up TCP/IP parameters. 

Q40) What are unicast and multicast?

Ans: Multicast is essentially a broadcast UDP option that allows sending of packets or announcements over a specific multicast address to a given group listening to the announcement. The announcements are similar to getting broadcast updates on most social media platforms like Twitter.

Unicast is more personalized and refers to one to one option for sending a packet or message to a particular member and not the whole group. It can be compared with personal messaging apps.

Q41) How to check a port number?

Ans: The port number of a WebLogic server can be checked by using netstat-na|grep connected

Q42) Is there a limit on the number of WebLogic servers held inside a multi-processor machine?

Ans: No, there can be any number of WebLogic servers held inside a multi-processor machine.

Q43) What is the function of the boot.properties file in the WebLogic server?

Ans: The boot.properties file stores your credentials like user id and password

Q44) What are vertical and horizontal clustering?

Ans: There are 2 ways in which clustering can be done WebLogic server:

1. Vertical clustering: under this type, multiple Java applications are run on a single physical machine.

2. Horizontal clustering: under this type, multiple Java application servers are run over two or more than two physical machines. It accounts for higher reliability.

Q45) How does a server know if another server is unavailable?

Ans: Every WebLogic server instance in a WebLogic domain sends regular heartbeats via multicast broadcasting to all other servers in the cluster which is indicative of its presence. If three consecutive heartbeats go missing, the other server instances drop the particular server instance whose heartbeat goes missing.

Q46) How are notifications made upon the addition of a new server to the cluster?

Ans: A broadcast message regarding the addition of a new server instance is sent to all existing users in case there is an addition. A server instance list is also maintained and regularly updated by the cluster-aware stubs.

Q47) What is the function of the auto-deployment feature?

Ans: The auto-deployment feature is a monitoring utility that checks the application folder in every 3 seconds to look for any potential changes in the existing applications and/or the addition of any new applications. If there is any such change, it auto-deploys these changes in the existing application dynamically. The same can be done by monitoring socket errors.

Q48) What is the mode of communication between managed servers?

Ans: Managed servers communicate through the T3 protocol.

Q49) What is ANT?

Ans: ANT is a task that helps you carry out a smooth configuration of other tasks and applications in a developed environment.

Q50) What is Msi mode in WebLogic?

Ans: MSI stands for Managed Server Independence. Managed servers have the ability to launch and operate even in the absence of the admin server.

You liked the article?

Like: 3

Vote for difficulty

Current difficulty (Avg): Medium

EasyMediumHardDifficultExpert
IMPROVE ARTICLEReport Issue

About Author

Authorlogo
Name
TekSlate
Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.