• 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

JBoss CMP FindBy name in JAWS

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI
i have created an CMP entity bean in my JBoss(2.4.4) deployed application. I have decided to implement a findByName( String name ) in a user bean. following the guidelines in the book i created a jaws.xml in the meta-inf directory. which looked like this.
<jaws>
<enterprise-beans>
<entity>
<ejb-name>UserImpl</ejb-name>
<finder>
<name>findByName</name>
<query>name = {0}</query>
<order>id</order>
</finder>
</entity>
</enterprise-beans>
</jaws>
And added a method into my home bean like this
public Enumeration findByName( String name )throws RemoteException , FinderException ;
that is the only two changes that i know to make but it does not work. The bean works ok and findByPrimaryKey is ok but searching on the name will not work. My only other option is to make the bean BMP. does anybody have a hint why it will not work. The data is there in the database.
Many thanks for any help in advance.
david
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic