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.