• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

how to convert EJB2.0 to EJB2.1???

 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have completed my CMP-EJB application using 2.0 Spec. It is running fine on my application server JBOSS4.0.3. NOw as 2.0 Specification of EJB, EJB QL does not support some aggregate functions in Querirs like "GROUP BY", nut these are supported in EJB2.1 Specifications. So how should I convert my current 2.0 bean version to EJB2.1 Spec??? I tried it with following by changing DTD of ejb-jar.xml as follows:-
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>

<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 my application deploys successfully into container. But still I am not able to use aggregate functions like Group by in my EJB QL.
Where is the problem??
Please help me.
Thank you in advance.
Pras
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you'll almost certainly need to change more config settings. Check for any place where you see "2.0" in one of the config files for the application, any of those may need changing to "2.1".
 
reply
    Bookmark Topic Watch Topic
  • New Topic