This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

157: 1) Definition of web.xml -> "distributable". 2) question regarding stack trace.

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
just in the final countdown regarding the IBM-157 test. I have two questions that i would like to discuss with you.
The first one is about the distributable flag within the web.xml deployment descriptor. Is there a more detailed description when we can set this flag to distributable as in the servlet spec?
There are all these best practices like implementing the serializable interface, don't use member variables in servlets, don't use the SingleThreadModel, no large object graphs in the session and so on, but is there a definition when a webapp is distributable and behaves the web container differently??

My second question is how looks the stack trace different when using a java exception breakpoint or a method entry breakpoint (caught / uncaught) ?
-> question from ICE ... .
Thanks for your answers.

With kind regards from Germany
Gerd Watmann
SCJP & OOA /OOD ;-)
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Gerd Watmann:

...
The first one is about the distributable flag within the web.xml deployment descriptor. Is there a more detailed description when we can set this flag to distributable as in the servlet spec?


distributable is new with Servlet 2.2 api.
Below is from developer.java.sun.com

What's New in Java Servlet API 2.2?
By Jason Hunter; Reprinted from JavaWorld
October 1999

Distributed Applications
A few clarifications were also made in 2.2 with regards to distributed applications, in which application components can be spread across multiple back-end server machines.
The specification dictates that, for an application marked as distributable in its deployment descriptor, there will be a single ServletContext instance per JVM. This means the context attributes cannot be used to share global information. Global information in a distributed app needs to be stored externally from the Web server, as is the case in database or EJB component.

 
Don't MAKE me come back there with this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!