Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Integration of web service  RSS feed

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a doubt regarding the integration of web service to J2EE application. Where should the code to invoke the web service go? Should it be some EJB client? If we call the service asynchronously, then we can go for some MDB(Message Driven Bean). But when the call has to be by synchronous, what option do we have?

The option of creating a EJB as a client to a web services doesn't make much sense to me. I'm thinking of creating a utility class that takes care of calling the web services and use that utility calls in my Stateless session bean that contains the business logic. I'm might name utility class as XZXDAO. Is it a good idea?

Appreciate your time.

Thanks & Regards,
Anil Chowdary K
 
Anil Chowdary
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the above message, By Utility class I mean a "DII"(Dynamic Invocation Interface) client.
1. Which layer will this class go? I assume it as Integration later.
2. What kind of naming convention we should use for such classes? I'm not sure if I can call it as DAO?

Thanks & Regards,
Anil Chowdary K
 
Anil Chowdary
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please answer this question?
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Anil Chowdary wrote:In the above message, By Utility class I mean a "DII"(Dynamic Invocation Interface) client.
1. Which layer will this class go? I assume it as Integration later.
2. What kind of naming convention we should use for such classes? I'm not sure if I can call it as DAO?

Thanks & Regards,
Anil Chowdary K



1. Yes it is integration layer
2. This class kind of acts as a proxy.
 
Anil Chowdary
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Dinesh.

-Anil
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!