|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.jmsmvc4swing.jms.Publisher
public final class Publisher
Publishes messages to a JMS topic.
| Constructor Summary | |
|---|---|
Publisher(JmsJndiEnvironment env)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Close the session to the JMS provider. |
boolean |
isClosed()
Returns if no JMS session is active. |
boolean |
isOpen()
Returns if a JMS session is active. |
void |
open(String topicName)
Create a topic to publish to (Opens a session to the JMS provider). |
void |
publish(String methodName,
Serializable data,
long id,
MessageType type)
Publishes a message to the predefined topic. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Publisher(JmsJndiEnvironment env)
env - Environment to use.| Method Detail |
|---|
public final void open(String topicName)
topicName - Name of the topic.public final boolean isOpen()
public final boolean isClosed()
public final void close()
public final void publish(String methodName,
Serializable data,
long id,
MessageType type)
methodName - Name of the method for creating the selector.data - Data for the message.id - Id for creating the selector.type - Types for creating the selector.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||