|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.jmsmvc4swing.base.JmsJndiEnvironmentImpl
public final class JmsJndiEnvironmentImpl
Default environment for using JMS and JNDI.
| Field Summary | |
|---|---|
static java.lang.String |
CONTEXT
Prefix for all topic names. |
| Constructor Summary | |
|---|---|
JmsJndiEnvironmentImpl(javax.naming.Context context,
java.lang.String topicConnectionFactoryKey)
Constructor with all necessary data. |
|
| Method Summary | |
|---|---|
void |
close()
Close the JMS connection to the provider. |
javax.jms.TopicConnection |
getConnection()
Returns the JMS provider connection. |
javax.naming.Context |
getContext()
Return the naming context. |
javax.jms.Topic |
getTopic(java.lang.String name)
Creates a topic for a given name. |
boolean |
isOpen()
Returns the information if the connection to the JMS provider is active. |
void |
open()
Create a connection to the JMS provider and start it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONTEXT
| Constructor Detail |
|---|
public JmsJndiEnvironmentImpl(javax.naming.Context context,
java.lang.String topicConnectionFactoryKey)
context - Naming context.topicConnectionFactoryKey - Key used to lookup a topic connection factory with JNDI.| Method Detail |
|---|
public final void open()
open in interface JmsJndiEnvironmentpublic final boolean isOpen()
isOpen in interface JmsJndiEnvironmentpublic final void close()
close in interface JmsJndiEnvironmentpublic final javax.jms.Topic getTopic(java.lang.String name)
getTopic in interface JmsJndiEnvironmentname - Name of the topic to create.
public final javax.jms.TopicConnection getConnection()
isOpen()
returns TRUE!
getConnection in interface JmsJndiEnvironmentpublic final javax.naming.Context getContext()
getContext in interface JmsJndiEnvironment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||