Skip to main content

doubt in invkoing a child method from parentSBB

1 reply [Last post]
Joined: 2008-03-21
Points: 0

Hi All,

I have a Sbb called ChildSbb extending from a CommonSbb.
ChildSbb doesnot have a localobject created.The ChildSbb has a method called "add()" .The commonSbb has a localobject created.

Now in some ParentSbb i added FirstSbb as child.Now how do i get the child sbblocalobject.I could only do the following:

ChildRelation cr = getCallBlockingSbb();
SbbLocalObject p = (SbbLocalObject) cr.create();

But what i need is to invoke the method "add()" in the ChildSbb from the parentSbb.

Thanks & Regards

Reply viewing options

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

Considering that ChildSbb has a sbb local object interface ChildSbbLocalObject defined in the sbb-jar.xml descriptor all you have to do is cast the SbbLocalObject created