A Java Persistence application uses entities mapped to tables from two datasources in the same transaction. What statement is correct?
A. This is NOT possible.Using bean-managed transaction demarcation, under which two circumstances must the container roll back a transaction? (Choose two.)
A. A stateful session bean invokes UserTransaction.getRollbackOnly.A developer needs to deliver a large-scale enterprise application that connects to legacy systems. If the developer chooses an EJB 3.0-compliant application server, which three are true about the EJB business component tier? (Choose three.)
A. Load-balancing is NOTaguarantee forallEJB 3.0 containers.A developer wants to create a portable EJB 3.0 application that includes the following class definition for the Entity Account: 11.©Entity
12.
@Entityl_isteners(com. acme.AlertMonitor. class)
13.
public class Account {
14.
// more code here
15.
@PrePersist
16.
protected void validateCreate0 {/* more code here */} 17.} Which statement is correct?
A. The validateCreate method may NOT throwruntimeexceptions.A developer implemented a Java class called Store. The class is annotated correctly to act as an entity. The developer created a stateless session bean to create, lookup, and remove Store objects. This session bean has a container-
managed entity manager injected into field em and a removeStore method with transaction attribute REQUIRED.
Given the following code :
32.
public void re move St ore (St ore store) {
33.
em.remove(store); 34.}
What is a possible reason that an HlegalArgumentException is thrown at Line 33 when the removeStore method is called by a remote client?
A. Thepassedobject is NOT serializable.Which two statements are true? (Choose two.)
A. Alltypes ofenterprise beans can be transaction-aware.Given:
A session bean Foo uses container-managed transactions. The container throws a javax.transaction.TransactionRolledBackException when the doStuff methodruns. Which transaction attribute can the doStuff method have for this to occur?
A. NEVERGiven two entities with a many-to-many bidirectional association between them:
11.
@Entity public class Employee!
12.
Collection projects;
13.
// more code here
14.}
and
11.©Entity public class Project!
12.
Set
13.
// more code here
14.}
What set of annotations correctly defines the association?
A. @ManyToMany on the projects field, @ManyToMany(mappedBy="projects") on the emps fieldA developer wants to create a Java Persistence query that restricts the results of an age- based query. Specifically, the developer wants to select everyone who is NOT a teenager. (A teenager is someone who is 13,14,15,16,17,18, or 19
years old.)
Which expression in the query's WHERE clause is correct?
A. WHEREp.age NOTBETWEEN12and20A developer is implementing an EJB 3.0 JMS message-driven bean with bean-managed transactions. Which two statements are true? (Choose two.)
A. The message receipt is part of the user transaction.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.