org.fuin.jmsmvc4swing.base
Interface JmsJndiEnvironment

All Known Implementing Classes:
JmsJndiEnvironmentImpl

public interface JmsJndiEnvironment

Environment for using JMS and JNDI.


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.
 

Method Detail

getContext

javax.naming.Context getContext()
Return the naming context.

Returns:
Naming context.

getTopic

javax.jms.Topic getTopic(java.lang.String name)
Creates a topic for a given name.

Parameters:
name - Name of the topic to create.
Returns:
New topic instance.

open

void open()
Create a connection to the JMS provider and start it.


isOpen

boolean isOpen()
Returns the information if the connection to the JMS provider is active.

Returns:
If the connection is open and started TRUE else FALSE.

getConnection

javax.jms.TopicConnection getConnection()
Returns the JMS provider connection. Do only use if isOpen() returns TRUE!

Returns:
Active connection.

close

void close()
Close the JMS connection to the provider.



Copyright © 2009 Future Invent Informationsmanagement GmbH. All Rights Reserved.