File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Converting EJB2.0 to 2.1 Specification. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Converting EJB2.0 to 2.1 Specification." Watch "Converting EJB2.0 to 2.1 Specification." New topic
Author

Converting EJB2.0 to 2.1 Specification.

Pras Tiwari
Ranch Hand

Joined: Nov 07, 2005
Posts: 186
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********
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting EJB2.0 to 2.1 Specification.