com.scalagent.joram.mom.dest.mail
Class MailDistribution

java.lang.Object
  extended by com.scalagent.joram.mom.dest.mail.MailDistribution
All Implemented Interfaces:
DistributionHandler

public class MailDistribution
extends java.lang.Object
implements DistributionHandler


Field Summary
static org.objectweb.util.monolog.api.Logger logger
           
 
Constructor Summary
MailDistribution()
           
 
Method Summary
 void close()
          Closes this handler and releases any system resources associated to it.
 void distribute(Message message)
          Distributes the given message outside of the JORAM server.
 void init(java.util.Properties properties)
          Configures the handler with the given properties.
 void sendJavaMail(Message message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.objectweb.util.monolog.api.Logger logger
Constructor Detail

MailDistribution

public MailDistribution()
Method Detail

distribute

public void distribute(Message message)
                throws java.lang.Exception
Description copied from interface: DistributionHandler
Distributes the given message outside of the JORAM server.

Specified by:
distribute in interface DistributionHandler
Parameters:
message - the message to distribute
Throws:
java.lang.Exception - if the message could not be distributed. The message will be forwarded to a DMQ, if any.

init

public void init(java.util.Properties properties)
Description copied from interface: DistributionHandler
Configures the handler with the given properties.

Specified by:
init in interface DistributionHandler
Parameters:
properties - The initial set of properties.

sendJavaMail

public void sendJavaMail(Message message)
                  throws java.lang.Exception
Throws:
java.lang.Exception

close

public void close()
Description copied from interface: DistributionHandler
Closes this handler and releases any system resources associated to it. There will be no subsequent call to this handler after it has been closed.

Specified by:
close in interface DistributionHandler


Copyright © 2011 ScalAgent D.T.. All Rights Reserved.