| Main Page >
    Console Sample Page
 Administration Console Samples - Console Listener Sample
 
 1. Purpose
    Display the parameters that are passed to an implementation of
    the AMConsoleListenerclass. The parameters will be sent to
    the administration console debug file found in/var/$AM_INSTALL_DIR/debug/amConsole. 
 
 2. Files
 
ConsoleEventListener.java 
 
 3. Directions
 
Compile the Java files
        
	cd $AM_INSTALL_DIR/samples/console/ConsoleEventListenergmake allCreate a new jar with the sample class files.
	
	cd $AM_INSTALL_DIR/samples/console
	jar cf am_console_sample.jar com
	Copy the am_console_sample.jar into
	$AM_INSTALL_DIR/web-src/applications/WEB-INF/libSet the value of com.iplanet.services.debug.levelinAMConfig.propertiesto message.Redeploy the console
        Set the DEPLOY_LEVEL to 22 in the silent fileFor web server: run
 amws61config -s <silent file>For application server: run
 amas70config -s <silent file>Login to the console as the Top Level Administrator, click on
	Service Management Tab, select Administration Service, and add
	com.iplanet.am.console.base.model.ConsoleEventListenerto
	the Event Listener Class attribute. If you have the Administration
	Service registered for the root organization, add this class name to
	the Event Listener Class attribute for the organization.Access the console and view /var/$AM_INSTALL_DIR/debug/amConsole.
        You will see the debug messages from the event listener class. |