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

Invoke a webservice based on some scheduler  RSS feed

 
soumi bardhan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I need to invoke a restful webservice Client(Rest) from my Webapp based on some scheduler .
Also I need to persist the data which the webservice returns in response

So basically- 1. Scheduler triggers, I need to build the rest service request (JSON) and invoke it.
2. Capture the response of the webservice and persist the data in DB.

Can you please help me with this.

Technical stack used- Spring MVC
 
Mark Moge
Ranch Hand
Posts: 100
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use EJB with a timer and expose it as web service.
 
soumi bardhan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark..

App A-- > Polls data from DB-->Creates the WS Client Request -->Takes the response and persists the data returned in DB.


 
Mark Moge
Ranch Hand
Posts: 100
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB can be a WS client as well
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!