Developing a CORBA
Client which invokes a CORBA Server using
The Dynamic Invocation Interface (DII)
Gopalan Suresh Raj
Note |
To
work with any of these samples, you will need the
following: .........................................JDK 1.2 (Java 2) .........................................The idltojava compiler |
What happens if the Java interfaces for the remote CORBA Object servers are not available at compile time? You might get a reference to a CORBA Object from a Naming Service, and not know what interface that object implements. Both the Dynamic Invocation Interface (DII) and the Dynamic Skeleton Interface (DSI) API in CORBA provide "A Dynamic Interface to a CORBA Object whose interface is not known at compile time to the client of the CORBA Object".
The Steps involved in developing a CORBA Client that invokes a CORBA Server dynamically using the Dynamic Invocation Interface are:
1. Implement your CORBA client application which uses DII to call the Server component
StockMarketClient.java |
// StockMarketClient using
DII import org.omg.CORBA.*; import org.omg.CosNaming.*; public class DIIStockMarketClient
{
// Create the method
request using the default context, the name of |
2. Compile the files and run the CORBA client
E:\MyProjects\corba\StockCorba> E:\MyProjects\corba\StockCorba>javac *.java E:\MyProjects\corba\StockCorba>java DIIStockMarketClient get_price () returned: $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. |