Oracle 1Z0-860 Online Practice
Questions and Exam Preparation
1Z0-860 Exam Details
Exam Code
:1Z0-860
Exam Name
:Java Enterprise Edition 5 Business Component Developer Certified Professional
Certification
:Oracle Certifications
Vendor
:Oracle
Total Questions
:305 Q&As
Last Updated
:May 25, 2026
Oracle 1Z0-860 Online Questions &
Answers
Question 151:
Which statement about entity manager is true?
A. A container-managed entity manager must be a JTA entity manager. B. An entity manager injected into session beans can use either JTA or resource-local transaction control. C. An entity manager created by calling the EntityManagerFactory.createEntityManager method always uses JTA transaction control. D. An entity manager obtained through resource injection in a stateful session bean can use a resource-local EntityTransaction for transaction control
A. A container-managed entity manager must be a JTA entity manager.
Question 152:
You have been asked to develop business methods for an enterprise bean to fulfill the following objective:
If the JDBC connection is NOT available, the current state of the shopping cart session must be serialized. A serialized state must be written to a text file using a java.io.PrintWriter. Data must be shared with a Web services end point. Logging
information must be displayed in ajavax.swing.JPanel component. Which is true?
A. The requirements can be fullfilled only in sessionbeans. B. Therequirementscan befulfilled only in message-driven beans. C. Allof the requirements can be fulfilled using either session beans or message-driven beans. D. None of the requirements can be fulfilled using either session beans or message-driven beans. E. Bothsession beansandmessage-driven beans canfulfillsomebutnotalloftherequirements.
E. Bothsession beansandmessage-driven beans canfulfillsomebutnotalloftherequirements.
Question 153:
The execution of the find method in the following code throws an exception:
11.
em.find(Customer.class, custld);
12.
//Where em is a reference to a extended scoped entity manager.
Which scenario can cause the exception?
A. Thefindmethod was called without a transaction. B. Theentity corresponding to therequestedprimary key has been removed. C. The entity corresponding to therequestedprimarykeyhas beendetached. D. The data type of custld is NOT a valid type fortheCustomer entity primary key.
D. The data type of custld is NOT a valid type fortheCustomer entity primary key.
A deployment descriptor is also supplied, a portion of which reads as follows:
20.
21.
AGENT
22.
23.
MyBean
24.
methodA
25.
26.
Which statement is true?
A. A client in any rolewill beabletoaccess anyof themethods. B. Aclient inthe role "AGENT" willbeable to access any ofthemethods. C. A client in therole"SECRET" will be able to access any of the methods. D. A client in the role "AGENT" will be abletoaccess methodB and methodA(String), but not methodA(int). E. Aclient in the role "SECRET" will beableto access methodA(int) and methodB, but NOT methodA(String).
B. Aclient inthe role "AGENT" willbeable to access any ofthemethods.
Question 155:
Which is the correct way of declaring bean-managed transaction demarcation for an EJB 3.0 message-driven bean?
A. @MessageDriven public class MyMessageBean implements MessageListener, UserTransaction { B. @MessageDriven @TransactionManagement(TransactionManagementType.BEAN) public class MyMessageBean implements MessageListener { C. @MessageDriven public class MyMessageBean implements MessageListener) @TransactionManagement(TransactionManagementType.BEAN) public void onMessage(Message message) {...} C. @MessageDriven (transactionManagement=TransactionManagementType.BEAN) public class MyMessageBean implements MessageListener {
B. @MessageDriven @TransactionManagement(TransactionManagementType.BEAN) public class MyMessageBean implements MessageListener { C. @MessageDriven public class MyMessageBean implements MessageListener) @TransactionManagement(TransactionManagementType.BEAN) public void onMessage(Message message) {...}
Question 156:
A developer writes client code that runs in a Java EE container and accesses an EJB 3.0 stateful session bean. Which three statements are correct? (Choose three.)
A. The client can obtain a reference to the bean's business interface through JNDI lookups. B. The client can obtain a reference to the bean's business interface through dependency injection. C. If the client calls a business method after the bean instance has been removed an exception will occur. D. After obtaining a reference to the bean's business interface, the client must call the create method before it may call business methods. E. After the bean instance has been passivated, the client needs to re-obtain a reference to the bean's business interface to activate the bean instance.
A. The client can obtain a reference to the bean's business interface through JNDI lookups. B. The client can obtain a reference to the bean's business interface through dependency injection. C. If the client calls a business method after the bean instance has been removed an exception will occur.
Question 157:
A developer wants to perform programmatic access control inside EJB 3.0 session beans. This is needed because some permissions can be determined only at application runtime. Which method achieves this goal?
A. javax.ejb.EJBContext.getRollbackOnlyO B. java.lang.SecurityManager.checkAccess(Thread t) C. javax. interceptor. InvocationContext. getTargetO D. javax. ejb. SessionContext.isCallerlnRole(String roleName) E. javax. servlet. http. HttpServletRequest. getUserPrincipalQ
D. javax. ejb. SessionContext.isCallerlnRole(String roleName)
Question 158:
Which statement about mapping using the Java Persistence API is correct?
A. User-defined XML mapping files can be used only if orm. xml file is NOT present. B. All mapping files other than orm. xml must be listed explicitly in the persistence, xml descriptor. C. Mapping information specified in the XML mapping file overrides all annotations and default mappings. D. The orm.xml file must be placed into the persistence unit's root to be processed by the persistence provider.
B. All mapping files other than orm. xml must be listed explicitly in the persistence, xml descriptor.
Question 159:
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.
C. Themethodwill throw an exception.
Question 160:
A Java EE 5 application contains a session bean which uses a security role USER. A group called people is defined in an LDAP server. Which two define appropriate EJB role responsibilities? (Choose two.)
A. The deployer definesandconfigures the LDAP realm. B. The system administratordefines and configuresthe LDAPrealm. C. Thedeployermaps the application role USER totheLDAP group people. D. Thesystem administrator maps the application role USER totheLDAP group people.
B. The system administratordefines and configuresthe LDAPrealm. C. Thedeployermaps the application role USER totheLDAP group people.
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.