To deploy an EJB to WebSphere

  1. Find the EJB's archive file (.jar). It is generated in the directory myproject/repos/myservice.deploy.
  2. Package the EJB's .jar file in the enterprise archive file (.ear) for your application. To do this use a jar command similar to the following:

    jar -uvf myapplication.ear myservice.jar

  3. Start WebSphere server and WebSphere Administrative Console.

    How to ...

  4. In the Administrative Console, click Applications > Install New Application on the left.
  5. Follow the instructions on the screen and specify the following:
    When asked for: Do this:
    Path to the ear file Specify your .ear file
    Deploy EJBs Check this
    JNDI name of EJB Specify any name you like, but it must match the JNDI name that other components of your application use when they refer your EJB
    Map EJB ref to an enterprise bean Specify the same JNDI name that you specified above
    Map resource refs to resources Enter eis/MFCobol_v1.0 as the JNDI name

Related Topics