Sun 310-091 Bus. Component Developer Java EE Practice Exam

0

Sun 310-091 Bus. Component Developer Java EE Practice Exam, Attend this Sun 310-091 Bus. Component Developer Java EE Practice Exam will get a Good Score 80% on Main Exam.

Sample Questions:

The Java Persistence API defines an interface EntityTransaction. Which statement is correct?

It is used to control transactions over JTA entity managers.

It is used to control transactions on the entity managers of local resources.

All methods of this interface will throw IllegalStateException if a transaction is not active.

Calling the getTransaction method on a closed entity manager will throw an IllegalStateException.

None

A developer wants to create a Java Persistence query that include a subquery. Which three are true? (Choose three.)

Subqueries can be used in a FROM clause.

Subqueries can be used in a WHERE clause.

The ANY expression can be used only with a subquery.

The EXISTS expression can only be used with a subquery.

The social expression can only be used with a subquery.

A developer wants to create a JMS message-driven bean that meets javax.jms.TextMessage messages. Which two statements are true? (Pick one.)

The developer must implement the ejbCreate method.

The developer does not need to create business interface for the bean.

The developer must implement a method that declares javax.jms.TextMessage argument.

The message-driven bean class must implement the interface methods javax.jms.MessageListener.

 

A session bean calls the method on setRollbackOnly EJBContext within a business method with an active transaction. What two correct? (Pick one.)

The transaction timeout is immediately deactivated.

The container will ensure that the operation will never commit

The bean must have started the current transaction for this to be legal.

The bean must be managed by the transaction demarcation for this container is legal.

A developer wants to run the control programmatic access inside EJB 3.0 session beans. This is necessary because some permissions can only be determined at run-time application. Which method achieves this goal?

javax.ejb.EJBContext.getRollbackOnly ()

java.lang.SecurityManager.checkAccess (Thread t)

javax.interceptor.InvocationContext.getTarget ()

javax.ejb.SessionContext.isCallerInRole (String roleName)

None

Free $174.99 Redeem Coupon
We will be happy to hear your thoughts

Leave a reply

100% Off Udemy Coupons
Logo