]
Maycon Oliveira updated WFLY-3501:
----------------------------------
Priority: Minor (was: Major)
createStoredProcedureQuery - Trying to return an unknown connection:
org.jboss.jca.adapters.jdbc.jdk7.WrappedConnectionJDK7
---------------------------------------------------------------------------------------------------------------------------
Key: WFLY-3501
URL:
https://issues.jboss.org/browse/WFLY-3501
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 8.1.0.Final
Reporter: Maycon Oliveira
Assignee: Jason Greene
Priority: Minor
The exception is throw when we call a StoredProcedure on a second EJB after do anything
with EntityManager on the first EJB:
EJB1Session
@PersistenceContext
protected EntityManager em;
@EJB
protected EJB2Session session;
public void aa(){
// do ANYTHING with EntityManager
Query q = this.em.createQuery("select e from Anything e");
q.getResultList();
//call a second EJB
session.callStoredProcedureX();
}
--------------------------------
EJB2Session
@PersistenceContext
protected EntityManager em;
public void callStoredProcedureX() {
StoredProcedureQuery storedProcedure =
this.em.createStoredProcedureQuery("PROCEDURE_XXX");
storedProcedure.execute();
}