Hi,

"Mellouk, Mohammed" wrote:
> where can I get Code Samples on how to use the Transcation Manager,
> including Locking and
> Cashing if possible, of JBoss standalone.

EJB tries to hide transactional issues
from the bean programmer, so in EJB
code examples you will probably not
find much of this.

But the EJB container has to deal with
it in order to do it for the beans, so
you'll find example code for using the
TM in the JBoss source.
See the JBoss source files in package
org.jboss.ejb.plugins, in particular
classes TxInterceptorBMT and
TxInterceptorCMT.

Caching is not done in transaction
managers, and the current TM offloads
transactional locking to the XA
resources.
But in JBoss pessimistic EJB instance
locking is done in the instance
interceptors (like class
EntityInstanceInterceptor), and caching
is done in subclasses of class
AbstractInstanceCache.


Best Regards,

Ole Husgaard.

Reply via email to