About Question enthuware.ocejws.v6.2.294 :
Moderators: Site Manager, fjwalraven
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
About Question enthuware.ocejws.v6.2.294 :
Agree with the asyn JAX-RS API. In chapter 10 of Jersey's documentation, there are asynchronous server API and asynchronous client API.
For the async server, the server uses multiple threads to handle multiple client requests concurrently and suspends the clients' connections if it takes too long for the server to respond. That means, the clients don't wait for the server while the server is busy handling all the clients' requests.
For the async client, the concept is callback.When the response is available, the server notifies the client.
Originally, REST is an architecture design based on HTTP. HTTP is synchronous and the implementation of REST application is synchronous. But nowadays, JAX-RS supports asynchronous communications.
For the async server, the server uses multiple threads to handle multiple client requests concurrently and suspends the clients' connections if it takes too long for the server to respond. That means, the clients don't wait for the server while the server is busy handling all the clients' requests.
For the async client, the concept is callback.When the response is available, the server notifies the client.
Originally, REST is an architecture design based on HTTP. HTTP is synchronous and the implementation of REST application is synchronous. But nowadays, JAX-RS supports asynchronous communications.
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.294 :
Nicely said, and in the future of the Web Services certifications asynchronous processing in JAX-RS 2.x might be part of the topics.
As for the EE6 certification: asynchronous Web Services in JAX-RS are not there.
Regards,
Frits
As for the EE6 certification: asynchronous Web Services in JAX-RS are not there.
Regards,
Frits
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
Re: About Question enthuware.ocejws.v6.2.294 :
By the way, I heard WS-security is not supported in JAX-RS.
So, even though JAX-RS 2.0 supports synchronous, using WS-security to encrypt part of the message may not work in JAX-RS 2.0.
WS-security is only supported in SOAP-based web services. But JAX-RS is not SOAP based.
So, even though JAX-RS 2.0 supports synchronous, using WS-security to encrypt part of the message may not work in JAX-RS 2.0.
WS-security is only supported in SOAP-based web services. But JAX-RS is not SOAP based.
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
Re: About Question enthuware.ocejws.v6.2.294 :
As there were discussions about making asynchronous web services, we can make two synchronous calls:
1. Clients send requests to the service. The service uses a JMS queue and message driven bean to process the requests. Clients don't wait for the responses.
2. Service sends responses to the clients when the responses are available.
In this case, it does not matter what API 's(JAX-WS, JAX-RS) we are using or what protocols (HTTPS/HTTP, JMS, SMTP and etc) we are using.
1. Clients send requests to the service. The service uses a JMS queue and message driven bean to process the requests. Clients don't wait for the responses.
2. Service sends responses to the clients when the responses are available.
In this case, it does not matter what API 's(JAX-WS, JAX-RS) we are using or what protocols (HTTPS/HTTP, JMS, SMTP and etc) we are using.
-
- Posts: 124
- Joined: Wed Feb 12, 2014 2:44 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.294 :
Hello ,
The question mentioned "Which technologies should be used?"
But SOAP is not a technology it is just a protocol.
I believe more clarification at problem statement will be useful
The question mentioned "Which technologies should be used?"
But SOAP is not a technology it is just a protocol.
I believe more clarification at problem statement will be useful
-
- Posts: 6
- Joined: Sat Sep 17, 2016 2:29 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.294 :
Hi,
Question is
1. SOAP
2. JAX-WS
3. JAX-RS
4. HTTPS
5. WS-Security
I selected- SOAP, HTTPS, WS-Security. Justification : The question doesn,t deal with Java. So we dont know if the financial company is using .net or java or any other technology. So saying JAX-WS would be wrong in my perspective.
But enthuware sasys, right answers are SOAP, JAX-WS, HTTPS
I have two separate questions
- Why not WS-Security as an answer to this question.
On a completely different note, isn't SOAP a specification rather than a technology ? for that matter (even JAX-WS is a JSR, If am not wrong).
Will we have this kind of tricky questions on exam ?
least but not the last, may be my english skill is too poor to understand the definition of technology
Question is
Answers listed are (Select 3 below)There is a financial company that allows certain products to be requested online via a Web Service. These forms are quite big and involve a lot of processing on the server side. The financial company decides to implement asynchronous processing of these forms in order not to block clients. Apart from that there is a security requirement to encrypt some parts of the message (end-to-end) Which technologies should be used?
1. SOAP
2. JAX-WS
3. JAX-RS
4. HTTPS
5. WS-Security
I selected- SOAP, HTTPS, WS-Security. Justification : The question doesn,t deal with Java. So we dont know if the financial company is using .net or java or any other technology. So saying JAX-WS would be wrong in my perspective.
But enthuware sasys, right answers are SOAP, JAX-WS, HTTPS
I have two separate questions
- Why not WS-Security as an answer to this question.
On a completely different note, isn't SOAP a specification rather than a technology ? for that matter (even JAX-WS is a JSR, If am not wrong).
Will we have this kind of tricky questions on exam ?
least but not the last, may be my english skill is too poor to understand the definition of technology
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.294 :
Really? It shouldn't, can show me a screenshot? The correct answer is SOAP, JAX-WS and WS-Security.but enthuware sasys, right answers are SOAP, JAX-WS, HTTPS
If .NET is amongst the answers I would agree with you, but by looking at the answers it can only be Java and therefore you have to choose between JAX-WS and JAX-RS.The question doesn,t deal with Java. So we dont know if the financial company is using .net or java or any other technology. So saying JAX-WS would be wrong in my perspective.
It actually is, see my first point.- Why not WS-Security as an answer to this question.
I agree that the terminology is not clear, but you can expect these kind of questions on your exam. As a matter of fact this exam is a more theoretical exam than the others.On a completely different note, isn't SOAP a specification rather than a technology ? for that matter (even JAX-WS is a JSR, If am not wrong). Will we have this kind of tricky questions on exam ?
Who is online
Users browsing this forum: No registered users and 75 guests