09 June, 2020
Weblogic server is basically a software application working on the middle tier, integrating the back-end database, related applications and the 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:
a. Administration server
b. Managed server
A WebLogic server primarily comprises of the following:
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.
Admin server in WebLogic serves as the central point of control that allows you to gain access to 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.
Web.xml is an XML document that finds its applicability in the listing out of J2EE components and primarily used for application purposes. It also helps in the configuration of applications in J2EE module format.
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.
Stage deployment refers to the process wherein the admin receives a physical copy that has been distributed among other instances.
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.
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.
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.
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.
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 independence mode until the availability of the admin server.
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 authentication of the secure transfer of the data at the transport level.
Yes, there are multiple ways to start and stop a weblogic server.
Following are the ways to start and stop admin server:
a. By using script
b. By using “Java weblogic.server” command
c. From the startup option on windows
Following are the ways to start and stop a managed server:
a. By sung scripts
b. By using admin console
c. By using node manager
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 web server and the browser. It is authenticated by the World Wide Web Consortium, W3C.
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 on a root cause.
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 a single or multiple physical machines. To be able to communicate to a node manager, every machine must be configured with your node manager.
There are three different application layers in a WebLogic server:
a. Presentation layer: it contains server containers and any other web application containers.
b. Business layer: it contains containers with business logic along with Entity Beans or Session Beans.
c. Service layer: it contains the services which are helpful in initiating the business logic functionality.
Multicasting refers to establishing a peer to peer communication to initiate the process of messaging communications between different IP sockets.
There are 8 different networking protocols deployed in a WebLogic server. These are:
a. SOAP- Simple object access protocol is a messaging protocol used in web service standard
b. HTTP- it is used in web standards for communication
c. HTTPS- it is used in the web browser along with SSL
d. IIOP- it is a secure WebLogic protocol
e. RMI- Remote Method Invocation allows the establishment of a connection in a disturbed environment.
f. T3- enables connection establishment between java applications over several network connections
g. T3S- A secure WebLogic protocol
A WebLogic Server can be installed in three different modes:
a. Silent mode: uses configuration files, there is no manual intervention during the installation
b. Graphical mode: GUI interaction with the user during installation
c. Console mode: Command based interactive mode of installation
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.
The various capabilities of a WebLogic server are:
a. It allows rolling upgrades
b. It allows redeployment of the production application
c. It allows changes in the dynamic configuration
Yes, we can change the default JVM in Weblogic servers. It can be done as follows:
a. Set JAVA_HOME in the start script of the server
b. Use JRockit javac.exe to change the config.xml of domain
c. Remove all Sun JVM switches from the start scripts server
A classpath in windows can be set using the following script WL_HOMEserverbinsetWLSEnv.cmd
A pooling in tomcat server can be created by:
a. Download 3 jar files: commons-dbcp-1.2 jar, commons-pool-1.3.jar and commons-collections-3.1 jar
b. Make an entry inside the server.sml of the tomcat factory.
Yes, it is different. When a server crash happens, the java process does not exist whereas in server hang the java process stops responding.
A server hang generally happens due to a memory leak, deadlock, longer than anticipated return time in a database query
A memory leak is a condition in which the objects are retained in the heap even after they are no longer required.
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
The default port for configuring the WebLogic server is port 7001.
DB or JDBC connection pools can be configured when the WebLogic server is started. The application you are running ideally borrows connection from the existing database pool and returns it back to the pool by closing it.
The basic difference in 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.
The WebLogic server failure can be dealt with in the following ways:
a. Overload protection
b. Failover for clustered services
c. Automatic restart for failed server instances
d. Server level migration
e. Service level migration
f. Managed server independence (Mis) mode
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.
A WebSphere supports:
a. The functionality of the Servlet/JSP container that deploys HTTP
b. Various HTTP servers like Netscape iPlant, IBM HTTP etc.
c. HTML pages, servlets, XML, Java Server pages etc.
d. Workload management and EJB component model
The following syntax can be used to call such procedures:
CallableStatement cstmt = conn.prepare all(“Begin to proclaim;
Go to WebLogic console >> left navigation tree >> Environment >> servers >> click of any server >> click monitoring tab >> note the weblogic version field.
39. What is meant by OS tuning?
OS tuning refers to the process of tuning your operating system with a weblogic server by setting up TCP/IP parameters.
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.
The port number of a WebLogic server can be checked by using netstat-na|grep connected
No, there can be any number of WebLogic servers held inside a multi-processor machine.
The boot.properties file stores your credentials like user id and password
There are 2 ways in which clustering can be done WebLogic server:
a. Vertical clustering: under this type, multiple java applications are run on a single physical machine.
b. Horizontal clustering: under this type, multiple java application servers are run over two or more than two physical machines. It accounts for higher reliability.
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.
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.
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 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.
Managed servers communicate through T3 protocol.
ANT is a task that helps you carry out a smooth configuration of other tasks and applications in a developed environment.
MSI stands for Managed Server Independence. Managed servers have the ability to launch and operate even in the absence of the admin server.
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 .