| In testing, am entityManager.find is throwing a javax.persistence.PersistenceException if JTA transaction is marked rollback only, which causes IronJacamar to throw a "javax.resource.ResourceException: IJ000459: Transaction is not active". If we cannot find the specified entity because the database connection couldn't be obtained, I think that we should return null.
"javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection", due to IJ throwing "javax.resource.ResourceException: IJ000459: Transaction is not active: tx=Local transaction (delegate=TransactionImple < ac, BasicAction: 0:ffffac10230f:-18a11fb8:5acccf53:b64 status: ActionStatus.ABORT_ONLY >, owner=Local transaction context for provider JBoss JTA transaction provider)".
|