See wam Menu

Enabling the WAM Text Notifier Service Example

Because the WAM Text Notifier Service example requires a valid SMTP mail server specific to your environment, it is disabled by default.

To configure it for use, navigate to the examples security domain configuration files and open security-domain.xml in a text editor, and proceed as follows.

  • For Linux/UNIX, run:

    cd $CAMS_HOME/conf/domains/examples
    vi security-domain.xml
  • For Windows, run:

    CD %CAMS_HOME%\conf\domains\examples
    notepad security-domain.xml

You’ll need to edit the security-domain.xml file in two distinct XML blocks as shown in Example 1 and described below.


   <!-- Example of a session-event-handler that sends an email notification
       when user "manager" logs in. You must also enable and configure the 
       TextNotifierService for this example to work. 
   <session-event-handler className="examples.service.ManagerLoginNotifier">
         <param name="fromAddress" value=""/>
         <param name="msgSubject" value="Manager Login Notification"/>






   <!-- Register a text notifier service -->
   <service id="email-text-notifier-service" enabled="true" debug="false">
         <param name="" value=""/>
         <param name="" value=""/>



Example 1 - Enabling the WAM Text Notifier Service example in security-domain.xml

  1. Uncomment the ManagerLoginNotifier session-event-handler found in the session-manager-service enclosing elements.

    To do this, simply move the end comment --> from its default position after the ManagerLoginNotifier session-event-handler element to preceding it as shown in Example 1.

    You may optionally change the email fromAddress and msgSubject if you like.

  2. Navigate to the service-manager element and find the email-text-notifier-service.

    You must enable the service by setting the enabled flag to true as show in Example 1.

    You MUST also configure the and parameters with values specific to your environment.

    The is the IP or DNS name of the SMTP mail server and the is the email address to which you’ll send the message.

For the service to be loaded, you must restart the WAM policy server if it is currently running.

You should use the shutdown.bat/ command in the bin directory of WAM to shutdown the server. Then, use runcams.bat/ to start it.

Have a Question?

Have a how-to question? Seeing a weird error? Contact us.

Found a bug? Submit a support ticket.

Have a product idea or request? Share it with us in our Ideas Portal.