• 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

Converting EJB2.0 to 2.1 Specification.

 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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="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 ]
 
I love a woman who dresses in stainless steel ... and carries tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic