Deploying enterprise beans which use SQLJ as their persistence mechanism is more complicated than regular deployment. 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.
Deploying non-CMP beans
If you want to deploy non-CMP beans (session beans, BMP beans, and servlets) for existing J2EE applications, using SQLJ as the persistence mechanism, you must first port the .java file to .sqlj.