Which three statements are true about EJB 3.0 containers? (Choose three.)
A. Remote argument passing semantics conform to Java RMI-IIOP.Given :
public class MyException extends Exception {}
The business interface Foo declares a method work0: I.public void work0 throws MyException;
The bean class FooBean contains the following:
10.©Stateless
II. @Remote(Foo.class)
12.
public class FooBean {
13.
public void workQ throws MyException {
14.
//do some work not shown here
15.
throw new MyException0;
16.}
Assuming there is no deployment descriptor, which statement is true when the workQ method is invoked by a client with an existing transaction context and execution reaches Line 15?
A. The container does notroll back thetransaction.A developer is designing a Java Persistence application that is mapped to a set of existing tables. This set includes table EMPLOYEE, DEPARTMENT, and PROJECT. Tables EMPLOYEE and DEPARTMENT do NOT define any foreign key constraints to table PROJECT. Table PROJECT defines foreign key constraints with references to tables EMPLOYEE and DEPARTMENT and an extra column called COST. The table EMPLOYEE is mapped to an entity Employee and the table DEPARTMENT to an entity Department. How can the table PROJECT be mapped so the persistence application can be portable?
A. Such sets of tables cannotbemappedandkeep the application portable.Which statement about entity manager is true?
A. A container-managed entity manager must be a JTA entity manager.Which statement is true about the Timer service in an EJB 3.0 stateless session bean?
A. The timeout callback method contains the business logic that handles the timeout event.A developer wants to write a stateful session bean using the following interface as local business interface:
1.
package acme;
2.
public interface Bar{
3.
public void barQ;4-i
Assuming there is NOT an ejb-jar.xml file, which code can be inserted into Lines 4-6 below to define the bean with the ejb name of BarBean?
1.
package acme;
2.
import javax. ejb.*;
3.
import Java, io.*; 4.
5.
6.
7.}
A. ©Stateful public class BarEJB implementsBar{ public void bar0 {}The bean class of an EJB Web service endpoint has one method annotated with @WebMethod. Which two types can be legally returned from that method? (Choose two.)
A. Java. util. DateWhich Java Persistence query uses the aggregate function correctly, assuming that chairs field is of type int?
A. SELECT ANY(r. chairs) FROM Room rGiven :
I. public class MyExceplion extends Exception {}
The remote business interface Foo declares a method workQ:
5. public void work0 throws MyException;
The bean class FooBean contains the following:
10.©Stateless
II. @Remote(Foo.class)
12.
public class FooBean {
13.
public void workQ throws MyException {
14.
throw new MyException0;
15.}
Which exception can be received in the client as a result of invoking the work method?
A. a MyExceptionA Java Persistence application wants to use optimistic locking. Which statement that describes the functionality of optimistic locking is correct?
A. The Version attribute of an entity using optimistic locking can be mapped to a secondary table.Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-860 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.