Hi Steve...

EJB 1.1 is very limiting in this department, at least for CMP. You can 
create a 1 <-> 1 relationship between two EBs by having a field in each for 
the others remote interface, which will be serialized into a data field for 
the EBs table. There is no support (at least in the 1.1 spec) for 1 <-> n 
or n <-> m relationships. Many servers offer this as a server-specific 
enhancement, and I'm not sure if jBoss does or not with JAWS (I don't think 
so but will be corrected if I am mistaken).

EJB 2.0 CMP supports this fully, of course. For an EJB PFD1 plugin for 
jBoss that provides EJB 2.0 PFD1 CMP capability, check out:

http://www.mvcsoft.com

Of course, you can use BMP and support any relationships you choose to code.

Jim


--On Tuesday, May 01, 2001 11:00 AM -0700 Steve Zhang 
<[EMAIL PROTECTED]> wrote:

> Hi, folks:
> how I can create relationships between two CMP entity beans
> (voucher_master,voucher_details)
> I am using java j2sdkee1.2 that might supports EJB 1.1
> whether it is possible in EJB1.1 or I have to move towards EJB2.0
> if there is an alternative way in EJB1.1 than plaese tell me.
>
>
> Any idea will be appreciated
>
> Thanks in advance
>
> Best Wishes
>
> Steve Zhang
> Software Developer
> http://www.ensemble-systems.com
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



********************************************
I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


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

Reply via email to