|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.common.MessagingServices
public class MessagingServices
Messaging services
| Field Summary | |
|---|---|
static String |
ERROR_TOPIC
Error topic string |
static String |
MESSAGE_TOPIC
Message topic string |
static String |
SUBSCRIBER_QUEUE
Subscriber Queue name |
| Method Summary | |
|---|---|
javax.jms.Connection |
getConnection()
Gets the JMS connection |
static MessagingServices |
getInstance()
Get messaging service instance |
javax.jms.MessageProducer |
getProducer()
Gets the JMS message producer with no default destination |
javax.jms.Session |
getSession()
Gets the JMS session |
void |
onEvent(Map<String,String> param)
To put events to subscriber queue |
void |
publishMessage(String name,
String msg)
Sends a message to a JMS topic. |
void |
queueMessage(String name,
String msg)
Sends a message to a JMS queue. |
void |
release()
Closes the JMS connections. |
void |
sendMessage(javax.jms.Destination destination,
String msg)
Sends a message to a JMS destination. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SUBSCRIBER_QUEUE
public static final String ERROR_TOPIC
public static final String MESSAGE_TOPIC
| Method Detail |
|---|
public static MessagingServices getInstance()
throws javax.jms.JMSException
javax.jms.JMSException - if an error occurred starting the JMS connectionspublic javax.jms.Connection getConnection()
public javax.jms.Session getSession()
public javax.jms.MessageProducer getProducer()
public void release()
public void publishMessage(String name,
String msg)
name - topic namemsg - message to send
public void queueMessage(String name,
String msg)
name - queue namemsg - message to send
public void sendMessage(javax.jms.Destination destination,
String msg)
throws javax.jms.JMSException
name - destination namemsg - message to send
javax.jms.JMSExceptionpublic void onEvent(Map<String,String> param)
oid - Object ideventType - type of events happenedcontext - where the event happenedjsonFile - Configuration file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||