• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling external web service from controller?

 
Asif Fraz
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have this question that if i have to call an external web service to reach a business decision, is it ok if i call the external web service from the application controller while i also have a business layer with ejbs?

For example this will result in a call from the presentation layer to the integration layer bypassing the business layer. Will it be acceptable or not?

Regards,
Asif
 
K. Tsang
Bartender
Posts: 3585
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ideally interacting with external systems should be done using DAO in the integration tier, which communicate with the business tier mostly.

I will recommend you call the web service in the business tier and pass that decision result back to presentation tier.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic