Doesn't the RMI engine create multiple connections and manage them?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I saw a few posts out here about a serverConnectionFactory class and did not understand the reason for it.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
A better way of doing it is to have a "Factory" class. In your GUI, you create your connection using the Factory class, and do all your database calls through the connection object that you get returned.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Hi Prakash,
What does LockManager and ReadWriteLock classes does in your design?
Do you have lock/unlock methods in your DB interface?
and how do you do a clean shutdown on the server? Do you consider calling the unbind() method as way to shutdown the server?
"I'm not back." - Bill Harding, Twister
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |