Skip to main content

ActivityContextInterface.getActivity()

2 replies [Last post]
morismael
Offline
Joined: 2008-01-06

Hi,
What is the difference between:
ServerTransaction st = ( ServerTransaction) aci.getActivity();
and
ServerTransaction st = requestEvent.getServerTransaction();

They seem to get the same result. When should one use the one or another?
Thanks.

IsmaeL

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
eduardomartins
Offline
Joined: 2005-10-10

No different when it's a jain sip 1.1 event, now if it's a 1.2 getActivity() will return a Dialog.

RequestEvent is a object from jain-sip api, there was no point in replacing it with a custom jain slee event.

morismael
Offline
Joined: 2008-01-06

Thanks for your answer.