Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SCWCD queries

 
Abhijit Rai
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello people ,
Have a couple of cob webs in my mind (lots of space occupied by spiders)hope you could brush them for me :
1.What is meant by container callback methods,how is doFilter and destroy methods in Filter interface callback methods.Similarly ,please define inlin methods.
2.What is the intercepting filter pattern and are all Filters an example of the same.
3.Are Session attributes thread safe .Can two different clients be part of a session if yes then how will the container achieve it.

Thanks people for caring to take a look ,cheers


Abhijit
 
Rufus Addis
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. A container callback method is AFAIK a method that the container calls in response to another event. Conventionally you'd call a method to trigger a response from the container. In a call back method the CONTAINER calls the method based on something that's happened within the container i.e. a session being destroyed, or a Filter having control returned to it via the response.

2. An explantion of the intercepting filter pattern:

http://java.sun.com/blueprints/patterns/InterceptingFilter.html

for the purposes of SCWCD all filters would be examples of such, but not exclusively so (i.e. you could write a filter pattern that didn't use Filter).

3. Session variables are NOT thread safe. For example you could open a second browser window that has the same session url / cookie. Any updates to session variables caused by one browser window could get overwritten by the second browser window.

HTH - Rufus.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic