This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

is it possible with web services  RSS feed

 
raju parepally parepally
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?


Thanx in advance


regards
nagaraju
 
Michael Valentino
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!