• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Adapter in Integration tier

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 218
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic