WAS v8.5 > Deploy applications > Deploy EJB applications

Deploy EJB modules

  1. Assemble EJB and web modules into a Java EE application.

    Run EJBDeploy if...

    • A module has dependencies on Java 5-specific extensions, such as generics and annotations.
    • We have EJB 2.1 modules containing entity beans

    The dmgr console and wsadmin-line tool do not allow for specifying the option ejbdeploy-complianceLevel.

  2. Prepare the deployment environment.

  3. Address potential interoperability issues.

    Exceptions can occur if an EJB 3.x non-compliant appserver attempts remote method invocations on a separate EJB 3.x compliant application server.

    • javax.ejb.ConcurrentAccessException
    • javax.ejb.EJBAccessException
    • javax.ejb.EJBTransactionRequiredException
    • javax.ejb.EJBTransactionRolledbackException
    • javax.ejb.NoSuchEJBException

    To work around...

    1. Upgrade the non-compliant appserver to at least WAS v7.0.0.3.

    2. From the EJB 3.x compliant appserver

      Just like the EJB thin client jars, if an update becomes available, users must copy the ejb3exceptions.jar file again after installing the version of the WAS containing the updated version.

  4. Deploy the application.

If we specify the EJBDeploy tool be run during application installation and the installation fails with a NameNotFoundException message, ensure the input JAR or EAR file does not contain source files. Either remove the source files or include all dependent classes and resource files on the class path.

If there are source files in the input JAR or EAR file, the EJB deployment tools runs a rebuild before generating the deployment code.

If the module deploys successfully, test and debug the module.


Subtopics

  1. EJB 3.0 and EJB 3.1 deployment overview
  2. EJBDEPLOY relationships – troubleshooting tips
  3. EJB module settings


Related concepts:
EJB 3.x module packaging overview
EJB modules
Assemble web applications
Assemble EJB modules
Assemble applications
Diagnosis tools
Prepare to host applications
Deploy enterprise applications
Install enterprise application files


+

Search Tips   |   Advanced Search