This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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!