|
|||||||||
| Home >> All >> gnu >> classpath >> examples >> CORBA >> SimpleCommunication >> [ communication overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
gnu.classpath.examples.CORBA.SimpleCommunication.communication
Class RequestTest

java.lang.Objectgnu.classpath.examples.CORBA.SimpleCommunication.communication.RequestTest
- public class RequestTest
- extends java.lang.Object
This code uses CORBA to call various methods of the remote object, passing data structures in both directions. It finds the server by reading the IOR.txt file that must be present in the folder, where the program has been started. The IOR.txt file is written by the server gnu.classpath.examples.CORBA.SimpleCommunication.DemoServer. The server should be reachable over Internet, unless blocked by security tools. This code is tested for interoperability with Sun Microsystems java implementation 1.4.2 (08.b03). Server, client of both can be started either on Sun's or on Classpath CORBA implementation, in any combinations. BE SURE TO START THE SERVER BEFORE STARTING THE CLIENT. Test invocations using org.omg.CORBA.Request. The methods are called by "name", like in java.lang.reflect. No need to have the local pre-compiled stub classes.
| Field Summary | |
static java.lang.String |
IOR_FILE
|
(package private) org.omg.CORBA.Object |
object
Our remote object - the invocation target. |
(package private) org.omg.CORBA.ORB |
orb
The Object Request Brocker, used for various CORBA operations. |
| Constructor Summary | |
RequestTest()
|
|
| Method Summary | |
void |
Demo()
Run all demos. |
static void |
main(java.lang.String[] args)
Prepare for work. |
void |
testHello()
Send the hello message, one way. |
void |
testParameters()
Test passing various parameters in both directions. |
void |
testSystemException()
Test catching the system exception, thrown on the remote side. |
void |
testUserException()
Test catching the user exception, thrown on the remote side. |
void |
testWideNarrowStrings()
Passes wide (UTF-16) string and narrow (ISO8859_1) string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
IOR_FILE
public static final java.lang.String IOR_FILE
- See Also:
- Constant Field Values
orb
org.omg.CORBA.ORB orb
- The Object Request Brocker, used for various CORBA operations.
object
org.omg.CORBA.Object object
- Our remote object - the invocation target.
| Constructor Detail |
RequestTest
public RequestTest()
| Method Detail |
main
public static void main(java.lang.String[] args)
- Prepare for work. Read the file IOR.txt in the current folder
and find the server using its information.
Demo
public void Demo()
- Run all demos.
testHello
public void testHello()
- Send the hello message, one way.
testParameters
public void testParameters()
throws java.lang.Exception
- Test passing various parameters in both directions.
testSystemException
public void testSystemException()
- Test catching the system exception, thrown on the remote side.
testUserException
public void testUserException()
- Test catching the user exception, thrown on the remote side.
testWideNarrowStrings
public void testWideNarrowStrings()
throws org.omg.CORBA.BAD_OPERATION
- Passes wide (UTF-16) string and narrow (ISO8859_1) string.
|
|||||||||
| Home >> All >> gnu >> classpath >> examples >> CORBA >> SimpleCommunication >> [ communication overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
gnu.classpath.examples.CORBA.SimpleCommunication.communication.RequestTest