Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Pras Tiwari
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • 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
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • 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".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic