This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Integration of web service

 
Anil Chowdary
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?
 
Dinesh Kumaar
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic