FileDocCategorySizeDatePackage
ServerListener.javaAPI DocGlassfish v2 API3055Fri May 04 22:35:00 BST 2007None

ServerListener

public class ServerListener extends Object implements com.sun.enterprise.tools.deployment.backend.RemoteNotificationListener
I am an implementation class that listens for remote changes in the J2EE server. I delegate notifications to the server manager that uses me.
author
Danny Coward

Fields Summary
private ServerManager
serverManager
Constructors Summary
protected ServerListener(ServerManager serverManager)
Construct a J2EE server listener which delegates events to the supplied ServerManager instance.

    
	             	
         
	this.serverManager = serverManager;
    
Methods Summary
public voidnotification(com.sun.enterprise.util.NotificationEvent ne)
implementation of the notification listener interface.

	//System.out.println("server listener changed");
	try {
	    serverManager.changed();
	} catch (Throwable t) {
	    // don't want a client side exception to propogate back to the server
	    t.printStackTrace();
	}