Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Where can REST web services be used in Spring/Hibernate web application?  RSS feed

 
Ekaterina Galkina
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) I know that one can make ajax call from html page to get data to update page partially

2) Can I use REST services in a distributed web app instead of RMI to access data model, located on a separate VM?

See the pic with RMI https://hostingkartinok.com/show-image.php?id=cf76b7f131a37b47742a769cc4fcb40d

3) Any other cases to use  REST web services in Spring/Hibernate web application?
 
Ekaterina Galkina
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


2) Can I use REST services in a distributed web app instead of RMI to access data model, located on a separate VM? I mean the calls from a servlet (1nd VM) to a Datamodel where database is located (2nd VM)
 
Rob Spoor
Sheriff
Posts: 21044
85
Chrome Eclipse IDE Java Windows
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure. Just use an HTTP or REST client to do the requests instead of calling the remote interface.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!