Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SCA-0.90
-
None
-
None
-
Linux/JDK 1.1
-
Patch Available
Description
If you try to get a reference from a component, which resides in an another node, it doesn't work because it's not serialized correctly. For example:
public class AComponentImpl implements AComponent {
@Context
protected ComponentContext componentContext;
@Reference
protected BComponent bReference;
@Reference
protected CComponent cReference;
public String foo()
{ org.apache.tuscany.sca.core.context.CallableReferenceImpl<CComponent> dupref = (CallableReferenceImpl) cReference.getComponentReference(); return dupref.getService().foo(); }}
In the current code, i get a TransformationException, because CallableReferenceImpl is seen as a POJO. With the alleged patch i serialized it to an ObjectStream, base64code that stream, and then i create an OMElment with only a node to send over Axis. And so it works.