javax.slee.nullactivity
Interface NullActivityFactory


public interface NullActivityFactory

The Null Activity Factory is used by SBBs to create new null activities.

An SBB obtains access to a NullActivityFactory object via its JNDI environment. The Null Activity Factory is bound into JNDI using the name specified by JNDI_NAME.

See Also:
NullActivity, NullActivityContextInterfaceFactory

Field Summary
static java.lang.String JNDI_NAME
          Constant declaring the JNDI name where a NullActivityFactory object is bound into an SBB's JNDI environment.
 
Method Summary
 NullActivity createNullActivity()
          Create a new null activity.
 

Field Detail

JNDI_NAME

static final java.lang.String JNDI_NAME
Constant declaring the JNDI name where a NullActivityFactory object is bound into an SBB's JNDI environment.

The value of this constant is "java:comp/env/slee/nullactivity/factory".

Since:
SLEE 1.1
See Also:
Constant Field Values
Method Detail

createNullActivity

NullActivity createNullActivity()
                                throws TransactionRequiredLocalException,
                                       FactoryException
Create a new null activity.

This method is a mandatory transactional method. The null activity will only be created if the transaction invoking this method commits successfully.

Throws:
TransactionRequiredLocalException - if this method is invoked without a valid transaction context.
FactoryException - if the null activity could not be created due to a system-level failure.


Copyright © 2008. All Rights Reserved.