1. Trang chủ
  2. » Công Nghệ Thông Tin

25 câu trắc nghiệm EJB

7 743 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 7
Dung lượng 390 KB

Nội dung

1 Which of the following are the main methods in java.sql.Connection interface that are used for handling transactions? SetAutoCommit() commit() rollback() 1, 2, 1, 1, 2, Which of the following methods of the javax.ejb.SessionSynchronization interface are used for handling transactions in the stateful session beans? afterBegin() beforeBegin() afterCompletition(boolean committed) beforeCompletition(boolean committed) 1, 2, 2, 3, 1, 3, 1, 2, 3, The JMS API architecture is composed of which of the following parts? JMS Provider JMS Clients Messages Administered Objects 1, 2, 2, 3, 1, 3, 1, 2, 3, 4 A transacted session supports series of transaction Single Multiple Double Triple The identity of both stateful and stateless session beans can be compared using the _ method isIdentical() Identical() Compare() The method of the CMP Bean is called by the container to disassociate a bean from its environment ejbRemove() unsetEntityContext() ejbPassivate() _ are implemented differently in both CMP and BMP beans Containers Container call back methods Instance of an entity bean BNF schemas created using BNF symbols use these schemas to declare in EJB QL Queries Functions Relations The _ isolation anomaly occurs when data is changed between two consecutive reads by a transaction Phantom Read Non-Repeatable Read Dirty Read 10 The _ manages interactions between applications and the application server Container Transaction manager CMT 11 The _ controls JDBC transactions using the commit () and rollback() methods DBMS transaction manager DQL transaction manager Transaction server 12 The field provides a way to correlate messages in a request/response type of setup JMSCorrelationID JMSDestination JMSExpiration 13 In , J2EE architecture makes use of a Message-Driven bean for fulfilling the requests of the client Resource facade Session fa?ade Message fa?ade 14 In , an end user is required to authenticate by providing necessary authentication data only when the user tries to access a secured resource J2EE security architecture Lazy authentication Resource security 15 Which of the following method of Entity Beans is used to retrieve information from the database? retrieve finder remove home 16 Which of the following deployment descriptor contains the details about the classes and interfaces which compose an EJB application along with the persistence details in case of an Entity Bean? application.xml web.xml ejb.xml ejb-jar.xml 17 Which of the following exception is thrown if the container encounters a problem in searching a particular record? Finder Exception Duplicate Key Exception Remove Exception Create Exception 18 Which of the following behavioral UML diagram focuses on the type and order of messages passed between elements during execution? Sequence State Machine Timing Use Case 19 Which of the following ACID property specifies that each transaction should be allowed to execute independently? Atomicity Isolation Consistency Durability 20 Which of the following messaging domain models allow multiple applications or components to receive the same message? Point to Point Point to Publish Publish and Subscribe Point and Subscribe 21 EJB QL supports path navigation using a Dot (.) Arrow (->) Hyphen (-) Equal to (=) 22 Which of the following are the properties of a transaction? Isolation Durability Atomicity Consistency 1, 2, 2, 3, 1, 3, 1, 2, 3, 23 Which of the following properties of a transaction ensures that each transaction should be allowed to execute independently without interference from other transactions or processes? Atomicity Consistency Isolation Durability 24 Which of the following components of the Transaction processing are EJB business methods which invoke transactions? Application Components Resource Managers Transaction Manager All of the above 25 _transaction contains one main transaction with one or smaller transactions embedded within it Flat Nested Joint Main ... classes and interfaces which compose an EJB application along with the persistence details in case of an Entity Bean? application.xml web.xml ejb. xml ejb- jar.xml 17 Which of the following exception... CMP Bean is called by the container to disassociate a bean from its environment ejbRemove() unsetEntityContext() ejbPassivate() _ are implemented differently in both CMP and BMP beans Containers... of the Transaction processing are EJB business methods which invoke transactions? Application Components Resource Managers Transaction Manager All of the above 25 _transaction contains

Ngày đăng: 29/12/2016, 09:51

TỪ KHÓA LIÊN QUAN

w