Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Java Programming Language Interviews:Advanced JavaCore JavaEclipseFull Stack Developer (Java)HibernateIBM WebSphereInternationalization LocalizationJ2EEJ2MEJ2SEJavaJava ANTJava AppletJava BeansJava ClassesJava EJB ProgrammingJava Game DeveloperJava GUI FrameworkJava JNDIJava JNIJava JSP ProgrammingJava Message Service (JMS)Java Multi-ThreadingJava Networking - Sockets and RMIJava PatternsJava SecurityJava Server FacesJava Servlet ProgrammingJava Software EngineerJava Swing ProgrammingJava TechnicalJava ThreadsJava Transaction APIJava Web ServicesJavaMailJBossJDBCJMSJSFPortal and PortletRMISpring FrameworkSr.Java Web DeveloperStrutsSunOneSwing AWTSWT JFace
Copyright © 2018. All Rights Reserved
Java Transaction API Interview Question:
Can you please explain demarcation and types of demarcation, declarative and programmatic demarcation?
Submitted by: AdministratorDemarcation 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.
Submitted by: Administrator
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.
Submitted by: Administrator
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.