Share object throught SBB instances

21 views
Skip to first unread message

Remus

unread,
Oct 5, 2012, 6:26:03 AM10/5/12
to mobicent...@googlegroups.com
Hello,

I have a list of objects that I want to share among all SBB instances of a SBB entity, but I don`t want to make it static. Is it another way to do so? By using some king of Activity object to put the List on it, and getting it everytime an event is processed?
Please provide some help.

Remus

Eduardo Martins

unread,
Oct 5, 2012, 7:00:42 AM10/5/12
to mobicent...@googlegroups.com
Retrieve/build it on setSbbContext(), this will ensure every Sbb object has it. 

-- E


Ishmael Makitla

unread,
Oct 5, 2012, 7:09:58 AM10/5/12
to mobicent...@googlegroups.com
Hi Remus,
Are you looking for something like attribute-sharing perhaps? Please look at the Attribute Sharing stuff in the specification and see if that's not something you could use - the "shared attribute" could then become the said List of objects. In this case you'll use SBB-Activity-Context-Interface -

In my application I have used premitive types (bool) - but I am sure the logic is the same even for things like Lists, etc.


Ishmael

Remus

unread,
Oct 5, 2012, 7:12:25 AM10/5/12
to mobicent...@googlegroups.com
Hello Eduardo,

I have already tested this alternative and I understand that it doesn`t provide the functionality I need. I want the same ArrayList object to be accessed by all SBB instances. If I put it in the setSbbContext() I ensure that every SBB instance has an ArrayList object, but not the same one. To be more clear: I have want to make a service which makes load balancing for several routes, using SS7 stack. So I have in the SBB an ArrayList<Route> which is modifying with every processed request ( IDP package ). And this ArrayList<Route> has to be seen by all the instances (not 1 object/instance but 1 object/all instances).
Please guide me with this problem.

Best regards,
Remus

Eduardo Martins

unread,
Oct 5, 2012, 7:21:31 AM10/5/12
to mobicent...@googlegroups.com
I see, why don't you want to make it static?

Alternatives are making a null AC and bind it to a name using the ACI Naming Facility, or make a simple Resource Adaptor (events and activities are not mandatory, but give you extra functionality where you can, for instance, warn SBB entities about updates).

-- E

Reply all
Reply to author
Forward
0 new messages