New Year Special Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: scxmas70

1z0-900 Exam Dumps - Java EE 7 Application Developer

Go to page:
Question # 17

You need to develop a chat application, which allows the display of emoticons and images together with text messages.

How should you configure a WebSocket endpoints to receive both text and binary messages?

A.

Create two @onMessage methods in the same endpoint with appropriate parameter types.

B.

Define the @onMessage methods in your endpoint with Object as parameter and check the actual type in your code.

C.

You can achieve this only by creating separate WebSocket endpoints for each message type.

D.

Create two @onMessage methods, each with appropriate decoder attribute in the same endpoint.

Full Access
Question # 18

Which annotation allows a request to be executed with another Principal’s identity?

A.

It is not possible to execute a request with another Principal’s identity.

B.

@UseIdentity

C.

@RolesAllowed

D.

@Runs

Full Access
Question # 19

You have been asked to implement internationalization in your JSF web application.

Where do you configure the supported locales?

A.

in the tag of the Facelet page

B.

in the web.xml file

C.

in the faces-config.xml file

D.

in the src folder

Full Access
Question # 20

Given the following class definition with numbered lines:

How do you specify to use this mock CDI bean implementation instead of the regular implementation class?

A.

Use the alternatives element in the beans.xml file and specify the class name in the class element within it.

B.

Start up the server with the optional –alternative command-line option, specifying any alternative class names in a comma-separated list.

C.

Reorder the implementation names in the beans.xml file such that the desired alternative is listed earlier.

D.

Delete the regular implementation class from the WAR.

Full Access
Question # 21

A user is performing a material return transaction against access stock in an Inventory organization; however, the user fails to select the Physical Material Return Required check box.

What happens?

A.

It is considered as accounting-only return.

B.

Stock is reserved.

C.

A transfer order line remains open.

D.

Shipment lines are created.

Full Access
Go to page: