[omniORB] Value box factory question
Jason Stelzer
jstelzer at healthmarketscience.com
Mon Jul 30 10:55:04 BST 2007
On Jul 27, 2007, at 10:41 AM, Jason Stelzer wrote:
> Hello, I have a minor problem with a custom box type in omniORB 4.1.
>
> I've an application that is written in java returning a simple pojo
> with some attributes set. Its serializable and is returning fine.
> The IDL generates correct looking C++ stubs.
>
> The problem is this. The C++ client throws an exception when it
> tries to unmarshall the return value. I believe this is because I
> need to register the value factory with the orb. I'd imagine this
> would go something like
>
> CORBA::ValueFactoryBase_var vf = new PojoFactory();
> CORBA::String_var repIdV = ...->id();
> orb->register_value_factory(repIdV.in(), vf.in());
>
>
> However, I'm somewhat confused by the generated code and the user
> docs. Section 13.4 of the user guide says this:
>
>
Well, this wound up simply me being confused about value boxes vs
value types. At this point I'm much more clear on what needs
implemented.
--
J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070730/bcb6afed/attachment.htm
More information about the omniORB-list
mailing list