This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting EJB2.0 to 2.1 Specification.

Pras Tiwari
Ranch Hand
Posts: 186
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to convert EJB2.0 Allpication into EJB 2.1 Application type?
Is it sufficient to modify just DTD of ejb-jar.xml?
Before when I was using EJB2.0 Spec, my ejb-jar.xml DTD was as follows:-
<ejb-jar xmlns="" xmlns:xsi="" xsi:schemaLocation="" version="2.0">

Now for converting it to 2.1 Spec. I just modified my ejb-jar.xml's DTD as follows:-
<ejb-jar xmlns="" xmlns:xsi="" xsi:schemaLocation="" version="2.1">

Now I can deploy my application successfully into my App server (JBOSS4.0.3). But Problem arises when I am trying to use "GROUP BY, ORDER BY" clauses into my EJB-QL. As per EJB Specification these "GROUP BY & ORDEr BY " methods are not supported in EJB2.0 spec & these are suppoted by EJB 2.1 Spec. So I modified my ejb-jar.xml as follows to convert it from 2.0 to 2.1. But still I am not able to use these EJB-QL methods inside my EJB's. What should I do now? Is it not sufficient to just change DTD's for converting EJB 2.0 to 2.1?
Please tell me.
I stuck with my EJB application since last 3 days due to this problem only.
Please guide me.
Thank you in advance.
[ August 18, 2006: Message edited by: Prashant Tiwari ]
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic