|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectConnection
public class Connection
Establishes a connection to the CORBA server RockFactory object.
| Constructor Summary | |
|---|---|
Connection()
Class initializer. |
|
| Method Summary | |
|---|---|
org.omg.CORBA.Object |
getObjectReference(org.omg.CORBA.ORB orb,
org.omg.CosNaming.NameComponent[] name)
Obtain a generic object reference from the CORBA nameserver. |
org.omg.CORBA.ORB |
getORB(java.applet.Applet myapplet)
Obtains the Object Request Broker for the Applet. |
org.omg.CORBA.ORB |
getORB(java.lang.String[] args,
java.util.Properties props)
Obtains the Object Request Broker for the standalone application. |
rock.RockFactory |
getRockFactory(org.omg.CORBA.ORB orb)
Obtain a RockFactory object reference from the CORBA nameserver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Connection()
| Method Detail |
|---|
public org.omg.CORBA.ORB getORB(java.applet.Applet myapplet)
myapplet - Applet instance.
public org.omg.CORBA.ORB getORB(java.lang.String[] args,
java.util.Properties props)
args - Command line arguments.props - Properties defined for ORB initialization call. Two properties must be set:
org.omg.CORBA.ORBInitialPort to the CORBA nameserver port number (usually 2809) and
org.omg.CORBA.ORBInitialHost to the IP address of the CORBA nameServer.
public org.omg.CORBA.Object getObjectReference(org.omg.CORBA.ORB orb,
org.omg.CosNaming.NameComponent[] name)
throws java.lang.Exception
orb - ORB reference retuned from getORB.name - Description of CORBA server object.
java.lang.Exception - CORBA connection error. Description output to System.err.
public rock.RockFactory getRockFactory(org.omg.CORBA.ORB orb)
throws java.lang.Exception
orb - ORB reference retuned from getORB.
java.lang.Exception - CORBA connection error. Description output to System.err.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||