Originally posted by Marilyn de Queiroz:
Suppose you write an application (not a servlet) and you have two classes that need to share some common data. How do you do it?
I can think of a few ways to do it including sockets, pipes, files, IBM message queues, RMI, databases, writing and reading papertape or punched-cards, and one other simpler way that would definitely need one of them there Magical Mystery Classes or whatever.
PS I forgot, JMS would also be a possibility.
Using the ServletContext would expose the data outside the two servlets required by the transaction. So maybe I should not wander off in that direction.
One more leetle question: For OOP-4a, do I need to persist the the Video Library data between restarts of the server?
[ January 19, 2003: Message edited by: Barry Gaunt ]