Configuring IIS with Weblogic Server

This is a simple example of Configuring IIS(running on default port 80) on Weblogic Server. Create two Weblogic Servers running on Port 7001 and 7003, create a Cluster and add the two Servers to the Cluster. Deploy an application on the Cluster and after the configuration on ISS, access the

Continue reading »

Configuring SSL on Weblogic Server – Custom Identity and Custom Trust

I have been getting a lot of request for creating a very simple document for configuring SSL on Weblogic Server. Its a pretty straight forward configuration, but most people are not aware of it. WLS is by default configured with DemoIdentity and DemoTrust, we just need to enable SSL port

Continue reading »

Troubleshooting Out Of Memory Errors in Weblogic using Eclipse Memory Ananlyser

Eclipse Memory Ananlyser is a very useful tool to analyze heap dumps. It has a lot of features such as Memory Leak detection where it runs an automated test to determine the suspected leaks. Here is the Procedure Step 1). Start the Weblogic Server, with the application in active state which

Continue reading »

How to modify Weblogic Default Roles and Policies

This post is basically screenshots that demonstrates how to modify the existing roles and policies in Weblogic. We mostly have our users and groups in LDAP/ Database Servers. We integrate them with WLS for authentication purpose by configuring the authenticators. If we want to assign certain default roles, we can

Continue reading »

BASIC Authentication with Apache

Create user.txt with the username and password separated by colon user.txt testuser:testuser Then use the htpasswd to encrypt the password Apache2\bin>htpasswd.exe -b user.txt testuser testuser Automatically using MD5 format. Updating password for user testuser Add the following in the httpd.conf file present in C:\Program Files\Apache Group\Apache2\bin LoadModule weblogic_module modules/mod_wl128_20.so <Location

Continue reading »

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 »

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 »

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 »