OCSecA 1Z0-860 Oracle
www.it-pruefungen.ch hilft Ihnen mit hochwertigenUnterlagen und Software, die Fragen und Antworten Zertifizierungsprüfung zu bestehen. Mit Hilfe der www.it-pruefungen.ch sind Sie sicher, die Zertifizierung mit einem hohen Punkt zu bestehen und den Erfolg im IT-Bereich erobern.
1Z0-860 Java Enterprise Edition 5 Business Component Developer Certified Professional Exam Vorbereitung für IT-Prüfung hat eine Reihe von spezialisierten Zertifizierungsprüfung im Zusammenhang mit einem bestimmten Gebiet, und so ist die Wahl der richtigen Training Produkt ist sehr wichtig.
OCSecA 1Z0-860 Oracle
QUESTION NO: 1
A session bean calls the setRollbackOnly method on the EJBContext interface within a business method with an active transaction. Which two are correct? (Choose two.)
A. The transaction timeout is immediately disabled.
B. The container will ensure that the transaction will never commit.
C. The bean must have started the current transaction for this to be legal.
D. The bean must have bean-managed transaction demarcation for this to be legal.
E. Thebean must have container-managed transaction demarcation for this to be legal.
Answer: B,E
QUESTION NO: 2
A developer is working on a user registration application using EJB 3.0. A business method registerUser in stateless session bean RegistrationBean performs the user registration.
The registerUser method executes in a transaction context started by the client. If some invalid user data causes the registration to fail, the client invokes registerUser again with corrected data using the same transaction. Which design can meet this requirement?
A. Have registerUser method call EJBContext.setRollbackOnlyOmethodafter registration fails.
B. Have registerUser method throw javax.ejb.EJBTransactionRequiredExceptionafterregistration
fails.
C. HaveregisterUser method throw EJBException without marking the transaction for rollback, after registration fails.
D. Create an application exception withtherollbackattributeset to falseandhave registerUser method throwit afterregistration fails.
Answer: D
QUESTION NO: 3
Given:
11. @PersistenceContext EntityManager em;
12. public boolean test(Order o) {
13. boolean b = false;
14. o = em.merge(o);
15 em.remove(o);
16. o = em.merge(o);
17. b = em.contains(o);
18. return b;
19.}
Which statement is correct?
A. The method will return TRUE.
B. Themethod will return FALSE.
C. Themethodwill throw an exception.
D. TheOrder instance willberemoved from the database.
Answer: C
OCSecA 1Z0-860 Oracle