B
Big Jim
Hi folks,
I have a 1 <--> N relationship between A and B.
In a client (a servlet) the following works fine:
a = AHome.create(...)
b = BHome.create(....a)
in the post create of B I do setA(a)
However I want to do this in the client:
a = AHome.create(....)
then in the post create of A do b = BHome.create(....a)
i.e. I want to create the relationships in the create of the "master" bean
so that the client only has to create this single bean.
However, this fails with :
EJB Exception:: java.lang.IllegalArgumentException: [EJB:010133]Illegal
attempt to assign a removed bean to a CMR field. The EJB with primary key
'188' has been removed and cannot be assigned to this CMR field.
Is there some way I can do this? (WLS 8.1)
Cheers.
I have a 1 <--> N relationship between A and B.
In a client (a servlet) the following works fine:
a = AHome.create(...)
b = BHome.create(....a)
in the post create of B I do setA(a)
However I want to do this in the client:
a = AHome.create(....)
then in the post create of A do b = BHome.create(....a)
i.e. I want to create the relationships in the create of the "master" bean
so that the client only has to create this single bean.
However, this fails with :
EJB Exception:: java.lang.IllegalArgumentException: [EJB:010133]Illegal
attempt to assign a removed bean to a CMR field. The EJB with primary key
'188' has been removed and cannot be assigned to this CMR field.
Is there some way I can do this? (WLS 8.1)
Cheers.