• 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

EJB deployment error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using EJB2.0 for deploying an application on WebLogic 6.1. But, I am getting an error when I use nested queries inside the <ejb-ql> tag in ejb-jar.xml descriptor.
The error is something like "Could not parse EJB QL expression: SELECT OBJECT(o) from document_masterBean as o WHERE o.id IN(select u.usename from User_masterBean as u WHERE u.code = ?1))"
Can anyone please help me.
 
Ranch Hand
Posts: 498
Eclipse IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The EJB Specification fobid the use of subqueries, you can achieve this by using extensions provided by the App Server vendor, i.e. Weblogic in your case.
In JBoss, subqueries goes on the jbosscmp-jdbc.xml, in Websphere they go on ejb-jar.xml, you must read the Weblogic documentation to discover how you can make subqueries in EJB-QL
Regards,
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic