File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes JAX-RPC question clarification Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "JAX-RPC question clarification" Watch "JAX-RPC question clarification" New topic
Author

JAX-RPC question clarification

Divya Gehlot
Ranch Hand

Joined: Sep 10, 2006
Posts: 243
Hi,
I need calrification for the following question.

which two are true about JAX-RPC web services?(choose two)
1.EJB based endpoints are always invoked one thread at a time.
2.servlet based endpoints are always invoked one thread at a time.
3.EJB based endpoints may be invoked by multiple threads at the same time.
4.Servlet based endpoints may be invoked by multiple threads at the same time.
Answer:1,4
My opinion correct answer could be:2,3
As far as I know EJB endpoints supports multiple thread transactions where servlet end points doesnt.
Am I in right track?
Please calirfy me.
Thanks in advance.


SCJP1.5(81%), SCDJWS(94%), next mission SCEA (but need to wait or that)
Sumeet Raheja
Greenhorn

Joined: Dec 01, 2004
Posts: 16
In EJB endpoint there are Session Bean which are stored in a Pool and invocation is done on any Bean which is free and available in the Pool so it is NOT multithreaded as for "n" number of request "n" number of Bean wll be used from the pool hence option <B>1</B> is true

For Servlet based endpoint , it is always One instance of servlet which handles "n" number of request so it is Multithreaded in nature hence option <B>4</B> is true
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAX-RPC question clarification