 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Morten Krakvik Guest
|
Posted: Sat Sep 27, 2003 2:10 pm Post subject: Return values from CORBA Objects |
|
|
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
|
Posted: Mon Sep 29, 2003 12:19 pm Post subject: Re: Return values from CORBA Objects |
|
|
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 |
|
 |
|
|
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
|
|