Sun Java System Access Manager version 6 2005Q1
Sample
 

Main Page > Console Sample Page

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

  1. ConsoleEventListener.java


3. Directions

  1. Compile the Java files
    	cd $AM_INSTALL_DIR/samples/console/ConsoleEventListener
    	gmake all
    	
  2. Create a new jar with the sample class files.
    	cd $AM_INSTALL_DIR/samples/console
    	jar cf am_console_sample.jar com
    	
  3. Copy the am_console_sample.jar into $AM_INSTALL_DIR/web-src/applications/WEB-INF/lib
  4. Set the value of com.iplanet.services.debug.level in AMConfig.properties to message.
  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>
  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.
  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