This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes findAll methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "findAll methods " Watch "findAll methods " New topic
Author

findAll methods

Ram Pra
Ranch Hand

Joined: Feb 06, 2001
Posts: 37
What are all the reasons for which a findAll method returns a 0 collection, we are using JRun4 and the findBy primary key works fine where as all the findAll methods return a collection of size 0.
Thanks,
Ram Pra
Eduard Manas
Ranch Hand

Joined: May 12, 2002
Posts: 69
I assume you mean that it returns an empty collection.
When a finder method returns an empty collection, and it doesn't throw any exception (either FinderException or RemoteException), it means that either it has not found any matches in the database or the SQL query of the finder method is wrong.
Eduard
Ram Pra
Ranch Hand

Joined: Feb 06, 2001
Posts: 37
Thank you,
That was a problem with the JRun server, once I installed their patch findAll methods started working in a normal way
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: findAll methods
 
Similar Threads
collection
How to Specify Transaction Attributes for a method
ejb finder question
EJB findall method does not find persisted objects
problem in bmp deployment