hai, i have to communicate 2 java projects i want to access second project database from first project here the condition is that no interaction b/w those 2 projects ie don't have to use jdbc connections to get data from second project how can i access database of second project? is it possible with webservices?
I don't fully understand exactly what you're trying to do, but it sounds like you have one application that uses a database, and you want to access that data from another application. Web Services is certainly an option, but others do exist; You could expose a stateless session bean to do the business logic of accessing the database. This would allow you to implement security based on who is accessing the database, rather than "all or nothing". A web service call may introduce unnecessary overhead and performance issues instead of going with an EJB.