| java.lang.Object org.obe.server.j2ee.ejb.AbstractEJB org.obe.server.j2ee.ejb.AbstractSessionEJB org.obe.server.j2ee.ejb.JMSMessageProducerEJB
JMSMessageProducerEJB | public class JMSMessageProducerEJB extends AbstractSessionEJB (Code) | | Sends/posts messages to JMS destinations.
author: Adrian Price |
Method Summary | |
public void | ejbCreate() | public void | ejbRemove() | protected Log | getLogger() | public void | publish(Topic topic, Object payload, Map props) Send a JMS message with user-specified properties to a topic. | public void | publish(Topic topic, Object payload, Map props, int deliveryMode, int priority, long timeToLive) Send a JMS message with user-specified properties to a topic. | public void | send(Queue queue, Object payload, Map props) Send a JMS message with user-specified properties to a topic. | public void | send(Queue queue, Object payload, Map props, int deliveryMode, int priority, long timeToLive) Send a JMS message with user-specified properties to a queue. |
JMSMessageProducerEJB | public JMSMessageProducerEJB()(Code) | | |
ejbCreate | public void ejbCreate() throws CreateException(Code) | | |
ejbRemove | public void ejbRemove()(Code) | | |
getLogger | protected Log getLogger()(Code) | | |
publish | public void publish(Topic topic, Object payload, Map props) throws JMSException(Code) | | Send a JMS message with user-specified properties to a topic. This
method supplies default values for delivery mode (PERSISTENT), priority
(4) and TTL (0).
Parameters: topic - The topic to which the message should be sent. Parameters: payload - The message payload. Parameters: props - Message properties. throws: JMSException - if a problem occurs within JMS |
publish | public void publish(Topic topic, Object payload, Map props, int deliveryMode, int priority, long timeToLive) throws JMSException(Code) | | Send a JMS message with user-specified properties to a topic.
Parameters: topic - The topic to which the message should be sent. Parameters: payload - The message payload. Parameters: props - Message properties. Parameters: deliveryMode - Delivery mode: DeliveryMode.PERSISTENT or DeliveryMode.NON_PERSISTENT . Parameters: priority - Message priority: 0 - 9. Parameters: timeToLive - Message lifetime in milliseconds. throws: JMSException - if a problem occurs within JMS |
send | public void send(Queue queue, Object payload, Map props) throws JMSException(Code) | | Send a JMS message with user-specified properties to a topic. This
method supplies default values for delivery mode (PERSISTENT), priority
(4) and TTL (0).
Parameters: queue - The queue to which the message should be sent. Parameters: payload - The message payload. Parameters: props - Message properties. throws: JMSException - if a problem occurs within JMS |
send | public void send(Queue queue, Object payload, Map props, int deliveryMode, int priority, long timeToLive) throws JMSException(Code) | | Send a JMS message with user-specified properties to a queue.
Parameters: queue - The queue to which the message should be sent. Parameters: payload - The message payload. Parameters: props - Message properties. Parameters: deliveryMode - Delivery mode: DeliveryMode.PERSISTENT or DeliveryMode.NON_PERSISTENT . Parameters: priority - Message priority: 0 - 9. Parameters: timeToLive - Message lifetime in milliseconds. throws: JMSException - if a problem occurs within JMS |
Fields inherited from org.obe.server.j2ee.ejb.AbstractSessionEJB | protected SessionContext _ctx(Code)(Java Doc)
|
|
|