Free 1Z0-860 Braindumps

The ejb-jar file format is a contract between which two EJB role pairs? (Choose two.)

A. Deployer and System Administrator
B. Application Assembler and Deployer
C. Bean Provider and Application Assembler
D. Bean Provider and EJB Container Provider
E. EJB Server Provider and EJB Container Provider
F. Application Assembler and EJB Container Provider
Answer(s): B, C
QUESTION: 18
Which Java Persistence query uses the aggregate function correctly, assuming that chairs field
is of type int?

A. SELECT ANY(r. chairs) FROM Room r
B. SELECT NEW Integer(MAX(r. chairs)) FROM Room r
C. SELECT r FROM Room r WHERE r.chairs > AVG(r.chairs)
D. SELECT c FROM Chair c WHERE LOCATE (c.type, lazyboy) > -1
Answer(s): B
QUESTION: 19
A developer writes a stateful session bean called FooBean.
Which code can be inserted before Line 11 of the FooBean class to define a TYPE-level
environment dependency on a JMS Topic?
11. public class FooBean {
12.
13. public void fooQ {}
14.
15.}

A. @Resource(type=Topic. class)
B. @Resource(name="topicRef) private static Topic topic;
C. ?ResourceprivateTopic topic;
D. @Resource(name="topicRef', type=Topic. class)
Answer(s): D
QUESTION: 20
A developer has created an application-managed entity manager. Which statement is correct?

A. A new persistence context begins when the entity manager is created.
B. A new persistence context begins when a new JTA transaction begins.
C. A new persistence context begins when the entity manager is invoked in the context of a JTA
transaction.
D. A new persistence context begins when the entity manager is invoked in the context of a
resource-local transaction.


7

Get The Premium Version

Allbraindumps.com
 Test Questions PDF from Myitguides.com

 Test Questions PDF from Myitguides.com