AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-898





Question ID 4584

A session bean business method throws an exception during execution.
Which two are responsibilities of the Bean Provider when throwing the exception? (Choose two.)
 

Option A

A.    For application exceptions, ensure that if the current transaction commits there will be no loss of data integrity.
 

Option B

B.    For application exceptions, ensure that the current transaction will commit.
 

Option C

C.    For system errors, when the client is remote through a java.rmi.remoteException that wraps the original exception.
 

Option D

D.    For checked exceptions from which the bean cannot recover, throw an EJBException that wraps the original exception.
 

Correct Answer A,D
Explanation


Question ID 4585

FooBean and BarBean are both EJB 3.0 stateless beans with container-managed transaction demarcation. All business methods in FooBean have transaction attribute REQUIRED, and all business methods in BarBean have transaction attribute REQUIRED_NEW. The business method foo in FooBean invokes the Business method bar in BarBean.
Given:
10.    Public class BarBean {
11.    public void bar () {
12.    throw new RuntimeException (“unexpected error . . . ”);
13.    }}
Which is true about the method of invocation assuming execution reaches line 12?
 

Option A

A.    FooBean.foo method receives javax.ejb.EJBException.
 

Option B

B.    The BarBean bean instance is in ready state for the next invocation.
 

Option C

C.    FooBean.foo method receives javax -ejb. EJBTtansactionRolledbackException.
 

Option D

D.    FooBean.foo method receives the original RuntimeException thrown from BarBean.bar method.
 

Correct Answer A
Explanation

Send email to admin@getfreedumps for new dumps request!!!