Using JConsole to view JMX MBeans of Weblogic Server

1. Set the environment using setWLSEnv.cmd 2. Start JMX Console using the below arguments and connect to the local/remote process. jconsole -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote -J-Dcom.sun.tools.jconsole.mbeans.keyPropertyList=Location,type,Type,j2eeType,name,Name -debug   3. Go to the Mbeans tab and view the Mbeans  

Continue reading »

Creating Oracle Datasource in Websphere 8.5

Continue reading »

Installing and configuring OHS 12c with WebLogic Server

Continue reading »

WebLogic CLoning Process

Continue reading »

How to configure SSL on JBoss EAP

Create Connector Create Keystores keytool -genkey -alias mykey -keyalg RSA -keysize 1024 -dname “CN=myserver.beasys.com, OU=Customer Support, O=BEA Systems Inc, L=Denver, ST=Colorado, C=US” -keypass password -keystore identity.jks -storepass password keytool -selfcert -v -alias mykey -keypass password -keystore identity.jks -storepass password -storetype jks keytool -export -v -alias mykey -file rootCA.der -keystore identity.jks

Continue reading »

Shared Library example for Oracle Weblogic Server

1. Compile your code and package it in a jar file. In this example I have written a simple program that has a function that just takes a string as input and prints hello infront of the string.   package wonders; public class MyTestClass { static { System.out.println("MyTestClass class Loaded

Continue reading »

Using WLDF to view Historical Data

1. Go to the Home Page and click on Monitoring Dashboard under charts & graph 2. This will open the dashboard in a new tab. There are some built in views. You can select JVM Runtime Heap and click on the start button on the top. 3. You should be

Continue reading »

JMX Code to print Datasource Status

You need to provide the server host name and port number in the JMX code and also set the class path before compiling it. import java.io.IOException; import java.net.MalformedURLException; import java.util.Hashtable; import org.apache.log4j.Logger; import javax.management.MBeanServerConnection; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; import javax.management.remote.JMXConnector; import javax.management.remote.JMXConnectorFactory; import javax.management.remote.JMXServiceURL; import javax.naming.Context; public class WLMonitMain {

Continue reading »

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 »

Encrypting password in JBoss EAP

To encrypt password in Jboss using CLI, you can follow the steps below. This is particularly useful if you want to encrypt password for datasource.   1) export JBOSS_HOME=/pallavi/ 2) export CLASSPATH=/pallavi/jboss-eap-6.2/modules/system/layers/base/org/picketbox/main/picketbox-4.0.19.SP2-redhat-1.jar:/pallavi/modules/system/layers/base/org/jboss/logging/main/jboss-logging-3.1.2.GA-redhat-1.jar:$CLASSPATH 3) java org.picketbox.datasource.security.SecureIdentityLoginModule sa 4) Make changes in your configuration file(eg: standalone.xml) under the security tag as below

Continue reading »