File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Problem with findByXXX() 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 "Problem with findByXXX()" Watch "Problem with findByXXX()" New topic

Problem with findByXXX()

Venkat dasari
Ranch Hand

Joined: Nov 12, 2003
Posts: 67
I have a method ejbFindByEmployeeName(String ename)in my bean. Here i am executing a query based on the name and creating a primary key for each record and adding it to the collection and returning it to the client. Now at the client side i am iterating over the collection and getting the remote component for each.

The problem is now i get only one record two times. I am unable to get the second record. Only the first one is being returned twice.

Please someone suggest me a solution.

Thanks and Regards,
Venkat Dasari

Regards,<br />Venkat Dasari<br />SCJP 1.4, SCBCD.
Phani Kumar

Joined: Feb 15, 2002
Posts: 22
Can you please post the code that populates the collection?
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
Hi Venkat,

Check this thread first, you might have the same problem:
If not, please post your code.

I think, therefore I exist -- Rene Descartes
I agree. Here's the link:
subject: Problem with findByXXX()
It's not a secret anymore!