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

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

Configuring SQUID

Last night I had to replicate an issue which involved configuring SQUID on a Windows environment. I had to look for the installer, and then check out the configuration steps. I needed a very basic setup, just to proxy the Client requests to the Server. I found few very useful

Continue reading

Configuring Kerberos with Weblogic Server

Details Domain Name: BEATEST.COMDomain Controller Name: BEAAD (This machine runs Active Directory)WL Server Machine Name: beaiis (This machine runs Weblogic server). For BEAAD:- Username : beauserPassword : For beaiis :- Username : beaiisPassword : Secure04 Steps on Domain Controller (BEAAD) 1) Create a User beawin in Active Directory. Go to

Continue reading