Hi,

I have been designing the Container Managed Relationships, and have run into
one problem; I can't seem to figure out how to turn a primary key for an
entity into the entity (local or remote).

Here is what I envision happening. The bean code, say OrderBean, calls
getLineItems(). My cmp dynamic proxy gets this message, I query the database
and create a set (or collection) of LineItem primary keys.  At this point, I
need a to convert these PKs into local interfaces (but remote will work for
now), so I can return them back to the OrderBean code. Note, this happens
inside of the bean code and not over the remote interface.

I read over the finder code and it appears that the container invoker
handles the conversion of a PK into a bean.

Do I just need to call getEntityCollection on the container invoker?

Is it safe to do this? 

Am I at risk of creating a dead lock?


thanks

-dain

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to