Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

CORBA Execution Procedure Needed

  Asked By: Darcy    Date: Jun 04    Category: Java    Views: 886

I am new to corba, Trying to run two programs

1. Java Server and Java Client using IDL
2. C++ Server and Java Client.
On the both the cases i tried the following steps,

idlj Hello.idl

This created a folder named HelloApp with few files.
Then, i compiled it with

omniidl -bcxx Hello.idl

This created me 2 c++ files with extension .cc,

I am using Corba,
with Server as C++ and Client as java.
What should be my next step please explain me.
I am using j2sdk 1.4 and wht environment setting should i do ?
i am a new to CORBA Please help me.



3 Answers Found

Answer #1    Answered By: Hattie Howard     Answered On: Jun 04

apparently not much left for you. Use Java compiler to generate a stub code for your client  and C++ compiler to generate skeleton for the server. Compile both server  and clients with generated code and you should be good to go.

note: some data types have problems with different orbs such as string in 64 bit OS. refer to documentation of both orb and known interoperability issues

Answer #2    Answered By: Adanalie Garcia     Answered On: Jun 04

can u plz explain  in more details how those java  client stub code and c++ server  skeleton be generated, and how to use them to interact with each other after that.

iam also new to corba  and want more explanation plz, thx in advance, bye bye.

Answer #3    Answered By: Ginger Snyder     Answered On: Jun 04

for java  client i.e.

idlj -fclient My.idl to generate the stub code

and use your C++ compiler to generate skeleton from the same idl file (look into its documentation)

compile the java code + stub and link it
compile the C++ code and skeleton and link it

run the orb and your client  should be able to connect to the server

I leave th erest for yourself to dig out as if server  objects are accessed through URI or nameservice, how to bind them, etc. If you need more information of exact step by step, search the Net for more detailed information + the documentation of your orbs.

Didn't find what you were looking for? Find more on CORBA Execution Procedure Needed Or get search suggestion and latest updates.