jQuery in Action, 3rd edition
The moose likes JBoss/WildFly and the fly likes JBOSS CMP finder methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBOSS CMP finder methods" Watch "JBOSS CMP finder methods" New topic

JBOSS CMP finder methods

teena germany

Joined: Sep 12, 2003
Posts: 1
Hi All,
I am new to JBOSS 3.2 environment and am experiencing problem in implementing the CMP2.0 beans. Though all the getter/setter methods of my CMP bean work properly, I am unable to get the finder methods to work. My client hangs when calling the finder methods of my CMP bean. Only the findByPrimaryKey is working properly. However, I have provided the ejbql for the custom finder methods.
I have also provided a sample of my ejb-jar.xml file for your reference. please let me know if I have to do any changes in ejb-jar.xml or the jbosscmp-jdbc.xml to make my code function.
<description>JBoss Employee Sample Application</description>

<query><!---probably here lies the problem-->
<![CDATA[SELECT OBJECT(e) FROM EmployeeBean AS e WHERE e.empName = ?1]]>
<!--....assembly descriptor...follows....-->
here follows the extract of my jbosscmp-jdbc.xml file




Eagerly waiting for any response.
I agree. Here's the link: http://aspose.com/file-tools
subject: JBOSS CMP finder methods
It's not a secret anymore!