[jboss-user] [EJB 3.0] - Re: need help for Transaction Attribute Types
grdzeli_kaci
do-not-reply at jboss.com
Fri Aug 17 02:13:03 EDT 2007
"wolfc" wrote : Please try the following:
|
hello wolfc, i did what you say, but on flush i got this error :
| 10:08:19,946 ERROR [STDERR] javax.persistence.TransactionRequiredException: no transaction is in progress
| 10:08:19,947 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:293)
| 10:08:19,947 ERROR [STDERR] at org.jboss.ejb3.entity.ExtendedEntityManager.flush(ExtendedEntityManager.java:121)
| 10:08:19,947 ERROR [STDERR] at com.magti.businesslayer.ejb3Fasade.TestFasadeBean.comit(TestFasadeBean.java:47)
| 10:08:19,947 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 10:08:19,947 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 10:08:19,947 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 10:08:19,947 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
|
i don't know what to do any more.
hi jc7442,
anonymous wrote :
| @Resource UserTransaction ut;
| ...
| ut.begin();
| ...
| ut.commit();
|
i know bean managed transaction, i don't want it, if it is possible.
if i will not resolve this problem by container managed transaction i will choose bean managed.
Thanks all in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075079#4075079
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075079
More information about the jboss-user
mailing list