Chapter 8 Creating J2EE Applications for BEA WebLogic


Generating EJBs and Deploying EJBs in WebLogic server

With PowerAMC, you can:

Steps To generate EJBs and deploy EJBs in a BEA WebLogic server:

  1. Choose Language→Generate Java Code...
  2. Select the main directory where you want to generate EJBs. Each package will generate a subdirectory.
  3. In the Targets tab, verify that BEA WebLogic server is selected.
  4. In the Selection tab, select the model or the packages you want to generate.
  5. In the Options tab, change the generation options for both EJB and WebLogic Server. You must specify at least a user name and a password to establish a connection to the WebLogic Server.
  6. In the Tasks tab, select "Build EJB components, Create EJB JAR, Run J2EE verifier" to create the EJB JAR file and verify that the EJBs are well defined. In addition, select "Compile container manage persistence classes, create an EJB JAR file and deploy it into WebLogic Server" to generate and compile persistence classes and deploy the EJBs in WebLogic Server.
  7. Reorganize the tasks using the up & down arrow buttons to build EJB components before deploying them in the WebLogic Server.
  8. Click on the OK button to generate and deploy EJBs.
  9. PowerAMC generates all the Java source code and deployment descriptors then shows the list of generated files. You can use an editor to view the generated files.
  10. Click on the Close button to execute the commands.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.