Oracle8i Enterprise JavaBeans and CORBA Developer's Guide Release 8.1.5 A64683-01 |
|
This section describes special-purpose tools.
In the current JServer Enterprise JavaBeans implementation, EJBs communicate with clients by RMI-over-IIOP. This presents a difficulty for a CORBA client that wants to pass an object to an EJB for the EJB to invoke (call back) because the CORBA transport is IIOP, not RMI-over-IIOP. The CORBA client needs to pass the EJB an object the EJB can invoke with RMI-over-IIOP. The java2rmi_iiop
tool generates the stubs, skeletons, and other classes a client or server needs to make an object that is remotely invocable by an EJB. (java2rmi_iiop
is the analog of the VisiBroker for Java java2iiop
tool, except that it expects interfaces that extend java.rmi.Remote
rather than org.omg.CORBA.Object
)
The Java interface definitions must follow the RMI spec:
java.rmi.Remote
java.rmi.RemoteException
java2rmi_iiop [options] <file>.java ... [-no_bind] [-no_comments] [-no_examples] [-no_tie] [-root_dir <directory>] [-verbose] [-version] [-W <number>] [-wide]
Table 6-20 summarizes the java2rmi_iiop
arguments.
Generate RMI-over-IIOP class files for an RMI interface:
java2rmi_iiop Dictionary.java
Some aspects of the Oracle8 i ORB are governed by properties it reads when a new session running the ORB starts. You can change these properties with the modifyprops
tool. Developers should change ORB properties only when Oracle technical support provides instructions to do so.
modifyprops {-u | -user} <user/password@<database> [options] {<key> <value> [,<key> <value>] ... | <key> -delete} [{-o | -oci8}] [{-t | -thin}]
Table 6-21 summarizes the modifyprops
arguments.
Argument | Description |
---|---|
|
Specifies a user, password, and optional database connect string. See "user" for details. |
|
Directs |
|
Directs |
<key> <value> |
Oracle technical support will advise you of the values to enter for |
The permissible forms of @<database>
depend on whether you specify -oci8
or -thin
; -oci8
is the default.
-oci8
: @<database>
is optional. If you do not specify, then modifyprops
uses the user's default database. If specified, then <database>
can be a TNS name or a Net8 name-value list.
-thin
: @<database>
is required. The format is <host>:<lport>:<SID>
.