Hi devs,

I am a tuscany user in Apache PhotArk and I have an unexpected issue with my
two services and I tried to resolve this many times, but couldn't figure out
a way.

I have implemented two working tuscany SCA components named,
FacebookFriendFinder
 and FaceRecognitionService.
I use the service FaceRecognitionService inside the service
FacebookFriendFinder.

Following is a kind of a p*seudo code* code to explain my situation.

*In FacebookFriendFinder Impl class *


Photo processFBFriends() {
...
...

Photo p = FaceRecognitionService.recognize("file");  // call the recognize
method in the service, FaceRecognitionService.
*--- program does not return to this line, it terminates*

}


*In FaceRecognitionService impl class*

public Photo recognize(String s) {
...
...
Photo p = someAPI.recognize();
*// system.out(p) --    When I do a system.print to the Photo p before the
return statement, it prints the expected "p".*

return p;
}

I am confused with this. Though "p" prints and is available just before the
return statement in the class  FaceRecognitionService it doesn't pass to its
parent method any how. *When I changed the return types to String from
Photo, it works fine and return the string. *

So is there a problem in interacting among two tuscany SCA service
components when dealing with custom objects like (org.face4j.Photo) other
than java native ones ?
It will be great if I can get some idea to resolve this issue.


Thanks
-- 
Subash Chaturanga
Department of Computer Science & Engineering
University of Moratuwa
Sri Lanka

Blog -  http://subashsdm.blogspot.com/
Twitter - http://twitter.com/subash89

Reply via email to