Free 1Z0-860 Braindumps

problem can occur. In that case the developer wants to make sure that the booking request is
processed again in 30 minutes. Which two can the developer select? (Choose two.)

A. Throwa runtimeexception torollbackthetransaction.
B. Call setRol backOnly on the MessageDrivenContext interface.
C. Makeuseof the TimerService, and implement the TimedObject interface.
D. Make use of the TimerService, implement areprocess method, and annotate it with
@Timeout.
E. Throw an application exception, and addtheretry-after attribute to the deployment descriptor.
Answer(s): C, D
QUESTION: 27
Given a set of CMT bean methods with the following transaction attributes:
Method M1=SUPPORTS
Method M2=REQUIRED
Method M3=NOT_SUPPORTED
Method M4=REQUIRES_NEW
And the following method invocation sequence:
Method M1 invokes Method M2
Method M2 invokes Method M3
Method M1 invokes Method M4
If Method M1 is invoked by a method that does NOT have a transaction context, which
describes a possible scenario?

A. Method M1notransaction
MethodM2new transaction
Method M3no transaction
MethodM4newtransaction
B. Method M1notransaction
Method M2Container throws EJBTransactionRequiredException
C. MethodM1new transaction
Method M2runs in same transaction as M1
Method M3Container throws TransactionNotSupportedException
D. Method M1no transaction
Method M2new transaction
Method M3Container throws TransactionNotSupportedException
Answer(s): A
QUESTION: 28
OldBarBean is a stateless session bean written to the EJB 2.1 API with remote home interface.
OldBarHome and remote component interface OldBar. FooBean is a stateless session bean
written to the EJB 3.0 API.
OldBarBean and FooBean are the only EJBs packaged in the ejb-jar. The FooBean portion of
the
ejb-jar. xml also declares an ejb-ref whose ejb-ref-name is ejb/oldBar. The ejb-ref is linked to
OldBarBean. There are no other ejb dependencies defined.
A business method foo in FooBean needs to access OldBarBean.


10

Get The Premium Version

Allbraindumps.com
 Test Questions PDF from Myitguides.com

 Test Questions PDF from Myitguides.com