• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adapter in Integration tier

 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
People,

I have a quick question. I have a requirement where the facade needs to send an async request to an internal queue.

Now, how should the component diagram look like?

I am showing the queue and also the facade class. But I am not really happy with an idea of showing an interaction between them directly. So I use an adapter class. Now the point is, can i show up the adapter class in the integration tier?

In short,

Facade (BI tier) --> Adapter (INT tier) --> Queue

I cannot use a DAO here because I am making an async request which logically does not sound good with DAO.

Thanks in advance for your help.
Appreciate your replies.
Srini
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure why this requires an Adapter ? What you seem to need is simple a class that will communicate with your Queue right ? An Adapter is supposed to call one API is lieu of another. You are not doing that here.
 
Rishi Shehrawat
Ranch Hand
Posts: 218
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adaptor lets classes work together that couldn't otherwise because of incompatible interfaces. From what i have understood this does not seem to be the case.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic