Sun Java System Access Manager version 7 2005Q4

Administration Console Samples - Console Listener Sample

    1. Purpose

    Display the parameters that are passed to an implementation of
    the AMConsoleListener class. The parameters will be sent to
    the administration console debug file found in
    /var/$AM_INSTALL_DIR/debug/amConsole.
    

    2. Files

    2.1 ConsoleEventListener.java



    3. Directions

    3.1 Compile the Java files
        
	cd $AM_INSTALL_DIR/samples/console/ConsoleEventListener
	gmake all
	
    
    3.2 Create a new jar with the sample class files.
	
	cd $AM_INSTALL_DIR/samples/console
	jar cf am_console_sample.jar com
	
    
    3.3 Copy the am_console_sample.jar into
	$AM_INSTALL_DIR/web-src/applications/WEB-INF/lib
    
    3.4 Set the value of com.iplanet.services.debug.level in
	AMConfig.properties to message.
    
    3.5 Redeploy the console
        Set the DEPLOY_LEVEL to 22 in the silent file
        For web server: run amws61config -s <silent file>
        For application server: run amas70config -s <silent file>
    
    3.6 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.ConsoleEventListener to
	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.
    
    3.7 Access the console and view /var/$AM_INSTALL_DIR/debug/amConsole.
        You will see the debug messages from the event listener class.
    



End of Sample

