org.mobicents.slee.training.example2
Class BounceSbb

java.lang.Object
  extended by org.mobicents.slee.training.example2.CommonSbb
      extended by org.mobicents.slee.training.example2.BounceSbb
All Implemented Interfaces:
javax.slee.Sbb

public abstract class BounceSbb
extends CommonSbb

BounceSbb is a Sbb representing a message bounce service. BounceSbb receives incoming MessageEvents from the underlying resource adaptor. According to the messages, it increases counter in the related activity. If the command "ANY" is received by the Sbb, BounceSbb sends a message back to the originator.

Author:
Michael Maretzke, amit bhayani

Constructor Summary
BounceSbb()
          Creates a new instance of BounceSbb
 
Method Summary
abstract  ChildSbbLocalObject getChildSbbLocalObject()
           
abstract  javax.slee.ChildRelation getChildSbbTrainingExample2()
          Relation for Welcome message SBB
 void onEndEvent(org.mobicents.slee.resource.lab.message.MessageEvent event, javax.slee.ActivityContextInterface ac)
          EventHandler method for incoming events of type "EndEvent".
 void onInitEvent(org.mobicents.slee.resource.lab.message.MessageEvent event, javax.slee.ActivityContextInterface ac)
          EventHandler method for incoming events of type "InitEvent".
abstract  void setChildSbbLocalObject(ChildSbbLocalObject childSbbLocalObject)
           
 
Methods inherited from class org.mobicents.slee.training.example2.CommonSbb
getMessageResourceAdaptorSbbInterface, getSbbContext, sbbActivate, sbbCreate, sbbExceptionThrown, sbbLoad, sbbPassivate, sbbPostCreate, sbbRemove, sbbRolledBack, sbbStore, setSbbContext, unsetSbbContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BounceSbb

public BounceSbb()
Creates a new instance of BounceSbb

Method Detail

onEndEvent

public void onEndEvent(org.mobicents.slee.resource.lab.message.MessageEvent event,
                       javax.slee.ActivityContextInterface ac)
EventHandler method for incoming events of type "EndEvent". EndEvent is defined in the deployment descriptor "sbb-jar.xml". This method is invoked by the SLEE if an event of type END is received and fired by the resource adaptor.


onInitEvent

public void onInitEvent(org.mobicents.slee.resource.lab.message.MessageEvent event,
                        javax.slee.ActivityContextInterface ac)
EventHandler method for incoming events of type "InitEvent". InitEvent is defined in the deployment descriptor "sbb-jar.xml". This method is invoked by the SLEE if an event of type INIT is received and fired by the resource adaptor.


getChildSbbTrainingExample2

public abstract javax.slee.ChildRelation getChildSbbTrainingExample2()
Relation for Welcome message SBB


setChildSbbLocalObject

public abstract void setChildSbbLocalObject(ChildSbbLocalObject childSbbLocalObject)

getChildSbbLocalObject

public abstract ChildSbbLocalObject getChildSbbLocalObject()


Copyright © 2009. All Rights Reserved.