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

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

1 Which of the following are the main methods in java.sql.Connection interface that are used for handling transactions?. rollback 1, 2 2, 3 1, 3 1, 2, 3 2 Which of the following methods

Trang 1

1 Which of the following are the main methods in

java.sql.Connection interface that are used for handling

transactions?

1 SetAutoCommit()

2 commit()

3 rollback()

1, 2

2, 3

1, 3

1, 2, 3

2 Which of the following methods of the

javax.ejb.SessionSynchronization interface are used for handling transactions in the stateful session beans?

1 afterBegin()

2 beforeBegin()

3 afterCompletition(boolean committed)

4 beforeCompletition(boolean committed)

1, 2, 3

2, 3, 4

1, 3, 4

1, 2, 3, 4

3 The JMS API architecture is composed of which of the following

parts?

1 JMS Provider

2 JMS Clients

3 Messages

4 Administered Objects

1, 2, 3

2, 3, 4

Trang 2

1, 3, 4

1, 2, 3, 4

4 A transacted session supports series of

transaction.

Single

Multiple Double Triple

5 The identity of both stateful and stateless session beans can be

compared using the _ method.

isIdentical()

Identical() Compare()

6 The method of the CMP Bean is called by the container

to disassociate a bean from its environment.

ejbRemove()

unsetEntityContext()

ejbPassivate()

7 _ are implemented differently in both CMP and

BMP beans.

Containers

Container call back methods

Trang 3

Instance of an entity bean

8 BNF schemas created using BNF symbols use these schemas to

declare in EJB QL.

Queries

Functions Relations

9 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

Trang 4

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

Trang 5

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

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

Atomicity

Trang 6

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?

1 Isolation

2 Durability

3 Atomicity

4 Consistency

1, 2, 3

2, 3, 4

1, 3, 4

1, 2, 3, 4

Trang 7

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

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

TỪ KHÓA LIÊN QUAN

w