+

Search Tips   |   Advanced Search

Use EJB query


The EJBs query language is used to specify a query over container-managed entity beans. The language is similar to structured query language (SQL). An EJB query is independent of the bean's mapping to a persistent store.

An EJB query can be used in three situations:

Finder and select queries are specified in the bean's deployment descriptor using the <ejb-ql> tag; they are compiled into SQL during deployment. Dynamic queries are included within the application code itself.

The product's EJB query language is compliant with the EJB QL defined in Sun's EJB 2.1 and EJB 3.0 specifications and has additional capabilities as listed in the topic Comparison of EJB specification and WebSphere Query Language.

 

 

Example

See the topic Example: EJB queries.


EJB query language
Use the dynamic query service