Howdy,

    A couple of weeks ago I was watching the thread about wrapping entity
beans with session beans but I had a couple more questions.  I am very new
to EJB so I 'll try to explain my perdicament as best as I can. Say I have a
collection of People objects that I need to be abale to sort and query by
state for an example.  I came up with the following modeling scenarios but
can't seem to decide which path to take.

1 - Use BMP for the PersonBean and implement several finder methods,
      findPersonById(  String id )
      findPersonById(  String id, String sortBy )
      findPersonByState(  String State, String sortBy )
This method seems straight forward but requires a lot more coding(JDBC) and
wouldn't take advantage of CMP caching

2 - CMP PersonBean with a SessionBean that wraps it.  The SessionBean would
perform all of the necessary quering and sorting.

3 - CollectionBeans - Have a PersonCollection that was an entity bean and
perform all of the sorting/quering on the client.
This seems like ti would increase the amount of remote method calls.

I seem to be missing some fundamental concepts and any suggestions or advice
would be appreciated.

Thanks
    Rick

_________________________________
Rick Gibbs
earthcars.com, Inc.
[EMAIL PROTECTED]
http://earthcars.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to