|
From: Kevin N. <bea...@ya...> - 2005-01-18 21:05:57
|
I have a varsion of the server which will send a full catalog to a client. The way it is currently implemented, each ServerSocket instance recatalogs the filesystem and sends the resulting catalog. It would be nicer if it could request a copy of the catalog from the jukebox. This would be useful if new files were added to the filesystem, but the jukebox has not been reindexed, or if the configure file was changed since the jukebox was started. My understanding is a SocketListener creates a new ServerSocket when a connection is established. How would you suggest I set it up so the ServerSocket can get the catalog. Is there a good way to set up a static pointer to the Jukebox...should I make the Catalog a static object in the Jukebox? Let me know your ideas. Did your Design Patterns book have anything you'd like to implement in Tjukebox? Kevin __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 |