|
I am having the Java RMI server and c++ client. I am able to
pass value types successfully. But facing problem when I try to pass the Java
Serializable object (which reverse map to Valuetype in IDL) containing empty java
interface (which is reversed mapped to Abstract Interface in IDL). The
demarshal of the Abstractbase class in CORBA is not able to handle the demarshalling
of the Abstract interface which is initialize with valuetype at runtime. The java serializable object is public class dummyComplexType implements Serializable{ private
long complexID; private
Value complexVal; public
dummyComplexType() { super(); //
TODO Auto-generated constructor stub } public
long getComplexID() { return
complexID; } public
void setComplexID(long complexID) { this.complexID
= complexID; } public
Value getComplexVal() { return
complexVal; } public
void setComplexVal(Value complexVal) { this.complexVal
= complexVal; } } The Value above is an empty interface declared as public interface Value extends Serializable { //Empty
interface } At runtime the Value is initialized with java serializeable
object which is derived from the Value interface. Note: When I pass the Value as return type of operation then it is
properly demarshaled. On Debuging the mico I found that when Value is passed as
return type of some operations it is demarshal as valuetype but when I pass
the dummyComplexType which contains the Value then AbstractBase demarshel class
treat it as object ref. I don’t know what is reason of treating it as
object ref when actually it initialize with value type at runtime. Is it a bug
in MICO in demarshalling? Please help and guide me Tons of thanks in advance
Guminder
Singh Member (SDG) Core
Technologies Group Quark Media House pvt Ltd. A- 45 industrial
Area (Mohali) Phone: 91
-172-2299440 CONFIDENTIALITY
NOTICE |
_______________________________________________ Mico-devel mailing list [email protected] http://www.mico.org/mailman/listinfo/mico-devel

