org.objectweb.joram.mom.dest
Interface DistributionHandler

All Known Implementing Classes:
JMSDistribution, MailDistribution

public interface DistributionHandler

DistributionHandler interface is made to work with a distribution queue or topic via a DistributionModule. Its purpose is to easily extend Joram destinations in order to deliver JMS messages outside of the JMS world, for example using e-mail or ftp.


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.
 

Method Detail

distribute

void distribute(Message message)
                throws java.lang.Exception
Distributes the given message outside of the JORAM server.

Parameters:
message - the message to distribute
Throws:
java.lang.Exception

init

void init(java.util.Properties properties)
Configures the handler with the given properties.

Parameters:
properties - The initial set of properties.

close

void close()
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.



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