Embed Structured Query Language in Java (SQLJ)
statements in your applications to maximize the efficiency of transactions
with your databases. Before your applications can take advantage of
SQLJ, you must deploy the application and customize the SQLJ profiles
that are created. The application server provides functionality to
use SQLJ as the persistence mechanism for enterprise beans that use
container-managed persistence. Use the ejbdeploy tool to deploy the
application.
About this task
You can deploy SQLJ applications with the ejbdeploy tool
to deploy the enterprise application in a stand-alone environment.
Alternatively,
the application server includes enhanced SQLJ support for applications
that use container-managed persistence (CMP). The new features include:
- Deploying CMP beans during the application installation in the
application server.
- Customizing and binding SQLJ profiles with the administrative
console or scripting.
- Customizing and binding SQLJ applications again without needing
to reinstall the application.
These enhancements reduce the complexity of installing, deploying,
and customizing SQLJ applications for both container-managed and bean-managed
persistence.Read the topic on deploying SQLJ applications that use
container-managed persistence (CMP) for more information.