Pazartesi, Ekim 20, 2008

JPA NamedQuery : java.lang.IllegalStateException: Attempting to execute an operation on a closed EntityManager.

dao nuzdaki
@PersistenceContext
protected EntityManager entityManager;

satırını
@PersistenceContext(type=PersistenceContextType.EXTENDED)

protected EntityManager entityManager;

şeklinde deneyin.

Hiç yorum yok: