Hello friends,
I am working on online book store project using Java and Servlets. I am struck at desgining part. The scenario is simple anyone can come and search books but only registered customers can buy them.
1. Is it good to create multiple database connections or single connection? If possible, guide me how to make a single connection per user.
2. Where should i include 'Search' functionality. as a seperate class containing different search methods like search transaction, search memeber, search book and so on...
<I am having customer, transaction, bookdetails classes>
3. Since it's based on Servlets and Java, guide me for better way of making connections please....
Thank you guys.