What is true about Message-Driven Beans (MDBs)?

Correct Answer for the Question – What is true about Message-Driven Beans (MDBs)? is given below What is true about Message-Driven Beans (MDBs)? MDBs can participate in transactions. MDBs are invoked synchronously. Each MDBs can process messages only from a single client. MDBs retain data caches between client calls. Correct Answer The Correct Answer for this … Read more

Which two elements CANNOT be injected by using an @Inject annotation?

Correct Answer for the Question – Which two elements CANNOT be injected by using an @Inject annotation? is given below Which two elements CANNOT be injected by using an @Inject annotation? static fields instance fields declared final concrete methods abstract methods Correct Answer The Correct Answer for this Question is instance fields declared final abstract methods … Read more

Which statement is true about JAX-RS resource implementation?

Correct Answer for the Question – Which statement is true about JAX-RS resource implementation? is given below Which statement is true about JAX-RS resource implementation? The REST resource implementation class must extend the javax.ws.rs.core.Application class The REST resource class can be implemented as a stateful Enterprise JavaBean (EJB). The REST resource class can be implemented as … Read more

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?

Correct Answer for the Question – 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? is given below When handling a JSF request, your application code decided to redirect the … Read more

Which you can receive partial messages. (Choose two.)

Correct Answer for the Question – Which you can receive partial messages. (Choose two.) is given below Which you can receive partial messages. (Choose two.) Define an @OnMessage method with a single MimePart parameter. Use a ChunkListener interface implementation. Use a MessageHandler.Partial interface implementation. Define an @OnMessage method with byte [] as the first parameter and … Read more

Which class do you use to handle an incoming JSON Message as a stream?

Correct Answer for the Question – Which class do you use to handle an incoming JSON Message as a stream? is given below Which class do you use to handle an incoming JSON Message as a stream? JsonReader JsonObjectBuilder JsonParser JsonObject Correct Answer The Correct Answer for this Question is JsonReader Explanation The Question – Which … Read more

Which two Java EE technologies can be used in the integration tier of the application?

Correct Answer for the Question – Which two Java EE technologies can be used in the integration tier of the application? is given below Which two Java EE technologies can be used in the integration tier of the application? JMS JSF JPA JCA Correct Answer The Correct Answer for this Question is JMS JSF Explanation The … Read more

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

Correct Answer for the Question – Which type allows you to share servlet attributes across your entire web application? is given below Which type allows you to share servlet attributes across your entire web application? ServletContext HttpSession ServletRequest ServletConfig Correct Answer The Correct Answer for this Question is ServletContext Explanation The Question – Which type allows … Read more

How can you specify this?

Correct Answer for the Question – How can you specify this? is given below How can you specify this? setting the priority attribute of the @WebFilter annotation for each of the filters placing the filter mapping elements in the required order in the web.xml deployment descriptor placing @WebFilterMapping annotations in the required order specifying the filter … Read more

When should a JPA entity implement the Serializable interface?

Correct Answer for the Question – When should a JPA entity implement the Serializable interface? is given below When should a JPA entity implement the Serializable interface? when JPA entities are used in the EJB Full container when JPA entities are used outside of the EJB Lite container always, because JPA entities are required to implement … Read more