Developing a CORBA
Client
Gopalan Suresh Raj
Note |
To
work with any of these samples, you will need the
following: .........................................JDK 1.2 (Java 2) .........................................The idltojava compiler |
The Steps involved in developing a CORBA Client are:
1. Implement your CORBA client application
StockMarketClient.java |
/** * StockMarketClient */ import org.omg.CORBA.*; // All CORBA applications need these classes. import org.omg.CosNaming.*; // Client will use the naming service import SimpleStocks.*; // The package containing our stubs. public class StockMarketClient
{
//
Resolve the object reference in naming |
2. Compile the files and run the CORBA client
E:\MyProjects\corba\StockCorba> E:\MyProjects\corba\StockCorba>javac *.java E:\MyProjects\corba\StockCorba>java StockMarketClient Price of MY COMPANY is $159.2 E:\MyProjects\corba\StockCorba> |
About the Author... |
Gopalan Suresh Raj is a Software Architect, Developer and an active Author. He is contributing author to a couple of books "Enterprise Java Computing-Applications and Architecture" (Cambridge University Press, June '99) and "The Awesome Power of JavaBeans" (Manning, July'98). His expertise spans enterprise component architectures and distributed object computing. Visit him at his Web Cornucopia© site (http://www.execpc.com/~gopalan) or mail him at gopalan@execpc.com. |
This site was developed and is maintained by Gopalan Suresh Raj This page has been visited |
Last Updated : Dec 19, '98 |
Copyright (c) 1997-2000, Gopalan Suresh Raj - All rights reserved. Terms of use. |
All products and companies mentioned at this site are trademarks of their respective owners. |