Tag: architecture

Questions Related to architecture

Which of the following is NOT an advantage of Java EE Web Services Programming Model?

  1. Supports resource injection removing the burden of creating and initializing common resources in a Java runtime environment.

  2. Simplifies development/deployment of web services through annotations.

  3. Supports both SOAP 1.1 and SOAP 1.2

  4. A JAX-WS client can access a web service that is not running on the Java platform, and vice versa.

  5. None of the above.


Correct Option: E
  1. Session bean is a POJO managed by the EJB container.

  2. Stateless session beans require a home interface only.

  3. Callback methods can be defined either in the bean class itself or in a bean listener class.

  4. All session beans and message driven beans need to have a business interface


Correct Option: A,C

Which of the following is true about EJB3.0?

  1. Elimination of lifecycle callback methods.

  2. An interceptor facility for session beans and message-driven beans.

  3. Increased requirements for usage of checked exceptions.

  4. Now you can use standard SQL queries with Java Persistence API.


Correct Option: B,D

Which of the following offers an accurate description of Message-Driven Enterprise Beans?

  1. Message-Driven beans are just a new way of describing a JMS message. This has been formalized with the EJB 2.0 specification.

  2. A Message-Driven bean is an enterprise bean that allows J2EE applications to process messages asynchronously.

  3. A Message-Driven bean is an enterprise bean that allows J2EE applications to process messages synchronously.

  4. A Message-Driven bean is used when you need to interact with messaging systems other than JMS.

  5. A Message-Driven bean is like a Session Bean except that if the server is busy it will put the Message-Driven beans' method requests in a queue and execute them one at a time to reduce the load on the Application Server.


Correct Option: B
  1. There is no difference in structure between Message-Driven Beans and Entity and Session Beans. They all have home, remote interfaces and a bean class.

  2. Message-Driven beans don't have a home interface.

  3. A Message Driven bean is different from Session Bean because its state is persisted.

  4. Clients do not access Message-Driven beans through interfaces.


Correct Option: B,D
  1. Application can be isolated from the database and the only connection to it is using the ORM framework and a JDBC driver.

  2. Manageability of a Java application increases.

  3. They perform faster than direct JDBC connections.

  4. ORM supports same level of data access as SQL.

  5. ORM does little to improve developer productivity.


Correct Option: A,B

Which of the following is FALSE about EJB3.0?

  1. Supports annotations

  2. Supports resource injection

  3. Simplifies enterprise bean types

  4. Gives interceptor facility for session, message-driven and entity Beans


Correct Option: D