org.objectweb.jass.as.jboss
Class JBOSSActivityIdGeneratorService
java.lang.Object
ServiceMBeanSupport
org.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
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDI_NAME
public static java.lang.String JNDI_NAME
JBOSSActivityIdGeneratorService
public JBOSSActivityIdGeneratorService()
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