• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WL QL and EJB QL

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic