I am confused while reading the WebLogic 6.0 documentaion regarding using CMP WLQL (for
EJB 1.1) and EJBQL (for EJB 2.0)in the deployment descriptors. For example:
This finder method signature in EJBHome returns all EJBs with the balance attribute greater than the balanceGreaterThan parameter:
public Enumeration findBigAccounts(double balanceGreaterThan) throws FinderException, RemoteException;
and in the weblogic-cmp-rdbms-jar.xml, I define:
<finde-list>
<finder>
<method-name>findBigAccounts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
<finder-query>
<![CDATA[> balance ?0]]>
</finder-query>
</finder>
</finder-list>
Question 1: Do I have to define something in the ejb-jar.xml? If yes, what is the correct specification in the ejb-jar.xml for this particular example?
Then the WLS6.0 gives an example of using EJB QL. I understand that EJB QL strings has to be defined in ejb-jar.xml:
<query>
<query-method>
<method-name>findBigAccounts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[WHERE balance > ?1]]>
</ejb-ql>
</query>
Question 2: Do I have to define anything in the weblogic-cmp-rdbms-jar.xml? If yes, what is the correct specification in the weblogic-cmp-rdbms-jar.xml for this particular example?