Updating invalidation-interval-secs Using Plan.xml

This article describes the usage of plan.xml to update deploment descriptors on the fly. In this example we will update the value of invalidation-interval-secs from 90 seconds to 30 seconds using plan.xml. invalidation-interval-secs Sets the time, in seconds, that WebLogic Server waits between doing house-cleaning checks for timed-out and invalid

Continue reading »

Resetting Admin UserName And Password in Weblogic Server 11g

Step 1 – Set the environment C:\Oracle\Middleware\user_projects\domains\FirstDomain\bin>setDomainEnv.cmd Step 2 – Create a new Admin Account C:\Oracle\Middleware\user_projects\domains\FirstDomain>java weblogic.security.utils.AdminAccount faisal faisal123 . Note: Don’t forget to add a dot(.) at the end. Step 3 – Verify the creation of a new DefaultAuthenticatorInit.ldift file. C:\Oracle\Middleware\user_projects\domains\FirstDomain>dir Volume in drive C has no label. Volume

Continue reading »

Use specific SSL protocol version with Weblogic Server.

If we want the Weblogic Server to use only a specific protocol version of SSL,we can do it with the command line options below. -Dweblogic.security.SSL.protocolVersion=SSL3—Only SSL V3.0 messages are sent and accepted. -Dweblogic.security.SSL.protocolVersion=TLS1—Only TLS V1.0 messages are sent and accepted. -Dweblogic.security.SSL.protocolVersion=ALL—This is the default behavior. We can test it by

Continue reading »

How to Restrict Key Size Larger that 128 bit on Weblogic Server.

To restrict keysize larger than 128 bit we need to select only those cipher suites in the configuration which use 128 bit key. Sample config:- <ssl> <enabled>true</enabled> <ciphersuite>TLS_RSA_WITH_RC4_128_SHA</ciphersuite> <ciphersuite>TLS_RSA_WITH_RC4_128_MD5</ciphersuite> <hostname-verification-ignored>true</hostname-verification-ignored> <listen-port>7002</listen-port> <server-private-key-alias>xxxxxxx </server-private-key-alias> <server-private-key-pass-phrase-encrypted>xxxxxx</server-private-key-pass-phrase-encrypted> </ssl> List of Ciphersuites Supported by Weblogic Server are:- Cipher Suite Symmetric Key Strength TLS_RSA_WITH_RC4_128_SHA 128

Continue reading »

Creating Application Life Cycle Listener

Create a Class that extends ApplicationLifecycleListener. ApplicationListener.java package demo; import weblogic.application.ApplicationException; import weblogic.application.ApplicationLifecycleEvent; import weblogic.application.ApplicationLifecycleListener;; public class ApplicationListener extends ApplicationLifecycleListener { public void preStart(ApplicationLifecycleEvent evt) { System.out.println(“Event preStart received”); } public void postStart(ApplicationLifecycleEvent evt) { System.out.println(“Event postStart received”); } public void preStop(ApplicationLifecycleEvent evt) { System.out.println(“Event preStop received”); } public void

Continue reading »

Side by Side deployment/Versioning

Production redeployment of application/ versioning/ side by side deployment We need versioning for updating the application in production on runtime. The sessions which are already logged in will be using the previous version of the application and the new sessions created will use the new version of application. 1)In the

Continue reading »

Configuration: WLDF Mail Notification for Runtime Mbean

Weblogic Diagnostics Framework can be used to analyze, collect, archive and access diagnostic data generated by a running server and the applications deployed within its containers. Here I have provided configuration for sending mail notification on the harversted data for the runtime Mbean which you want to monitor. 1. From

Continue reading »

Steps to use userconfig file and userkey file

Steps to use userconfig file and userkey file First create the user config file and the key file with the following method (Alternatively Weblogic Admin utility can be used to create the user config files). storeUserConfig(‘C:/bea922/user_projects/domains/config-file’,’C:/bea922/user_projects/domains/keyfile’) You can connect to the nodemanger using the userKeyFile and userConfigFile : nmConnect(userConfigFile=’C:/bea922/user_projects/domains/config-file’,userKeyFile=’C:/bea922/user_projects/domains/keyfile’, host=’10.10.71.79′,

Continue reading »

Registering Custom MBeans with Weblogic Server

Registering Custom Mbeans with Weblogic Server. Example.java package jmxMbeans; public class Example implements ExampleMBean { public void sayHello(String str) { System.out.println(“Hello ” + str + “‘!”); } } ExampleMbean.java package jmxMbeans; public interface ExampleMBean { void sayHello(String name); } Index.jsp <%@ page import=”javax.management.MBeanServer”%> <%@ page import=”javax.management.ObjectName”%> <%@ page import=”javax.naming.Context”%> <%@

Continue reading »

Plan.xml usage for Message Driven Bean

This post is an illustration of usage of plan.xml for overriding features of Message Driven Bean application dynamically. Administrators use deployment plans to easily change an application’s WebLogic Server configuration for a specific environment without modifying existing Java EE or WebLogic-specific deployment descriptors. Multiple deployment plans can be used to

Continue reading »