public class JmsPublisher extends Object implements EventService
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_JMS_PASSWORD
THe configuration key controlling the JMS password.
|
static String |
CONFIG_JMS_QUEUE_NAME
The configuration key controlling the JMS queue name.
|
static String |
CONFIG_JMS_URL
The configuration key controlling the JMS broker URL.
|
static String |
CONFIG_JMS_USERNAME
The configuration key controlling the JMS username.
|
| Constructor and Description |
|---|
JmsPublisher()
Create a new JMS Publisher.
|
JmsPublisher(Connection conn)
Create a new JMS Publisher.
|
JmsPublisher(Session session,
String queueName)
Create a new JMS Publisher.
|
public static final String CONFIG_JMS_QUEUE_NAME
public static final String CONFIG_JMS_URL
public static final String CONFIG_JMS_USERNAME
public static final String CONFIG_JMS_PASSWORD
@Inject public JmsPublisher() throws JMSException
JMSException - when there is a connection errorpublic JmsPublisher(Connection conn) throws JMSException
conn - the connectionJMSException - when there is a connection errorpublic JmsPublisher(Session session, String queueName) throws JMSException
session - the JMS sessionqueueName - the name of the queueJMSException - when there is a connection errorpublic void emit(Event event)
EventServiceemit in interface EventServiceevent - the event