Announcement Announcement Module
No announcement yet.
Delegating Proxy/interceptor Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Delegating Proxy/interceptor

    I have a case where some methods in a business interface will be invoked synchronously via EJB and some asynchronously via JMS. The client code will only use the business interface and will not be aware of the transport (EJB vs JMS).

    I have built a Delegating proxy and interceptor to meet this requirement.

    The interceptor is generic and can be added to any proxy to delegate to another bean based on method name pattern.

    Is this the right approach ?