rgudepu
unread,Aug 29, 2008, 12:19:10 PM8/29/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mobicents-public
While getting an activity context interface in an SBB, I get a
TransactionRequiredLocalException. I know that this exception occurs
when a mandatory transaction method is invoked without a valid
transaction context.
Here is the scenario I have:
parentSBB receives SIP events with custom messages wrapped in SIP
INFO
parentSBB invokes method call childSBB by passing custom Event.
childSBB interacts with a custom RA
RA creates the activity and returns it back to childSBB
When childSBB tries to create the Activity Context Interface, I get
the exception.
Isn't a new transaction context created by SLEE when the initial event
arrives in the SBB ? How can I get rid of this exception ?
this is what I have in my sbb code
staMonitoringAci =
cstaAciFactory.getActivityContextInterface(cstaMonitoringActivity);
and in the cstaAcifactory implementation I have
public ActivityContextInterface getActivityContextInterface(
CstaMonitoringActivity acivity) throws NullPointerException,
UnrecognizedActivityException, FactoryException {
ActivityContextInterface acii = null;
if (acivity == null)
throw new NullPointerException("=====RECEIVED NULL IN ACIF=====");
try{
acii = new ActivityContextInterfaceImpl(this.serviceContainer,
this.factory.getActivityContext(
new SleeActivityHandle(raEntityName,
((CstaMonitoringActivityImpl)acivity).getHandle(),
serviceContainer))
.getActivityContextId());
}
catch(Exception e){
logger.warn("Exception occured while getting activity context
interface");
e.printStackTrace();
}
return acii;
}