• Post Reply Bookmark Topic Watch Topic
  • New Topic

c++ access

 
bhagya modukuri
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
i have an application in java i want to access data present in c++(in a different machine)through corba.what must i do.
 
Mark Savory
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to create a distributed object(via CORBA) in the C++ application that exposes the data that you're interested in. On the Java side, you need to connect to this distributed object using a client stub.
 
bhagya modukuri
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
thanks about that.must i write idl for both java and c++ programs
 
Mark Savory
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You write one idl that defines the interface for accessing the C++ application. You use a idl-to-java compiler to generate the client stubs for Java and a idl-to-C++ compiler to generate the server skeletons for C++. I've used the idl-to-java compiler, but I've never used to idl-to-C++ compiler.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!