What do you mean by demarcation? Explain the types of demarcation

What do you mean by demarcation? Explain the types of demarcation – declarative and programmatic demarcation.

Demarcation specifies a limit for a bean managed transaction.

Declarative Demarcation
Declarative transaction demarcation is also known as Container-Managed Transaction. The container demarcates different transactions as per the requirements specified by the application assembler in deployment descriptor. These instructions are called as transaction attributes.

Programmatic Demarcation
Programmatic Demarcation can also called as Bean-Managed Transaction. The bean code that demarcates using the javax.transaction.UserTransactijon interface.

The resources are accessed between javax.transaction.UserTransaction.begin() and javax.transaction.UserTransaction.commit(). These access makes the part of the transaction. The resource and resource manager declared in the deployment descriptor.

What do you mean by demarcation? Explain the types of demarcation – declarative and programmatic demarcation.

Demarcation specifies a limit for a bean managed transaction, i.e. once a transaction begins, it ends with either commit or abort the key points of who issues begin and who issues commit or abort is called demarcating transactional boundaries.

Declarative Demarcation
Declarative transaction demarcation is also known as Container-Managed Transaction. The container demarcates different transactions as per the requirements specified by the application assembler in deployment descriptor. These instructions are called as transaction attributes.

Programmatic Demarcation
Programmatic Demarcation can also be called as Bean-Managed Transaction, the bean code that demarcates using the javax.transaction.UserTransaction interface.

The resources are accessed between javax.transaction.UserTransaction.begin() and javax.transaction.UserTransaction.commit(). This access makes the part of the transaction. The resource and resource manager declared in the deployment descriptor.
Transactional attributes that the EJB supports
Transactional attributes that the EJB supports - Required: This is the default transaction attribute that ensures the methods are invoked within Java Transaction API transaction context...
20 JBOSS Interview Questions and Answers
JBOSS interview questions and answers for freshers and experienced, JBOSS interview FAQ - What is JBOSS?, What is JBoss cache in short?, What is JBoss JBPM?, How do you monitor JBoss and detect the bottleneck of an application?
What is JBOSS?
What is JBOSS? - JBoss is a popular open source application server based on JEE technology. Being JEE based, the JBoss supports cross-platform java applications..
Post your comment