How can one resolve a collection of primary keys into a collection of ejb's efficiently? I know that you can use the findByPrimaryKey method, but that seems to cause expensive lookups.
Use a finder.
Investigate jboss's dynamicQL if you don't know
how many keys you will have to find.