Corba Section Index | Page 3
What are the advantages and disadvantages of locating the server objects by using naming service rather than VisiBroker's OSagent.
The advantage is that you do not need to use a naming service if you use the non-standard OSAgent. The disadvantage is that it doesn't work well when you are on different subnets. You have to man...more
I want to pass a Java Object, say an Image or an Image Icon, using CORBA. How I write the IDL for it and how do I write the server code in Java for it?
You could serialize the object into a byte array; your IDL methods can pass it around as "sequence<octet>". However, you lose the language-independence of CORBA, and shipping arou...more
In an IDL file, I declare a method which has a string parameter.
In an IDL file, I declare a method which has a string parameter. When I call the method, passing a string which has only English charaters, everything is OK. When passing a string containing Chines...more
In CORBA, how do you cast an object reference to a more specific type?
This can be done by using the _narrow() method on the type that you wish to cast down to. The _narrow() method takes as an argument a reference to the object that you wish to narrow.
What is IIOP Tunneling? What are the pros and cons of this?
Tunneling usually refers to a particular ORB vendors implementation of a proxy server which is used to package IIOP into HTTP packets. This then allows IIOP traffic to pass through a company's fi...more
Where can I find a simple "Hello World" example for CORBA?
Here is one:
http://java.sun.com/j2se/1.3/docs/guide/idl/GShome.html
I want to connect to the Java naming service (tnameserv) from an Orbix application.
I want to connect to the Java naming service
(tnameserv) from an Orbix application. If I write my own
CORBA objects and connect them to the Java ORB, then I
can access them from Orbix applicatio...more
I want to send a list as a parameter with CORBA. How do I do that? How do I write it in IDL?
Use an IDL sequence:
module foo {
typedef sequence<string> str_sequence;
interface ex {
void bar(in str_sequence param1);
};
};
This would send a l...more
How can I figure out what information an IOR includes? The CORBA Specs didn't help - they were not clear enough.
It includes ALL information that your ORB may need to connect to a remote object.
The IOR contains multiple parts describing how to technically connect to the remote object. It includes informati...more
Is it possible to encrypt the communication between CORBA objects? Does something exist in the CORBA specification for this?
Yes, it is possible. CORBA specifies a security service, which provides for authentication, encryption, authorization, delegation of credentials, and logging. However, the CORBA Security Service...more
What are the threading models of CORBA? Does the ORB service each request by creating a thread? Which ORB vendors support multi-threading? How about Sun's JavaIDL ORB?
This varies. Prior to CORBA 2.2, CORBA didn't address threading at all -- the implementation of threads was left up to each vendor to implement in a vendor-specific way.
CORBA 2.2, which introdu...more
Can someone show me a simple example of how to get an object reference to an object built using Orbix 3.0.1 C++.
Can someone show me a simple example of how to
get an object reference to an object built using
Orbix 3.0.1 C++.
Sample context:
Server is running on a host named "myserv"
Object is reg...more
How does CORBA compare to RMI? to SOAP? to .NET?
It's not simple question and to completely answer this question you need good study. At first I want point you on one very good bookmark page Cetus Links. And now my answer:
CORBA - is set of st...more
I am writing some common interfaces in IDL. The question came up of whether to use ODL.
I am writing some common interfaces in IDL. The question came up of whether to use ODL. I had
never heard of ODL (Object Definition Language) until that time. Is the industry moving toward ODL ...more
Can I write a client which uses a Naming Service other than tnameserv without having to ship any libraries for another ORB?
Can I write a client which uses a Naming Service other
than tnameserv without having to ship any libraries
for another ORB?
I want to have resolve_initial_references("NameService")
retur...more