How do you deploy EJB components inside the iPlanet Application Server?

Nicholas Whitehead

The iPlanet deployment tool, is in my opinion, the simplest way to deploy EJBs. However, for a more flexible and faster way using command line, the process is the following:
Example assumes bean called Foo

  1. Compile your source files: Foo.java, FooHome.java,
  2. 2. Generate the stubs using ejbc.exe. The format is: usage (typical): EJBC <options> <home> <remote> <impl>
    usage (RMIC mode): EJBC <options> -rmic <remote>
    options:
    -sl Compile as stateless session bean
    -sf Compile as stateful session bean
    -cmp Compile as CMP entity bean
    -iiop Generate additional CORBA classes
    -gs Generate java source files
    -d <dir> Output directory
    -help Show this message
    -rmic Generate RMIC code (see usage)
    -cp <classpath> Set classpath
    -javaccp <classpath> Prefix to javac classpath

  3. Place your files and the compiled stubs in a directory along with the XML descriptors in a Jar compliant directory structure.
  4. Generate a jar file (Foo.jar) that contains the descriptors, the stubs, your class files and the manifest.
  5. Execute ejbreg as follows: ejbreg Foo.jar


This will register the bean. You will still need to make sure that the jar file is in iPlanet's classpath (kregedit for NT, edit kjs in Unix)

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact