• 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

Problem with findByXXX()

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you please post the code that populates the collection?
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Venkat,

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