[omniORB] Java Any extraction woes
Alex Tingle
alex.omniorb at firetree.net
Sun Aug 14 22:32:44 BST 2005
> 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.
You could look at my Java example from omniEvents. It only extracts an integer not a struct, but perhaps it's a start...
http://cvs.sf.net/viewcvs.py/omnievents/omniEvents/examples/java/PushCons.java?rev=1.2&view=auto
-Alex
--
:: Let me solve your problems: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net +44-7901-552763
--
On Fri, 12 Aug 2005 09:04:55 -0700
"C. L. Hammond" <l.hammond at samsung.com> wrote:
>
> 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
>
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
More information about the omniORB-list
mailing list