Sie sind auf Seite 1von 4

Which session bean maintain their state between client invocations but are not required to

maintain their state across server crashes or shutdowns?


- Published on 22 Jul 15

a. Stateful Session Bean


b. Stateless Session Bean
c. Singleton Session Bean
d. None of the above

Which of the following is correct about mappedName attribute in @javax.ejb.EJB annotation?

A - It is used to specify name which will be used to locate the referenced bean in environment.

B - it is used to specify the interface type of the referenced bean.

C - It is used to provide name of the referenced bean.

D - It is used to specify the JNDI name of the referenced bean.

Which of the following is true about EJB?

A - EJB is an essential part of a J2EE platform.

B - EJB provides an architecture to develop and deploy component based enterprise


applications considering robustness, high scalability and high performance.

C - EJB stands for Enterprise Java Bean.

D - All of the above.

Which of the following is true about stateless bean?

A - A stateless session bean is a type of enterprise bean which is normally used to do


independent operations.

B - A stateless session bean as per its name does not have any associated client state, but it may
preserve its instance state.

C - Both of the above.


D - None of the above.

Which of the following is correct about messageListenerInterface attribute in


@javax.ejb.MessageDrivenBean annotation?

A - It is used to specify name of the message driven bean.

B - it is used to specify message listener interface for the message driven bean.

C - It is used to specify the configuration details of the message-driven bean in operational


environment of the message driven bean.

D - It is used to specify the JNDI name of the message driven bean.

Which annotation is used to inject singleton services like timer service into an ejb?

A - @EJB

B - @Resource

C - Both of the above.

D - None of the above.

What are message-driven beans designed as?


a. Synchronous message consumers
b. Asynchronous message producers
c. Synchronous message provider

d. Asynchronous message consumers

A JavaBeans propertys name is defined by its backing field.


a. True

b. False

Complete the following custom annotation declaration:


public @__________ MyAnnotation {}
a.enum
b.class
c.interface

d.annotation

What are the three functions provided by an EJB


container?
a. Provides timer services
b. Manages the life cycle of EJB components
c. Encapsulates access to external resources

d. Optimizes the performance of the database

Identify a unique feature of a singleton session bean.


a. The bean retains state across server restarts.
b. Bean methods can be accessed by only one client.
c. Bean methods can be accessed by multiple clients.

d. Only one bean of this type may be created in a container

What is JMS?
a. Java Management Service, an API for managing Java EE
services
b. Java Mobile Service, an API for developing applications for
mobile devices
c. Java Macintosh Service, an API for developing applications
for Macintosh computers
d. Java Message Service, an API for creating, sending,

receiving, and reading messages

What are the two destination types?


a. Queue and topic
b. Topic and stack
c. Queue and stack\

d. Queue and dequeue

Which of the following does a publish/subscribe architecture


have?
a. A topic and a single subscriber
b. A message and multiple copies
c. A topic and multiple messages

d. A topic and multiple subscribers

Das könnte Ihnen auch gefallen