About Question enthuware.oce-jpad.v6.2.404 :

Moderator: admin

Post Reply
tioola
Posts: 6
Joined: Mon Sep 23, 2013 5:19 pm
Contact:

About Question enthuware.oce-jpad.v6.2.404 :

Post by tioola »

As per section 13.6.2.5 of EJB 3.1

If the client calls without a transaction context the container throws the javax.ejb.EJBTransactionRequiredException only if business interface is a remote business interface TransactionRequiredException is throw.

The option 3 is TransactionRequiredException, but in my understanding it should be EJBTRansactionRequiredException once there is no place specifying that it is a remote call, is my understand incorrect?

Thanks

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-jpad.v6.2.404 :

Post by admin »

As per section 3.1.1 of Persistence 2.0 specification, EntityManager's remove method throws TransactionRequiredException if invoked on a container-managed entity manager of type PersistenceContextType.TRANSACTION and there is no transaction.

The persistence specification is more relevant here because we are talking about em.remove.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 38 guests