If I have a one-to-many relationship for UserEJB and LogonEJB, I can accomplish this with CMP2.0 using relationships and local interface for LogonEJB.
Can I still create a remote interface for LogonEJB so that I can search for something like "find any logon password with abcde".
I guess what I am asking is, can I create:
- a local interface for LogonEJB so that the container can maintain the one-to-many relationship
- a remote interface for LogonEJB so that I can do a search without involving the UserEJB.
Or am I totally confused?
Yes. You can have both a remote and local interface to an entity (they are just interfaces after all). I suggest that you pickup a book on EJB 2.0 or read the spec.