Summer Certification Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the Oracle Java EE and Web Services 1z0-900 Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam 1z0-900 Premium Access

View all detail and faqs for the 1z0-900 exam


750 Students Passed

96% Average Score

96% Same Questions
Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions
Questions # 21:

Given the code fragments:

Question # 21

What code should you add to the body of the updateEmployee method in order to save pending changes to the database?

Options:

A.

entityManager.merge(emp);

B.

Context. Ctx = new InitialContext();UserTransaction utx = (UserTransaction)ctx.lookup(“java:comp/UserTransaction”);utx.begin();entityManager.merge(emp);utx.commit();С. entityManager.lock(emp);EntityManager.merge(emp);

C.

entityManager.getTransaction().begin();entityManager.merge(emp);entityManager.getTransaction().commit();

Questions # 22:

Which statement is true about Java methods that are exposed as Web Service operations by using JAX-WS API?

Options:

A.

The @WebResult annotation must exist.

B.

Method parameters and return types must be JAXB compatible.

C.

Method parameters must be declared by using @WebParam.

D.

The @WebMethod annotation must exist.

Questions # 23:

When handling a JSF request, your application code decided to redirect the call to another URL by using HTTP redirect. Which action should you take to correctly complete the handling of the JSF life cycle?

Options:

A.

Set the immediate=“true” attribute on the command button that was used to perform this call.

B.

Invoke the dispatch() method on the ExternalContext object.

C.

Invoke the setCurrentPhaseId(RENDER_RESPONSE) method on the FacesContext object.

D.

Invoke the responseComplete() method on the FacesContext object.

Questions # 24:

Which type allows you to share servlet attributes across your entire web application?

Options:

A.

ServletContext

B.

HttpSession

C.

ServletRequest

D.

ServletConfig

Questions # 25:

Given an HttpServletRequest request and an EJB SessionContext ctx.

Which is a valid way to retrieve the Principal invoking either behavior?

Options:

A.

request.getCallerPrincipal() and ctx.getCallerPrincipal()

B.

request.getUserPrincipal() and ctx.getUserPrincipal()

C.

request.getCallerPrincipal() and ctx.getUserPrincipal()

D.

request.getUserPrincipal() and ctx.getCallerPrincipal()

Questions # 26:

Your client has decided that Discrete Manufacturing will be implemented at a future stage, so any new supply from current manufacturing will be added to current inventory by the Open Transactions Interface. The immediate requirement is to go live with Inventory and Order Management.

Which two seeded transaction types can be omitted for material status control?

Options:

A.

All Transaction Types Related to Work in Process

B.

Average Cost Update

C.

Backflush Subinventory Transfer

D.

Miscellaneous Issues and Receipts

E.

All Internal Transactions

Questions # 27:

You are working with JMS publish-subscribe operations.

What happens when a producer publishes a message to a topic for which a durable subscription exists but there are no subscribers available?

Options:

A.

The publisher waits for a subscriber, who then consumes it. However, the publisher will time out if no consumer arrives within the given timeout period.

B.

The publisher sends the message. However, it is never consumed because there wasn’t anything listening when it arrived, regardless of the message timeout length.

C.

The publisher successfully sends a message, which will be consumed later, once there is a subscriber, assuming the message hasn’t timed out.

D.

The message publisher is immediately notified about the lack of subscribers and can decide for itself if, and when, to resend.

Questions # 28:

NO: 61

Your web application requires logic to remember items that a user placed into a shopping cart.

Which two mechanisms should you use to associate that information with the user? (Choose two.)

Options:

A.

HttpServletResponse objects

B.

ServletContext objects

C.

HttpSession objects

D.

a database

Questions # 29:

Which interface should you implement if you want to be alerted to the lifecycle events surrounding your task being executed by a ManagedExecutorService?

Options:

A.

the Runnable Interface

B.

the ManagedExecutorTask interface

C.

the TaskEventListener interface

D.

the ManagedTaskListener interface

Questions # 30:

Which two statements are true about the relationship between JavaServer Pages (JSP) and servlets? (Choose two.)

Options:

A.

A JSP page must extend the HTTPServlet class to behave like a servlet.

B.

A JSP page has access to the same information, objects, and a context as a servlet.

C.

A JSP page is interpreted by JSPServlet.

D.

A JSP page must be written as either an XML file or a JSP file before it is turned into a servlet.

Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.