I've reviewed our code and the problem is occuring because we are defining the 
properties of an Entity as a one-to-many relationship between the Entity CMP 
bean and EntityProperty CMP beans:


  | <relationships >
  |   <ejb-relation >
  |      <ejb-relation-name>Order-OrderProperty</ejb-relation-name>
  |          <ejb-relationship-role >
  |             
<ejb-relationship-role-name>property-associated-with-order</ejb-relationship-role-name>
  |             <multiplicity>Many</multiplicity>
  |             <cascade-delete/>
  |             <relationship-role-source >
  |                <ejb-name>OrderPropertyEntity</ejb-name>
  |             </relationship-role-source>
  |             <cmr-field >
  |                <cmr-field-name>orderEntity</cmr-field-name>
  |             </cmr-field>
  |          </ejb-relationship-role>
  | 
  |          <ejb-relationship-role >
  |             
<ejb-relationship-role-name>order-has-properties</ejb-relationship-role-name>
  |             <multiplicity>One</multiplicity>
  |             <relationship-role-source >
  |                <ejb-name>OrderEntity</ejb-name>
  |             </relationship-role-source>
  |             <cmr-field >
  |                <cmr-field-name>orderProperties</cmr-field-name>
  |                <cmr-field-type>java.util.Set</cmr-field-type>
  |             </cmr-field>
  |          </ejb-relationship-role>
  |       </ejb-relation>
  |    </relationships>
  | 

Within our transaction we hold the reference to the OrderEntity bean, but not 
the OrderPropertyEntity beans, and it seems as if the latter are being flushed 
when the option-D refresh thread is triggered. That leaves the OrderEntity bean 
with references to empty OrderPropertyEntity beans.

(The JBoss documentation says that option D does not satisfy the EJB spec - is 
this why?)

Any ideas as to how we can work around this? 


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874436#3874436

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874436


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to