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 findAll methods 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 "findAll methods " Watch "findAll methods " New topic

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.
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.
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:
subject: findAll methods
Similar Threads
problem in bmp deployment
ejb finder question
How to Specify Transaction Attributes for a method
EJB findall method does not find persisted objects