AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Return values from CORBA Objects

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and CORBA
View previous topic :: View next topic  
Author Message
Morten Krakvik
Guest





PostPosted: Sat Sep 27, 2003 2:10 pm    Post subject: Return values from CORBA Objects Reply with quote



I'm having some problems understanding return values from CORBA
Objects.

I have an .idl file like this;

,----
Quote:
module GNOME {
module Bluetooth {

struct Device {
string name;
string bdaddr;
long deviceclass;
};
typedef sequence<Device> DeviceList;

interface Manager : Bonobo::Unknown {
void knownDevices (out DeviceList list);
void discoverDevices();
};
};
};
`----


Accessing void discoverDevices() is done by this Request:

,----
Quote:
Request reqDiscover = remote_obj._create_request(null,
"discoverDevices", null, null);
`----


which works fine, because it doesn't take any parameters and it
doesn't return anything. :-)

But I ran into problems trying to get return values from
void knownDevices(out DeviceList list).
Could anyone tell me a proper way to do this?
Any help is appreciated! Thanks.

--
Morten

Back to top
Kin C. Wong
Guest





PostPosted: Mon Sep 29, 2003 12:19 pm    Post subject: Re: Return values from CORBA Objects Reply with quote




Check out the following article for Java using CORBA. About halfway
down, there is an example for passing arrays back.

http://developer.java.sun.com/developer/technicalArticles/releases/corba/

Hope this helps.

Kin

On Sat, 27 Sep 2003 16:10:44 +0200, [email]mkrakvik-SLETT (AT) online (DOT) no[/email] (Morten
Krakvik) wrotE:

Quote:
I'm having some problems understanding return values from CORBA
Objects.

--
Morten


Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and CORBA All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.