[omniORB] Java Any extraction woes

C. L. Hammond l.hammond at samsung.com
Fri Aug 12 10:04:55 BST 2005


Hi,
As an exercise, I created a new Struct with info from /proc/meminfo and
am pushing it through an EventChannel and successfully decoding it on
the receiving end using the C++ example code as a starting point.

I am now trying to create a Java Consumer but am unsure as to how to
decode the any.  It appears that I may need to use a DynAny /
DynAnyHelper.

Any recommendations are greatly appreciated,  below is the idl of the
struct

#ifndef __MEMINFO_IDL__
#define __MEMINFO_IDL__

module MemInfo
{
        struct Data
        {
                string MemTotal;
                string MemFree;
                string Buffers;
                string Cached;
                string SwapCached;
                string Active;
                string Inactive;
                string HighTotal;
                string HighFree;
                string LowTotal;
                string LowFree;
                string SwapTotal;
                string SwapFree;
        };
};

#endif




More information about the omniORB-list mailing list