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 how to convert EJB2.0 to EJB2.1??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to convert EJB2.0 to EJB2.1???" Watch "how to convert EJB2.0 to EJB2.1???" New topic
Author

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

Pras Tiwari
Ranch Hand

Joined: Nov 07, 2005
Posts: 186
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


********Deserve Before You Desire********
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
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".


42
 
GeeCON Prague 2014
 
subject: how to convert EJB2.0 to EJB2.1???