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

Where does servlet reside?

 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The phrase from JBuilder tutorial:
Once the servlet is loaded into memory, it can reside in a local file system, a remote file system, or on a network.

I do not get this phrase:
if servlet is loaded into memory why should it also reside out of it, at all?
What is the difference or what are remote file system and "on a network"?
 
chanoch wiggers
Author
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
servlets live for a very long time - and may be serialized and deserialized to some kind of persistent store rather than destroyed when not needed - i guess that they are trying to say that the servlet may be persisted to the hard drive etc.
With regards to remote file system vs "on the network" one way of thinking of this might be serializing your servlet instances onto a database though you would really have to have a gigantic systme or unusual needs to go to that trouble I think. The usual alternative is to just keep loading the system up with mroe resources or move different tiers of the app apart from each other.
remember that file systems are just a way of organizing data on a hard drive. For example, i dont know how you visualize a database, but some just use the file system to organize themselves, while others might use a huge file to hold the info etc.
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks chanoch,
somehow I am staying confused, but I started only yesterday
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic