This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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: 551
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: 551
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
 
GeeCON Prague 2014
 
subject: how to use return value of EJBFind method - I mean the collection