org.objectweb.jonas.jms
Class JmsServiceImpl

java.lang.Object
  |
  +--org.objectweb.jonas.service.AbsServiceImpl
        |
        +--org.objectweb.jonas.jms.JmsServiceImpl
All Implemented Interfaces:
JmsService, JmsServiceImplMBean, Service

public class JmsServiceImpl
extends AbsServiceImpl
implements JmsService, JmsServiceImplMBean

JMS Service implementation

Author:
Philippe Coq Contributor(s): Adriana Danes: highlight configuration properties

Field Summary
static java.lang.String CLASS
           
static java.lang.String COLLOCATED
           
static java.lang.String MOM
           
static java.lang.String QUEUES
           
static java.lang.String TOPICS
           
static java.lang.String URL
           
 
Constructor Summary
JmsServiceImpl()
           
 
Method Summary
 void createJmsQueueDestination(java.lang.String jndiName)
          MBean method Create a new Jms queue destination
 void createJmsTopicDestination(java.lang.String jndiName)
          MBean method Create a new Jms topic destination
 void doInit(javax.naming.Context ctx)
          Init the Service.
 void doStart()
          Start the Service Initialization of the service is already done.
 void doStop()
          Stop the JMS Service
 java.util.Set getAllJmsQueueConnectionFactoryNames()
          MBean method return Set of Queue Connection Factory Names
 java.util.Set getAllJmsQueueDestinationNames()
          MBean method return Set of Queue Destinations Names
 java.util.Set getAllJmsTopicConnectionFactoryNames()
          MBean method return Set of Topic Connection Factory Names
 java.util.Set getAllJmsTopicDestinationNames()
          MBean method return Set of Topic Destination Names
 java.lang.Integer getCurrentNumberOfJmsQueueConnectionFactory()
          MBean method
 java.lang.Integer getCurrentNumberOfJmsQueueDestination()
          MBean method
 java.lang.Integer getCurrentNumberOfJmsTopicConnectionFactory()
          MBean method
 java.lang.Integer getCurrentNumberOfJmsTopicDestination()
          MBean method
 java.lang.String getDefaultQueueConnectionFactoryName()
          MBean method
 java.lang.String getDefaultTopicConnectionFactoryName()
          MBean method
 JmsManager getJmsManager()
           
 void removeJmsDestination(java.lang.String jndiName)
          MBean method Remove a Jms destination
 
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl
getName, init, isStarted, setName, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Field Detail

COLLOCATED

public static final java.lang.String COLLOCATED

MOM

public static final java.lang.String MOM

TOPICS

public static final java.lang.String TOPICS

QUEUES

public static final java.lang.String QUEUES

URL

public static final java.lang.String URL

CLASS

public static final java.lang.String CLASS
Constructor Detail

JmsServiceImpl

public JmsServiceImpl()
Method Detail

doInit

public void doInit(javax.naming.Context ctx)
            throws ServiceException
Init the Service. Configuration information is passed thru a Context object.
Overrides:
doInit in class AbsServiceImpl

doStart

public void doStart()
             throws ServiceException
Start the Service Initialization of the service is already done. For administrating objects we use the class specified in the jms.provider property by default we use the Joram implementation
Overrides:
doStart in class AbsServiceImpl

doStop

public void doStop()
            throws ServiceException
Stop the JMS Service
Overrides:
doStop in class AbsServiceImpl

getJmsManager

public JmsManager getJmsManager()
Specified by:
getJmsManager in interface JmsService

getCurrentNumberOfJmsTopicConnectionFactory

public java.lang.Integer getCurrentNumberOfJmsTopicConnectionFactory()
MBean method
Specified by:
getCurrentNumberOfJmsTopicConnectionFactory in interface JmsServiceImplMBean
Returns:
the current number of Topic Jms Connection Factory

getCurrentNumberOfJmsQueueConnectionFactory

public java.lang.Integer getCurrentNumberOfJmsQueueConnectionFactory()
MBean method
Specified by:
getCurrentNumberOfJmsQueueConnectionFactory in interface JmsServiceImplMBean
Returns:
the current number of Queue Jms Connection Factory

getCurrentNumberOfJmsTopicDestination

public java.lang.Integer getCurrentNumberOfJmsTopicDestination()
MBean method
Specified by:
getCurrentNumberOfJmsTopicDestination in interface JmsServiceImplMBean
Returns:
the current number of Topic Jms Destination

getCurrentNumberOfJmsQueueDestination

public java.lang.Integer getCurrentNumberOfJmsQueueDestination()
MBean method
Specified by:
getCurrentNumberOfJmsQueueDestination in interface JmsServiceImplMBean
Returns:
the current number of Queue Jms Destination

createJmsQueueDestination

public void createJmsQueueDestination(java.lang.String jndiName)
MBean method Create a new Jms queue destination
Specified by:
createJmsQueueDestination in interface JmsServiceImplMBean
Parameters:
String - jndi Name not yet implement with a remote host

createJmsTopicDestination

public void createJmsTopicDestination(java.lang.String jndiName)
MBean method Create a new Jms topic destination
Specified by:
createJmsTopicDestination in interface JmsServiceImplMBean
Parameters:
String - jndi Name not yet implement with a remote host

removeJmsDestination

public void removeJmsDestination(java.lang.String jndiName)
MBean method Remove a Jms destination
Specified by:
removeJmsDestination in interface JmsServiceImplMBean
Parameters:
String - jndi name

getAllJmsQueueDestinationNames

public java.util.Set getAllJmsQueueDestinationNames()
MBean method return Set of Queue Destinations Names
Specified by:
getAllJmsQueueDestinationNames in interface JmsServiceImplMBean

getAllJmsTopicDestinationNames

public java.util.Set getAllJmsTopicDestinationNames()
MBean method return Set of Topic Destination Names
Specified by:
getAllJmsTopicDestinationNames in interface JmsServiceImplMBean

getAllJmsQueueConnectionFactoryNames

public java.util.Set getAllJmsQueueConnectionFactoryNames()
MBean method return Set of Queue Connection Factory Names
Specified by:
getAllJmsQueueConnectionFactoryNames in interface JmsServiceImplMBean

getAllJmsTopicConnectionFactoryNames

public java.util.Set getAllJmsTopicConnectionFactoryNames()
MBean method return Set of Topic Connection Factory Names
Specified by:
getAllJmsTopicConnectionFactoryNames in interface JmsServiceImplMBean

getDefaultQueueConnectionFactoryName

public java.lang.String getDefaultQueueConnectionFactoryName()
MBean method
Specified by:
getDefaultQueueConnectionFactoryName in interface JmsServiceImplMBean
Returns:
String name of default Queue Connection factory

getDefaultTopicConnectionFactoryName

public java.lang.String getDefaultTopicConnectionFactoryName()
MBean method
Specified by:
getDefaultTopicConnectionFactoryName in interface JmsServiceImplMBean
Returns:
String name of default Topic Connection factory