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