Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / CORBA / December 2005

Tip: Looking for answers? Try searching our database.

any = long sequence .... how???

Thread view: 
Sibob - 09 Dec 2005 12:26 GMT
Hello.

I would like to know, who i get a sequence of longs in one any data type?

my idl:

   typedef sequence<long> longSequence;

   struct Data
   {
string name;
       string type;
       any colValues;
   };

Thanks, regards sebastian
Bernhard Schuhmann - 09 Dec 2005 13:06 GMT
Hello sebastian

depends on the implementation language and the IDL mapping you're using.
For Java it would be

longSequenceHelper.insert(any, longSequence);

Hth

Bernhard

> Hello.
>
[quoted text clipped - 12 lines]
>
> Thanks, regards sebastian
Sibob - 09 Dec 2005 13:28 GMT
Hi Bernhard.

I tried it, but it does not work...

<code>

int myArray[] = new int[3];
org.omg.CORBA.Any myAny = orb.create_any();
       
myArray[0] = 111;
       myArray[1] = 222;
       myArray[2] = 333;

longSequenceHelper.insert(myAny, myArray);

</code>

myAny .value is 0....

What make i wrong???

thanks, sebastian

> Hello sebastian
>
[quoted text clipped - 23 lines]
> >
> > Thanks, regards sebastian
Sibob - 09 Dec 2005 14:30 GMT
Oh, jeah*

I have got it. My eclipse tell me in debug mode that the value is 0, but it
isnt it.
My client become the values... :-/

thanks Bernhard :)

> Hi Bernhard.
>
[quoted text clipped - 47 lines]
> > >
> > > Thanks, regards sebastian


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.