aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes JBoss CMP FindBy name  in JAWS Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "JBoss CMP FindBy name  in JAWS" Watch "JBoss CMP FindBy name  in JAWS" New topic
Author

JBoss CMP FindBy name in JAWS

David Rocks
Ranch Hand

Joined: Apr 24, 2001
Posts: 160
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JBoss CMP FindBy name in JAWS
 
Similar Threads
Jboss 3.0.4 CMP2 with Oracle 8.1.6
Issue in CMR entity bean
JBOSS CMP finder methods
CMR configuration confusion
jaws.xml configuration not loading for cmp entity beans