0 Replies Latest reply on Nov 7, 2011 6:56 PM by newbee07

    jboss seam hibernate Multiple entity managers

    newbee07 Newbie

      I posted the same Question in seam forum but there was no response. So thought I could try my question here.


      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. We use jboss 5.1.0.GA and seam 2.2.0. I will provide further info or code if required.