Marcus S. Zarra wrote:

I am trying to utilize XDoclet relationships in a situation where the
entity bean has both local and remote access.

What I am trying to do is create the entity bean remotely, set up a
relationship in that bean remotely and then later access that same
relationship locally.

However, when I attempt to call setChild(ChildRemote) I get an error
from JBoss stating that I must use ChildLocal.

Do relationships only work locally?  If not, is there some trick to
getting it to work?  I set up a pair of getter/setter for both the
local and the remote and pointed them to the same foreign key.  Am I
missing something?

Thanks for any input.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


It's generally a good idea to access your CMP beans via a session bean. You can then access the session bean remotely and it in turn can access the local interface to your CMPs. You also get a slight performance improvement doing it this way.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to