The Contact Information embeddable class contains address information as well as a reference to a phone entity. The ContactInformation class is defined as follows:@Embeddable public class ContactInformation {String street;String city;@OneToOne Phone phone;}The developer wants to use this class in an Employee entity, but override the default name of the foreign key to the Phone entity. Which of the code segments shows how to do this correctly?
A stateless session bean's business method invokes EJBContext.setRollBackOnly and receives an IllegalStateException.Under which of these conditions could this be possible?
Given the following stateless session bean implementation classes:Assuming no other transaction-related metadata, what are the transaction attributes on methodB, and method C respectively?
A session bean business method throws an exception during execution.Which two are responsibilities of the Bean Provider when throwing the exception? (Choose two.)
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 theBusiness 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?
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?