|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ehsbe.commons.server.jms.MsgProducer
public class MsgProducer
A message producer, which uses cached producer instances to send messages. Avoids the overhead of setting/looking up up connections, sessions and producers. Sessions are NOT used with Transactions, and are auto acknowledged.
Nested Class Summary | |
---|---|
static class |
MsgProducer.QueueParams
Simple container for recording queue parameters. |
Constructor Summary | |
---|---|
MsgProducer()
|
Method Summary | |
---|---|
protected static long |
getNextId(String destination)
Get the next messageID for the given destination |
static void |
send(String destination,
ClientInfoEvent event,
boolean transacted)
Sends the client info event to the given topic. |
static void |
send(String destination,
CrudEvent<?> event)
Convinience method for sending a CRUD message to the given destination. |
static void |
send(String destination,
CrudEventList list)
Send a message to the given destination. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MsgProducer()
Method Detail |
---|
protected static long getNextId(String destination)
destination
- topic
public static void send(String destination, CrudEvent<?> event)
destination
- name of the queue/topic - e.g. "topic/foo" or
"queue/bar".event
- event to sendpublic static void send(String destination, CrudEventList list)
destination
- name of the queue/topic - e.g. "topic/foo" or
"queue/bar".list
- list of CRUD eventspublic static void send(String destination, ClientInfoEvent event, boolean transacted)
destination
- name of the queue/topic - e.g. "topic/foo" or
"queue/bar".event
- event to send.transacted
- whether to send via transacted session
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |