org.logicblaze.lingo.jms
Interface JmsProducer

All Known Implementing Classes:
DefaultJmsProducer

public interface JmsProducer

A simple abstraction layer for applications wishing to send JMS messages

Version:
$Revision: 91 $

Method Summary
 void close()
           
 javax.jms.Connection getConnection()
           
 javax.jms.MessageProducer getMessageProducer()
           
 javax.jms.Session getSession()
           
 void send(javax.jms.Destination destination, javax.jms.Message message)
          Sends a message to the given destination in a way that can be implemented in JMS 1.0.2b as well as using the JMS 1.1 send() method on MessageProducer
 void send(javax.jms.Destination destination, javax.jms.Message message, int deliveryMode, int priority, long timeToLive)
          Sends a message to the given destination in a way that can be implemented in JMS 1.0.2b as well as using the JMS 1.1 send() method on MessageProducer
 

Method Detail

getConnection

javax.jms.Connection getConnection()

getSession

javax.jms.Session getSession()

getMessageProducer

javax.jms.MessageProducer getMessageProducer()

close

void close()
           throws javax.jms.JMSException
Throws:
javax.jms.JMSException

send

void send(javax.jms.Destination destination,
          javax.jms.Message message)
          throws javax.jms.JMSException
Sends a message to the given destination in a way that can be implemented in JMS 1.0.2b as well as using the JMS 1.1 send() method on MessageProducer

Throws:
javax.jms.JMSException - if the message could not be sent

send

void send(javax.jms.Destination destination,
          javax.jms.Message message,
          int deliveryMode,
          int priority,
          long timeToLive)
          throws javax.jms.JMSException
Sends a message to the given destination in a way that can be implemented in JMS 1.0.2b as well as using the JMS 1.1 send() method on MessageProducer

Throws:
javax.jms.JMSException - if the message could not be sent


Copyright © 2009 LogicBlaze, Inc.. All Rights Reserved.