This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I use eclipse/tomcat apache to create web apps.
I have webapp1 , webapp2. I found that webapp1 and webapp2 sometimes use the data from the same table. Some DAO objects are overlapped.
I wonder if i can create a common-dao project /lib that can be used by both webapp1,2 and future web apps based on the same database.
how can i create the share projects/libs. or is there any articles online available about this
You can share libraries by adding them to the server classpath. However, i recommend you not do this. It is better to have the libraries deployed with each web application so you can upgrade them independently.