• 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: 3610
16
Firefox Browser Java Mac OS X
  • 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.


 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!