StockTeller is a Java-based application designed to retrieve the current market for a
portfolio of publicly listed stocks. You have been tasked to design a bolt on module for
StockTeller called EBroker, a Java E-based online application that needs to asynchronously
communicate with StockTeller to retrieve market prices for securities in a secure manner.
Which web service technology would you choose to integrate StockTeller into the EBroker
application?
A.
JAX-WS using HTTP
B.
JAX-WS using HTTPS
C.
JAX-RPC using HTTP
D.
JAX-RS using HTTPS
I think the answer is D.
A does not use HTTP protocol
Correct Ans : B
Reason : needs to asynchronously
communicate with StockTeller to retrieve market prices for securities in a secure manner.
asynchronously + Security (JAX-WS has inbuilt security)
Ignore above answer.
I would say D is correct answer reason :
JAX RS with HTTPS
Reason : For Secure Manner , HTTPS is right option. Only need to fetch data (i.e. Read only operation) hence JAX-RS is good option.