Chapter 9 Creating J2EE Applications for IBM WebSphere 5.0


Defining EJB-QL

You can define EJB-QL for finders and ejbSelect methods.

For CMP EJBs, finders are only defined in remote home and local home interfaces. ejbSelect methods are defined in bean classes.

Steps To define EJB-QL:

  1. Create a finder method or an ejbSelect method in the remote home interface or the local home interface.
  2. Open the property sheet of the finder method or the ejbSelect method.
  3. Define the list of parameters of the method.
  4. Click on the Implementation tab, and select the EJB-QL sub-tab:
  5. You can type EJB-QL on this tab.

 


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