org.objectweb.jass.as.jboss
Class JBOSSActivityIdGeneratorService

java.lang.Object
  extended byServiceMBeanSupport
      extended byorg.objectweb.jass.as.jboss.JBOSSActivityIdGeneratorService
All Implemented Interfaces:
JBOSSActivityIdGeneratorServiceMBean

public class JBOSSActivityIdGeneratorService
extends ServiceMBeanSupport
implements JBOSSActivityIdGeneratorServiceMBean

MBean that creates and registers the Activity ID Generator service for the JBOSS application server.

Author:
fran Date: Feb 12, 2004 org.objectweb.jass.as.jbossActivityIdService.java
See Also:
Serialized Form

Field Summary
static java.lang.String JNDI_NAME
           
 
Constructor Summary
JBOSSActivityIdGeneratorService()
           
 
Method Summary
 java.lang.String getLastGeneratedId()
           
 java.lang.String newActivityId()
          Generates a new activity id by invoking the activity identifier generator implementation ActivityIdGenerator.
 void startService()
          Invoked when this JBOSS MBean is started.
 void stopService()
          Invoked when this JBOSS MBean is stopped.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JNDI_NAME

public static java.lang.String JNDI_NAME
Constructor Detail

JBOSSActivityIdGeneratorService

public JBOSSActivityIdGeneratorService()
Method Detail

startService

public void startService()
                  throws java.lang.Exception
Invoked when this JBOSS MBean is started.

Throws:
java.lang.Exception

stopService

public void stopService()
Invoked when this JBOSS MBean is stopped.


newActivityId

public java.lang.String newActivityId()
Generates a new activity id by invoking the activity identifier generator implementation ActivityIdGenerator.

Specified by:
newActivityId in interface JBOSSActivityIdGeneratorServiceMBean
Returns:
the last activity id created.

getLastGeneratedId

public java.lang.String getLastGeneratedId()
Specified by:
getLastGeneratedId in interface JBOSSActivityIdGeneratorServiceMBean