Discussions

EJB programming & troubleshooting: Dynamic EJB-QL

  1. Dynamic EJB-QL (5 messages)

    Hi all,

    I'm new to EJB 2.0; I can't figure out if there is a way to build dynamic EJB-QL queries (eg. run-time, not compile-time). All I've seen so far is EJB-QL queries in deployment descriptors.

    I would like to have a query-by-form functionality in my application, but see no way to dynamically constuct an EJB-QL query.

    greetings,
    Branko

    Threaded Messages (5)

  2. Dynamic EJB-QL[ Go to top ]

    As far as I know, it's not possible.
  3. Dynamic EJB-QL[ Go to top ]

    Hi,

    It is not part of the spec but Weblogic 7.0 does allow this,

    http://e-docs.bea.com/wls/docs70/ejb/cmp.html#1089703

    David
  4. Dynamic EJB-QL[ Go to top ]

    I've found something similar in the latest JBoss release. Let's just hope this feature will make it into the new version of the spec as soon as possible.
  5. If you take a look at the EJB 2.1 final draft:

    Appendix A: Features deferred to future releases

    ...

    - further extensions to EJB-QL, e.g. subqueries, multi-valued results, dynamic queries

    ...
  6. Dynamic EJB-QL set for the future...[ Go to top ]

    I have always found it interesting about how many vendor extensions to the specification people use.

    IMHO in the case of EJB-QL due to its limited nature at the moment vendor extensions seem necessary to make it useful,

    David