org.objectweb.jonas_jms.JmsManagerImpl Class Reference

Inherits org.objectweb.jonas_jms.JmsJmxManagement.

Inheritance diagram for org.objectweb.jonas_jms.JmsManagerImpl:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_jms.JmsManagerImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void init (Class cl, boolean collocated, String url, TransactionManager trm) throws Exception
Queue createQueue (String name) throws Exception
Topic createTopic (String name) throws Exception
ConnectionFactory getConnectionFactory ()
TopicConnectionFactory getTopicConnectionFactory ()
XAConnectionFactory getXAConnectionFactory ()
XATopicConnectionFactory getXATopicConnectionFactory ()
XAQueueConnectionFactory getXAQueueConnectionFactory ()
Queue getQueue (String name) throws Exception
Topic getTopic (String name) throws Exception
Enumeration getTopicsNames ()
Enumeration getQueuesNames ()
void stop () throws Exception
int getCurrentNumberOfJmsConnectionFactory ()
int getCurrentNumberOfJmsTopicConnectionFactory ()
int getCurrentNumberOfJmsQueueConnectionFactory ()
int getCurrentNumberOfJmsTopicDestination ()
int getCurrentNumberOfJmsQueueDestination ()
String removeJmsDestination (String jndiName) throws Exception
String getDefaultConnectionFactoryName ()
String getDefaultQueueConnectionFactoryName ()
String getDefaultTopicConnectionFactoryName ()
String getConnectionFactoryMode (String jndiName) throws Exception
int getPendingMessages (String jndiName) throws Exception
int getPendingRequests (String jndiName) throws Exception
int getSubscriptions (String jndiName) throws Exception

Static Public Member Functions

JmsManager getJmsManager ()
JmsJmxManagement getJmsJmxManagement ()
TransactionManager getTransactionManager ()

Detailed Description

JmsManager implementation This singleton class must exist in each JOnAS server that want to use JMS
Author:
Laurent Chauvirey, Frederic Maistre, Nicolas Tachker Contributor(s):
Christophe Ney: for making easier Enhydra integration

Philippe Durieux

Jeff Mesnil: for JORAM 3.0 integration

Philippe Coq: for JORAM 3.1 (JMS 1.1) integration

Adriana Danes : update with support of JMS resource monitoring

Definition at line 66 of file JmsManagerImpl.java.


Member Function Documentation

Queue org.objectweb.jonas_jms.JmsManagerImpl.createQueue String  name  )  throws Exception
 

Creation of an administered Object Queue and bind it in the registry

Definition at line 173 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.api.JmsAdministration.createQueue().

Referenced by org.objectweb.jonas_jms.JmsManagerImpl.getQueue().

Here is the call graph for this function:

Topic org.objectweb.jonas_jms.JmsManagerImpl.createTopic String  name  )  throws Exception
 

Creation of an administered Object Topic and bind it in the registry

Definition at line 196 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.api.JmsAdministration.createTopic().

Referenced by org.objectweb.jonas_jms.JmsManagerImpl.getTopic().

Here is the call graph for this function:

ConnectionFactory org.objectweb.jonas_jms.JmsManagerImpl.getConnectionFactory  ) 
 

Get the unique ConnectionFactory

Definition at line 219 of file JmsManagerImpl.java.

Referenced by org.objectweb.jonas_jms.JmsManagerImpl.init().

String org.objectweb.jonas_jms.JmsManagerImpl.getConnectionFactoryMode String  jndiName  )  throws Exception
 

Get the messaging mode a connection factory belongs to

Parameters:
jndiName connection factory name
Returns:
messaging mode
Exceptions:
failure on calling monitoring operation

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 476 of file JmsManagerImpl.java.

int org.objectweb.jonas_jms.JmsManagerImpl.getCurrentNumberOfJmsConnectionFactory  ) 
 

Returns:
the current number of Jms Connection Factory

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 372 of file JmsManagerImpl.java.

int org.objectweb.jonas_jms.JmsManagerImpl.getCurrentNumberOfJmsQueueConnectionFactory  ) 
 

Returns:
the current number of Queue Jms Connection Factory

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 390 of file JmsManagerImpl.java.

int org.objectweb.jonas_jms.JmsManagerImpl.getCurrentNumberOfJmsQueueDestination  ) 
 

Returns:
the current number of Queue Jms Destination

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 406 of file JmsManagerImpl.java.

int org.objectweb.jonas_jms.JmsManagerImpl.getCurrentNumberOfJmsTopicConnectionFactory  ) 
 

Returns:
the current number of Topic Jms Connection Factory

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 381 of file JmsManagerImpl.java.

int org.objectweb.jonas_jms.JmsManagerImpl.getCurrentNumberOfJmsTopicDestination  ) 
 

Returns:
the current number of Topic Jms Destination

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 399 of file JmsManagerImpl.java.

String org.objectweb.jonas_jms.JmsManagerImpl.getDefaultConnectionFactoryName  ) 
 

Returns:
String name of default Connection factory

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 450 of file JmsManagerImpl.java.

String org.objectweb.jonas_jms.JmsManagerImpl.getDefaultQueueConnectionFactoryName  ) 
 

Returns:
String name of default Queue Connection factory

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 457 of file JmsManagerImpl.java.

String org.objectweb.jonas_jms.JmsManagerImpl.getDefaultTopicConnectionFactoryName  ) 
 

Returns:
String name of default Topic Connection factory

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 464 of file JmsManagerImpl.java.

JmsJmxManagement org.objectweb.jonas_jms.JmsManagerImpl.getJmsJmxManagement  )  [static]
 

Get the JmsJmxManagement.

Definition at line 100 of file JmsManagerImpl.java.

JmsManager org.objectweb.jonas_jms.JmsManagerImpl.getJmsManager  )  [static]
 

Get the JmsManager.

Definition at line 90 of file JmsManagerImpl.java.

int org.objectweb.jonas_jms.JmsManagerImpl.getPendingMessages String  jndiName  )  throws Exception
 

Get number of pending messages on a queue

Parameters:
name the queue's jndi name
Returns:
number of pending messages
Exceptions:
failure on calling monitoring operation

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 496 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.api.JmsAdministration.getPendingMessages().

Here is the call graph for this function:

int org.objectweb.jonas_jms.JmsManagerImpl.getPendingRequests String  jndiName  )  throws Exception
 

Get number of pending requests on a queue

Parameters:
jndiName queue name
Returns:
number of pending requests
Exceptions:
failure on calling monitoring operation

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 515 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.api.JmsAdministration.getPendingRequests().

Here is the call graph for this function:

Queue org.objectweb.jonas_jms.JmsManagerImpl.getQueue String  name  )  throws Exception
 

Get Queue (creates it if not exist)

Definition at line 294 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.JmsManagerImpl.createQueue().

Here is the call graph for this function:

Enumeration org.objectweb.jonas_jms.JmsManagerImpl.getQueuesNames  ) 
 

Get Queue Names

Definition at line 323 of file JmsManagerImpl.java.

int org.objectweb.jonas_jms.JmsManagerImpl.getSubscriptions String  jndiName  )  throws Exception
 

Get number of subscriptions on a topic

Parameters:
jndiName topic name
Returns:
number of subscriptions
Exceptions:
failure on calling monitoring operation

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 534 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.api.JmsAdministration.getSubscriptions().

Here is the call graph for this function:

Topic org.objectweb.jonas_jms.JmsManagerImpl.getTopic String  name  )  throws Exception
 

Get Topic (creates it if not exist)

Definition at line 305 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.JmsManagerImpl.createTopic().

Here is the call graph for this function:

TopicConnectionFactory org.objectweb.jonas_jms.JmsManagerImpl.getTopicConnectionFactory  ) 
 

Get the unique TopicConnectionFactory

Definition at line 237 of file JmsManagerImpl.java.

Referenced by org.objectweb.jonas_jms.JmsManagerImpl.init().

Enumeration org.objectweb.jonas_jms.JmsManagerImpl.getTopicsNames  ) 
 

Get Topic Names

Definition at line 316 of file JmsManagerImpl.java.

TransactionManager org.objectweb.jonas_jms.JmsManagerImpl.getTransactionManager  )  [static]
 

return the Transaction Manager

Definition at line 114 of file JmsManagerImpl.java.

XAConnectionFactory org.objectweb.jonas_jms.JmsManagerImpl.getXAConnectionFactory  ) 
 

Get Default XAConnectionFactory

Definition at line 273 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.api.JmsAdministration.getXAConnectionFactory().

Here is the call graph for this function:

XAQueueConnectionFactory org.objectweb.jonas_jms.JmsManagerImpl.getXAQueueConnectionFactory  ) 
 

Get Default XAQueueConnectionFactory

Definition at line 287 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.api.JmsAdministration.getXAQueueConnectionFactory().

Here is the call graph for this function:

XATopicConnectionFactory org.objectweb.jonas_jms.JmsManagerImpl.getXATopicConnectionFactory  ) 
 

Get Default XATopicConnectionFactory

Definition at line 280 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.api.JmsAdministration.getXATopicConnectionFactory().

Here is the call graph for this function:

void org.objectweb.jonas_jms.JmsManagerImpl.init Class  cl,
boolean  collocated,
String  url,
TransactionManager  trm
throws Exception
 

Initialization of the JmsManager

Parameters:
class JmsAdministration class .
boolean true for launchin the MOM inside the JOnAS server.
String url connexion that must be used as soon as we don't use the default value of a3server.xml

Definition at line 129 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.JmsManagerImpl.getConnectionFactory(), org.objectweb.jonas_jms.JmsManagerImpl.getTopicConnectionFactory(), and org.objectweb.jonas_jms.api.JmsAdministration.start().

Here is the call graph for this function:

String org.objectweb.jonas_jms.JmsManagerImpl.removeJmsDestination String  jndiName  )  throws Exception
 

Remove a Jms destination

Parameters:
String jndi name
Returns:
the destination type : "queue" or "topic"

Implements org.objectweb.jonas_jms.JmsJmxManagement.

Definition at line 415 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.api.JmsAdministration.deleteDestination().

Here is the call graph for this function:

void org.objectweb.jonas_jms.JmsManagerImpl.stop  )  throws Exception
 

Terminate the administering process

Definition at line 330 of file JmsManagerImpl.java.

References org.objectweb.jonas_jms.api.JmsAdministration.stop().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:12:08 2005 for JOnAS by  doxygen 1.3.9.1