users@glassfish.java.net

developing lifecycle module(urgent pls )

From: <glassfish_at_javadesktop.org>
Date: Mon, 07 Jun 2010 05:00:39 PDT

Hello.
I am trying to develop a test lifecycle module for glassfish.

In glassfish's domain.xml file the lifecycle module is configured as

<lifecycle-module class-name="test" classpath="/root/NetBeansProjects/test/build/classes/"
enabled="true" is-failure-fatal="true" name="test" object-type="user"/>

...and the module

import com.sun.appserv.server.*;
public class test
{
public void handleEvent(LifecycleEvent event) throws ServerLifecycleException
  {
    LifecycleEventContext context = event.getLifecycleEventContext();

    context.log("got event" + event.getEventType() + " event data: "
      + event.getData());

    Properties props;

    if (LifecycleEvent.INIT_EVENT == event.getEventType()) {
      context.log("LifecycleListener: INIT_EVENT");

      props = (Properties) event.getData();

      // handle INIT_EVENT
      return;
    }

    if (LifecycleEvent.STARTUP_EVENT == event.getEventType()) {
      context.log("LifecycleListener: STARTUP_EVENT");

      // handle STARTUP_EVENT
      return;
    }

    if (LifecycleEvent.READY_EVENT == event.getEventType()) {

      context.log("LifecycleListener: READY_EVENT");

      // handle READY_EVENT
      return;
    }

    if (LifecycleEvent.SHUTDOWN_EVENT== event.getEventType()) {
      context.log("LifecycleListener: SHUTDOWN_EVENT");

      // handle SHUTDOWN_EVENT
      return;
    }

    if (LifecycleEvent.TERMINATION_EVENT == event.getEventType()) {
      context.log("LifecycleListener: TERMINATE_EVENT");

      // handle TERMINATION_EVENT
      return;
    }
  }
}


above module is not writing msgs to server log file . If i am using standard module in com.sun.appserver.LifecycleListenerImpl then it start writing msgs to log,pls tell me what might be the problem as early as possible
[Message sent by forum member 'alishacse']

http://forums.java.net/jive/thread.jspa?messageID=473128