If you're looking for WebLogic Interview Questions for Experienced or Freshers, you are at right place. There are lot of opportunities from many reputed companies in the world. According to research WebLogic has a market share of about 0.4%. So, You still have opportunity to move ahead in your career in WebLogic Analytics. Mindmajix offers Advanced WebLogic Interview Questions 2018 that helps you in cracking your interview & acquire dream career as WebLogic Administrator.
Q. 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.
Q. What is web.xml?
Web.xml is an XML document that is mainly for application purpose and it helps in listing out the J2EE components and configuration that of your application in J2EE modules format.
Q. 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.
Q. 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.
Q. 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.
Q. Explain WebLogic server.
This is a kind of server that supports various services as well as infrastructure that are related with JEE applications. WebLogic server is capable of deploying components as well as applications through WSDL, UDDI and SOAP. This server gets configured as a web server by making use of HTTP listener for supporting the HTTP. Web servers like that of Apache, Netscape and Microsoft are utilized. The configuration of a web server allows WebLogic is capable of providing services to dynamic and static requests that are usually generated by servlets, HTML and JSP.
Q. What are the capabilities of WebLogic server?
There are various capabilities associated with WebLogic server and they are
1.Changes in dynamic configuration.
2.Production application redeployment
Q. Explain about the function associated with T3 in WebLogic server?
T3 provides enhancements support for the messages of WebLogic server. The enhancements comprise of the object replacement, the working of the seblogic server – clusters and also HTTP. T3 also performs serialization of java object and also predation of RMI. T3 can be considered as a superset associated with java object. T3 is mandated between WebLogic servers, programmatic clients and cluster associated with WebLogic server. The protocols HTTP and IIOP are made used for enabling communication between WebLogic server and processes.
Q. Explain the use of HTTP?
HTTP is the protocol that is made used for the purpose of enabling communication between the WebLogic server and processes.
Q. Explain the functionality of IIOP?
IIOP is a kind of protocol helpful in enabling the communication between WebLogic server and object request broker.
Q. 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.
Q. How can default JVM be changed to other?
For changing the JVM can be done by following the steps below.
1.You should first set the JAVA_HOME in the start script of the server.
2.Change the config.xml of domain for using the JRockit javac.exe
3.Remove any kind of switches specific to Sun JVM from start scripts of server.
Q. How clients handle the DNS – requests to the failed servers?
Bandwidth gets wasted in the case of continues DNS requests to that of unavailable machine at the time of server failure. This problem usually occurs during the time of startup associated with the application that of client side. The servers that are unavailable are removed by searching DNS entries provided by WebLogic server. This removal prevents the clients from accessing failed servers. A third party load – balancers are made used for avoiding the unnecessary DNS requests. Some of the third party load – balancers are BigIP, resonate, local director and Alteon. The main function of these third party loads – balancers is to mask multiple addresses of DNS in to a single one.
Q. Explain the functionality of T3 associated with WebLogic server?
T3 is capable of providing framework or overall structure for the messages that are capable of supporting the enhancements. The enhancements comprises of product tunneling, working in the context associated with clusters of WebLogic server and also in object replacement.
Q. How can classpath be set?
Classpath can be set by making use of the following script (in case of windows).
Q. Explain the functioning of Stub?
Stub is usually expected by the people who connect to the WebLogic server cluster. The stub has the list that consists of the available instances of server that perform host implementations associated with object. The stub also has the functionality of balancing the load by distributing load amongst the host servers.
Q. What are the steps for the creation of Pooling within Tomcat server?
1.The first step involved in this process of creating pooling is to download 3 jar files which are the commons-dbcp-1.2 jar, commons-pool-1.3.jar and commons-collections-3.1 jar.
2.The next step is to make an entry inside server.xml of tomcat factory.
Q. How can you differentiate server crash and server hang?
With a server crash, there is no existence for the Java process and if it is a server hang, then the Java process stops responding.
Q. What are the causes for server crash?
The major reasons for the occurrence of server crash are the native IO, JVM, supported configuration, JDBC driver issues and SSL native libraries.
Q. How can you solve the issue of server crash?
A crash associated with JVM is capable of generating hs_err_pid file. You need to refer this file for finding out the root cause for such a crash. In the case of native IO being the origin of thread, you need to disable it. If the origin of the problem is from the driver, need to contact the driver team.
Q. How can Server Hang be solved?
Java WebLogic.Admin PING needs to be checked for finding whether you get a normal and positive response. You can find out the root cause for hanging from this file. You just need to rectify the errors that are identified from this file.
Q. Explain the reasons for server hang?
The major reasons that lead to the server hang are memory leak, deadlock, and long time for returning.
Q. Define memory leak ?
Memory leak is the condition that arises when the objects get retained in the heap even after they have no use.
Q. What causes the condition OUT OF MEMORY?
There are various reasons that can lead to this condition and they are
1.Insufficient size of the heap compared to the extra load.
2.Placing of the objects takes longer period of time like that of HTTP sessions.
3.Occurrence of memory leak inside the application code.
4.The prevention of occurrence of full GC because of JVM bug.
Q. How can the OUT OF MEMORY be solved?
There is a possibility for collecting the memory data after enabling GC – verbose. If the condition has aroused because of HTTP session, then it will be automatically solved when the session gets time out. You should also verify the code associated with the handling of jdbc connectivity. You should also optimize the size of the heap by considering the load.
Q. When can high usage of CPU occur?
This is the condition that usually occurs when a single thread or process makes use of a larger portion of the CPU in an unexpected manner.
Q. How can the issue associated with high CPU usage be solved?
In windows platform the issue of CPU high usage can easily be solved by making use of pslist and also with the process explorer to observe the function performed by the thread or the process.
Q. Explain the term clustering?
Clustering is the process of grouping the servers together for accomplishing high percentage of scalability and availability.
Q. 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.
Q. 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.
Q. What are the various types of WebLogic installations?
The WebLogic installation usually occurs in three different modes which are:
Q. What is Graphic mode?
It is a kind of installation type that makes use of interactive GUI.
Q. What is console mode?
This is a kind of installation type that follows interactive text based method.
Q. What is silent mode?
This is a method of installation that is non-interactive and is usually based on the .xml properties – file.
Q. What is Unicast?
Unicast is the method used in the clustering technique where there are cluster master and each server should ping to this cluster master for informing that the server is alive.
Q. What is Multicast?
It is a kind of clustering system where there is no cluster master and each and every server needs to ping each other for informing their existence. Multicasting has many messages to be sent in the form of ping as each server needs to inform all others about its existence. This condition creates much complexity associated with the method compared to unicast.
Q. 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.
Q. 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.
Q. How can port number be checked?
Port number can be checked by using netstat-na|grep connected.
Q. How to find out the listening ports?
Listening ports can be found out by using netstat-na|grep listen.
Q. How to check the version of Java?
Version of java can be checked by using [roo@h1vm/]#java-version.
Q. How is it informed when the server is added to the cluster?
The availability of the new server in the cluster is broadcasted by the WebLogic server – cluster.
Q. How many WebLogic servers can be held inside a multi-processor machine?
There is no limitation for the number of servers.
Q. What is application tuning?
This process involves ejb pool – size cache and jsp recompilation.
Q. What is OS tuning?
This is the process of setting up TCP/IP parameters.
Q. 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.
Q. What is JVM tuning?
This process involves monitoring of the garbage collection and the tuning of gc strategy.
Q. What is a Machine?
Machine is the logical representation that of the physical machine.
Q. What is Node Manager?
Node manager is a service from Java that is capable of running separate process other than that of WebLogic server.
Q. What is a domain?
Domain can be defined as the group which comprises of various WebLogic – server resources.
Q. How would you start an administration server that you have created using command?
For UNIX: DOMAIN_NAME/bin/startWebLogic.sh
Q. What actually is done by the startWebLogic script?
startWebLogic does the following :
Invokes setDomainEnv.cmd on Windows / setDomainEnv.sh on UNIX which sets the environment variables starts a JVM that is configured to run a WebLogic Server instance by invoking javaweblogic.Server command
Q. What is an indication of successful administration server startup process?
Standard out (the command window) should have the following
Q. How would you restart an administration server when managed servers are not running?
Simply start the administration server as you normally do. After that, you may start the managed servers.
Q. How would you restart an administration server when managed servers are running?
No need to restart the managed server in this case. Simply start the administration server.
Q. In which configuration file, can you define the domain listening port?
Each WebLogic domain has its own configuration file name called config.xml where domain listening port is defined.
Q. Why editing config.xml while the server is executing is not allowed?
WebLogic Server rewrites config.xml periodically and hence changes done while server is executing would be lost.
Q. Which is the preferred way of editing config.xml?
Using Administration Console
Q. What are the situations where editing config.xml is a valid option?
Cloning a config.xml and editing its values is allowed when you are deploying several WebLogic instances.
You may copy the XML element that defines the object from one server’s config.xml to the other if you have defined an object in one WebLogic server and want to copy it to another server.
You can also edit config.xml directly to set an attribute that cannot be set using Administration Console.
Q. What are the rules for editing config.xml?
a) Take a backup of xmlfile before editing it.
b) Editing xmlfor an active domain should not be done since those changes are likely to be overwritten by the system.
c) Name attributes of child elements should match its parent.
d) Domain may fail to boot on server restart if there are any validation issues with the editedxml.
Q. What are the recommended assistive technology configurations that BEA WebLogic supports?
BEA supports following configuration options for accessibility enhancements:
a) Using JAWS Link Verbosity
b) Using Windows Eyes
Q. Consider that you want to handle two-phase or global transactions between two WebLogic server domains. Can messaging bridge handle this?
Yes, this is supported.
Q. How can messaging bridge debugging be enabled?
There are two ways to do it:
a) Edit WebLogic start script and add the following just before the Serverline:
b) Edit the xml filefor the server that the messaging bridge is running on and add the following to the ServerDebugentry:
Q. How can you monitor the messaging bridge without using the administration console?
Messaging bridge can be monitored using a run-time MBean called MessagingBridgeRuntimeMBeanthat is available for each bridge instance. It provides run-time MBeans snapshot information about domain resources.
Q. How can a messaging bridge automatically downgrade the QOS (quality of service) if ‘the Exactly-once service’ is not available on either the source or target bridge destination?
To do this, select the QOS Degradation Allowed check box on the Messaging Bridge > Configuration > General administration console page.
Q. How can the messaging bridge send to and receive from distributed destinations?
For a source as distributed destination, the bridge is pinned to one of the members as it connects to the destination and stays connected to that member until it reconnects.
The bridge will not receive messages from the other members of the distributed destination.
Get Updates on Tech posts, Interview & Certification questions and training schedules