Hi,
I just deploy my ear to tomee+ successfully, but it seems that when
exception is thrown (but exception is already catch and not throw to the
caller) the transaction is killed.
try {
//some thing make exception here;
} catch (Exception e) {
// Ignore
}
The exception like this:
javax.persistence.TransactionRequiredException: no transaction is in
progress
at
org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:970)
at
org.apache.openejb.persistence.JtaEntityManager.flush(JtaEntityManager.java:184)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext
.java:181)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext
.java:181)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
Could you please let me know how to config to make the transaction still
exist?
Thanks.
--
View this message in context:
http://openejb.979440.n4.nabble.com/javax-persistence-TransactionRequiredException-no-transaction-is-in-progress-tp4655161.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.