| Author |
Converting EJB2.0 to 2.1 Specification.
|
Pras Tiwari
Ranch Hand
Joined: Nov 07, 2005
Posts: 185
|
|
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="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_0.xsd" 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="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" 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. Pras [ August 18, 2006: Message edited by: Prashant Tiwari ]
|
********Deserve Before You Desire********
|
 |
 |
|
|
subject: Converting EJB2.0 to 2.1 Specification.
|
|
|