Search This Blog

Re: [mobicents-public] Distinguishing events from multiple RA entities in a service

There is no way to know what RA Entity the entity comes. Anyway I'm
not sure why exactly one needs to know exactly the RA entity it comes,
after all it's just a RA Entity link name, all the data needed for
event processing should be in the event and/or activity, if it's not
than it is an issue with the RA Type.

-- Eduardo
..............................................
http://emmartins.blogspot.com
http://redhat.com/solutions/telco

2011/3/28 Vilius Panevėžys <vilius@elitnet.lt>:
> When a service has multiple resource adaptor entity bindings, sometimes
> there's the need to distinguish the particular entity that delivered an
> event.
>
> There are a couple of RA-implementation-specific methods for that in our
> case one of which involves exposing implementation classes to SBB, which is
> not clean and I always prefer doing things the standard and recommended way.
>
> One method that should work according to JSLEE is to get the activity from
> event, then iterate through ACIFs of all bound RA entities invoking
> getActivityContextInterface(activity). The activity belongs to the entity,
> which returned non-null ACI. Is this good performance-wise? Are there any
> superior methods?
>
>
> TIA,
> --
> Vilius Panevėžys
> Elitnet
>