-
1. Re: <relationship-role-source> in diffrent jar files.
dsundstrom Jul 4, 2002 12:13 PM (in response to prashantpatel)The ejb specification requires that both entities be in the same ejb-jar file. You will have to merge your two ejb-jar files.
-
2. Re: <relationship-role-source> in diffrent jar files.
prashantpatel Jul 5, 2002 12:14 AM (in response to prashantpatel)what this communication entity is required by many entity
whose requirement many not be know now then all such entity have to be clubed in on ejb-jar.xml file this will make the ejb-jar.xml file to big to maintain.
Thanks.
Prashant Patel -
3. Re: <relationship-role-source> in diffrent jar files.
dsundstrom Jul 5, 2002 1:00 PM (in response to prashantpatel)Yes. It is required by the EJB specification. The spec committee is currently working on 2.1, so you could attempt to get them to allow relationships between entities in different jars.
-
4. Re: <relationship-role-source> in diffrent jar files.
jgeisler Jul 8, 2002 5:00 AM (in response to prashantpatel)You could code your relationship by hand (at least a unidirectional one). Just write a base class for all EJB's that shall have this relationship. This base class needs a CMP field with the type of your relationship-dest's PK. Then you can code a get / set method for your related EJB using JNDI. To keep things flexible the JNDI name of your relationship-dest should be submitted to the EJB using an env-entry.
-
5. Re: <relationship-role-source> in diffrent jar files.
prashantpatel Jul 8, 2002 5:48 AM (in response to prashantpatel)I will try that one.
thanks.