EJB 면접 질문과 답변
Question: What are transaction attributes?Answer: The transaction attribute specifies how the Container must manage transactions for a method when a client invokes the method via the enterprise beans home or component interface or when the method is invoked as the result of the arrival of a JMS message. (Suns EJB Specification) Below is a list of transactional attributes:1. NotSupported - transaction context is unspecified. 2. Required - beans method invocation is made within a transactional context. If a client is not associated with a transaction, a new transaction is invoked automatically. 3. Supports - if a transactional context exists, a Container acts like the transaction attribute is Required, else - like NotSupported. 4. RequiresNew - a method is invoked in a new transaction context. 5. Mandatory - if a transactional context exists, a Container acts like the transaction attribute is Required, else it throws a javax.ejb.TransactionRequiredException. 6. Never - a method executes only if no transaction context is specified. |
복습용 저장
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
도움이 되었나요? 예 아니요
Most helpful rated by users:
- What are the different kinds of enterprise beans?
- What is Entity Bean?
- What is Session Bean?
- What is the difference between Container-Managed Persistent (CMP) bean and Bean-Managed Persistent(BMP)?
- What are the methods of Entity Bean?