Running the ejbdeploy command
Running the ejbdeploy command to generate deployment code is a required step in deploying enterprise beans. As part of the generation of deployment code, one or more SQLJ customization profiles will be created. You can then run the DB2 SQLJ profile customizer against the customization profiles to produce static SQL in the database.
Follow these steps:
- Open a command prompt.
- Run the ejbdeploy command:
For example: ejbdeploy in.ear tmp out.ear -sqlj -cp "C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;"
This generates a EAR file called out.ear and an Ant script called out.ear.xml.
There will be at least one customization profile for each EJB JAR file. It is located in one of the subdirectories below the websphere_deploy directory, for example FS_TopDown1_SJProfile0.ser.
Note: If you used the workbench to create the mapping and had specified in the mapping editor to use SQLJ, you do not need to pass the -sqlj option to the ejbdeploy command.
Parent topic
EJB deployment tool either from the workbench or from the command line.">Running the EJB deployment tool
Related tasks
EJB deployment tool provides a command-line interface that you can use to generate enterprise bean deployment code. Before you can successfully run your enterprise beans on either a test or production server, you need to generate deployment code for the enterprise beans.">Generating EJB deployment code from the command line
Related reference
The ejbdeploy command