B.5. deployejb

You use deployejb to load Enterprise JavaBeans into an Oracle database. It is invoked from the command line using the following syntax:

deployejb -user user_name
-password password -service iiop_URL
 -descriptor descriptor_file -temp temp_directory JAR_file [option_list]

iiop_URL := sess_iiop://host_name:port:sid

The syntax elements are as follows:

user_name

The username that you want deployejb to use when connecting to the database.

password

The password that goes along with the username that you supply.

iiop_URL

The URL for the Internet Inter-Orb Protocol (IIOP). The IIOP service is used to communicate with the database when loading EJBs. You can get this URL from your DBA, and it has the following components:

host_name

The name of the machine on which the database is running; for example, localhost.

port

The port number for the IIOP listener. 2481 is the default IIOP listener port created when the Oracle database software is installed.

sid

The database SID; for example, ORCL.

descriptor_file

The file containing the EJB deployment descriptor.

temp_directory

A temporary directory used to hold intermediate files that deployejb creates when loading EJBs.

JAR_file

A JAR file containing the Java class files for the EJB.

option_list

A list of options separated by space characters. Table B-5 contains the list of options that you can use.

Table B-5. deployejb options
Option Description Default
-addclasspath dir_list Specifies a ...

Get Java Programming with Oracle SQLJ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.