File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes how to use return value of EJBFind method - I mean the collection 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 "how to use return value of EJBFind method - I mean the collection" Watch "how to use return value of EJBFind method - I mean the collection" New topic
Author

how to use return value of EJBFind method - I mean the collection

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 550
Hi
Thank you for reading my post.
all ejbFind methods return a collection or one ejb local ,
I do not know how to use that collection ?
is it correct to use toArray() and get an array of ejbLocal from the collection ?
or it is memory /resource consumer and we should use other methods ?
how i can access items of that collection ?

Thank you
Annie Smith
Ranch Hand

Joined: Mar 05, 2005
Posts: 172
Originally posted by raminaa niilian:
Hi
Thank you for reading my post.
all ejbFind methods return a collection or one ejb local ,
I do not know how to use that collection ?


I think you should be reading this:
http://java.sun.com/docs/books/tutorial/collections/

(unless I misunderstood the question completely!)


Cheers!<br /><b>Annie</b>
raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 550
Thank you.
One of my question was about using Collection as i did not use them before
another question was about Using DTO pattern,
which i found some very useful reference for them :
http://www.oracle.com/technology/sample_code/tech/java/j2ee/designpattern/index.html

and
http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html

which i found more expressive .


Thank you again for collection link
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to use return value of EJBFind method - I mean the collection
 
Similar Threads
Regarding Ejb Select method
find & Select
Entity Bean instances when mapped to a database table
ejbHome method
ejbFind methods