0 Replies Latest reply on Nov 7, 2011 12:18 AM by newbee07

    multiple entity managers

    newbee07 Newbie

      We have an EJB jar and a war where we use conversation scoped entity managers for each conversation. We use SMPC with hibernate as our delegate.

      We are having an issue with deleting an entity. Where we have two conversations with two conversatin scoped entity managers em1 and em2 holding the same entity. And when em2 deletes/flushes the entity, still em1 is not dirty.

      We check the dirtyness via the below code

      Session session = (Session) em.getDelegate();
      boolean isDirty = session.isDirty();

      Any Help is appreciated.