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 Component Certification (SCWCD/OCPJWCD) and the fly likes question about distributable web applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "question about distributable web applications" Watch "question about distributable web applications" New topic
Author

question about distributable web applications

jeffrey z. lee
Ranch Hand

Joined: Mar 21, 2002
Posts: 40
Which statements are true about distributable web applications?
1) There will be one instance of ServletContext in each VM
2) There will be only one instance of the default ServletContext in only one VM(the default ServletContext is one created for all servlets not deployed as part of an application are assigned)
3) All request that are part of a session must be handled by one VM at a time


jeffrey z. lee
Raj Paul
Ranch Hand

Joined: Jul 09, 2002
Posts: 77
Option 2 & 3 are true. and 1 would be true if the sentence contains non-default servlet instance
jeffrey z. lee
Ranch Hand

Joined: Mar 21, 2002
Posts: 40
does question 3 is true mean that RequestDispatcher can not dispatch request to the servlet in other VM?
Raj Paul
Ranch Hand

Joined: Jul 09, 2002
Posts: 77
Hi
I dont think, a servlet can forward to another servlet located in another JVM.
Kyle Tang
Ranch Hand

Joined: Aug 22, 2002
Posts: 78
BTW, RequestDispatcher can not forward | include any url that is out of the current web-application, no matter what.


Kyle Tang<br />SCJP 91<br />SCWCD 96<br />SCBCD 95
jeffrey z. lee
Ranch Hand

Joined: Mar 21, 2002
Posts: 40
thank Raj Paul and Kyle Tang!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question about distributable web applications