Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Interview Questions
For any training/consulting requirements or wish to submit interview questions then drop us a mail at
contactus@k21technologies.com
or
call us at US: +1 408 627 8021 | INDIA: +91 959 905 6621 | +91 96 468 30901 from 9AM-5PM GMT.
1 contactus@k21technologies.com
Q: What is BEA Weblogic?
A: BEA WebLogic is a J2EE application server and also an HTTP web server by BEA Systems of
San Jose, California, for Unix, Linux, Microsoft Windows, and other platforms. WebLogic supports
Oracle, DB2, Microsoft SQL Server, and other JDBC-compliant databases. WebLogic Server
supports WS-Security and is compliant with J2EE 1.3. BEA WebLogic Server is part of the BEA
WebLogic Platform. The other parts of WebLogic Platform are:
2 contactus@k21technologies.com
Q: What are the capabilities of WebLogic server?
A: Here are various capabilities associated with WebLogic server and they are
Changes in dynamic configuration.
Production application redeployment
Rolling upgrades.
A WebLogic-specific deployment descriptor file named weblogic.xml, which defines how named
resources in the web.xml file are mapped to WebLogic Server resources. Examples of weblogic.xml
attributes include HTTP session parameters, HTTP cookie parameters, JSP parameters, resource
references, security role assignments, and container attributes.
Q: Is there any possibility for starting managed server during the absence of administrator server?
A: 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.
3 contactus@k21technologies.com
Q: How can default JVM be changed to other?
A: 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.
4 contactus@k21technologies.com
Q: What are the various types of WebLogic installations?
A: The WebLogic installation usually occurs in three different modes which are:
1. Graphical mode
2. Console mode
3. Silent mode.
Development Mode:
Production Mode:
6 contactus@k21technologies.com
1. 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 mode: Set true for starting in prod mode. set
PRODUCTION_MODE=false
2. Save your changes and exit the text editor.
Non SSL admin console accessed as : http://hostname or ip address (where admin server
running):(port on which admin server is ssl enabled admin console accessed as : Example -
http://localhost:7001/console
The SSL listen port for the Administration Servers default network configuration is 7002 by default
Weblogic Admin servers and Managed Servers could communicate with Admin port which is
separate network channel. So that other communications can be run on different networks.
Q. What is config.xml?
A: 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 ) since wls 9.x
onwards concept of modules are introduced for sub resources like data source, jms etc otherwise
prior to 9.x ( 8.x or older ) every configuration was stored under this single config.xml file
7 contactus@k21technologies.com
Q. How do I provide User credentials for starting weblogic server?
A: 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
Q: How to enable EJB available to servlet? assume servlet on apache, ejb on Weblogic cluster?
A: Any external access to EJB is not allowed. if the apache webserver already configure as front-
end. then we need to look up by JNDI tree.
8 contactus@k21technologies.com
2. Load balancing: The ability to distribute requests across all members of the cluster, according
tothe workload on each server.
3. 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.
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
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.
9 contactus@k21technologies.com
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.
11 contactus@k21technologies.com
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.
12 contactus@k21technologies.com
Q: Can we change the name of the log files?
A: In Weblogic Cluster side we have 3 basic types and each supports Affinity based also
1. Round Robin
2. Random
3. Weigh Based
Q: How to get thread dump and what is the purpose of stuck thread?
A: 1. Get the java process id, you can get it by jps or customized script for it.
2. Kill -3 pid for unix env.
3. Ctrl+break for windows env.
When there is a Stuck Thread need to monitor the log for few minutes some time 2 or 3 stuck
threads logging but after sometime it will be unstucked. If you take multiple thread dump for every
5 sec gap and analyze with sumarai or Java Thread Analyzer tool you will get to know why it is
stuck what is causing the instances to misbehave that time.
Q: What happens when a failure occurs and the stub cannot connect to a WebLogic Server instance?
A: When the failure occurs, the stub removes the failed server instance from its list. If there are no
servers left in its list, the stubb uses DNS again to find a running server and obtain a current list of
running instances. Also, the stub periodically refreshes its list of available server instances in the
cluster; this allows the stub to take advantage of new servers as they are added to the cluster.
Http protocol are used primarily for HTTP communication between the browser and the web server.
Standard follow the W3C (World Wide Web Consortium).
14 contactus@k21technologies.com
For any training/consulting requireemnts or wish to submit interview questions then drop us a mail at
contactus@k21technologies.com
or
call us at US: +1 408 627 8021 | INDIA: +91 959 905 6621 | +91 96 468 30901 from 9AM-5PM GMT.
15 contactus@k21technologies.com