• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with findByXXX()

 
Venkat dasari
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
 
Phani Kumar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please post the code that populates the collection?
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Venkat,

Check this thread first, you might have the same problem:
http://www.coderanch.com/t/315847/EJB-JEE/java/Error-Arraylist-object-returning-SessionBean
If not, please post your code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic