How to decrypt WebLogic Datasource Password

You need to copy the datasource password present in the -jdbc.xml present under \config\jdbc to the password variable in the WLST Script.   Change the path variable to point to your domain from weblogic.security.internal import * from weblogic.security.internal.encryption import * password = "{AES}0+5YrFk+fD9BFIykr3H+wPsNmPRP/GIOUId7SPqBgNg=" path = "D:/Oracle/Middleware/user_projects/domains/pega7_domain/security" encryptionService = SerializedSystemIni.getEncryptionService(path) cService

Continue reading »

How to configure SSL on Nodemanager for 12c

In Weblogic Server 12.1.2, the java version of Node Manager controls all WLS instances belonging to the same domain.This allows the feasibility to have different nodemanager configurations for different domains. You can follow the steps below to use one nodemanager per domain running over SSL ( custom identity & custom

Continue reading »

How to store http sessions in database for WebLogic Cluster

In this example we are going use Postgres database for session replication. It can be downloaded from here Once installed, you need to execute the following query to create the table to store session   create table wl_servlet_sessions ( wl_id TEXT NOT NULL, wl_context_path TEXT NOT NULL, wl_is_new CHAR(1), wl_create_time

Continue reading »

How to do auto backup of weblogic config.xml

You need to go to the following location Home >your_domain > Configuration > General > click Advanced   The configuration is backed up at the time of server boot.  

Continue reading »

Simple Checklist for WebLogic to JBoss Migration

Compare the supported J2EE specs ( EJB, JMS, Webservices) of the Weblogic Version you are going to migrate from to the JBoss Server version. You will get the details from their official website. Find out the architecture of the Weblogic Application Server ( How many servers? Clusters? Machines?) either from

Continue reading »

Auto Deployment and Hot Deployment

Auto Deployment:   Features provided by the Application Servers in which applications can be automatically deployed / undeployed on to the server. The App Server provides a mechanism where they scan certain folders for the applications for ex. autoDeploy folder in weblogic, deploy folder in tomcat / Jboss etc. Hot

Continue reading »

Weblogic Server Administration for Beginners.

This article is for System Admins who are new to Weblogic Administration. The following are the day to day task of a Weblogic Server Administrators. 1. Setting up infrastructure ( Managed Servers, Cluster, Nodemanager) 2. Deploying Applications 3. Creating resources( JMS, JDBC, Security) 4. Monitoring 5. Performance Tuning 6. Troubleshooting

Continue reading »

Sample JMX Code to retrieve JDBC Connection Pool Parameter

import java.io.IOException; import java.util.*; import javax.management.*; import javax.management.remote.*; import javax.naming.Context; import weblogic.jndi.Environment; import weblogic.management.*; public class JDBCConnectionPoolProperties { static MBeanServerConnection connection; static JMXConnector connector; static ObjectName service; public static void main(String[] args) { try { JMXServiceURL serviceURL = new JMXServiceURL("t3", "localhost", 80, "/jndi/weblogic.management.mbeanservers.domainruntime"); service = new ObjectName( "com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean"); Hashtable h

Continue reading »

Configuring Datasource on Weblogic Server

Precondition: We will create a Data Source using PostgresSQL. In order to test it you will have to install Postgres  and keep and instance running on port-5460. We also need to keep the Postgres-driver in the domain/lib folder. Steps to Create a Data Source: Step 1: Expand Services link Domain

Continue reading »

Deploying Tuxedo 12c JCA Adapter rar file in Weblogic server 11g

Step 1: Download JCA adapter rar file from oracle site. Step2:  Unzip the rar file into a folder.     Step3:  Under extracted folder, we have com.oracle.tuxedo.TuxedoAdapter rar fie is there. Copy that one and place it outside of extracted folder and remove extracted and zip folder.   Step 4

Continue reading »