Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6592653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:34:56+00:00 2026-05-25T17:34:56+00:00

First of all bit of background. We are developing an application which receives messages

  • 0

First of all bit of background.

We are developing an application which receives messages from n number of sources. The source may be a messaging queue, an FTP location, a webservice call to a particular service or any possible orchestration layer we can think of. I have been given a task to design and develop a module which will act as a configurable resource manager which will work in between the module which process the message and application which sends the message.

Could you please suggest any design patterns or any best practices I can use here. We would like to have flexibility of configuring this resources and changing the channels on the fly. Means if the message type A comes in queue today, tomorrow this may be a scheduled webservice call.

Any pointers in this regard would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:34:57+00:00Added an answer on May 25, 2026 at 5:34 pm

    For a good answer you should post more details, but it looks like you need strategy design pattern.

    public interface SourceStrategy{
        public Message getMessage();
    }
    
    public FtpLocation implements SourceStrategy{...}
    public MessageQueue implements SourceStrategy{...}
    public WebService implements SourceStrategy{...}
    
    public class Application(){
        SourceStrategy s;
        public void setStrategy(SourceStrategy s){
            this.strategy = s;
        }
        public void readMessage(){
            Message m = this.s.getMessage();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, a bit of context: web.xml: I match all /app/* requests to my dispatcher:
First of all, I'm quite new to the Android and JAVA world (coming from
A bit of background first. I am finding the eigenvalues and eigenvectors of a
First a bit of background. I have been working on the MS platform for
First a bit of background: We have a growing RESTful service layer supporting web
a bit of background first... I am setting up a versioning numbering system for
First, a bit of background info: The HTTP 1.1 specification, circa 1999, recommends that
first of all is there a good tutorial about positioning elements which really explains
First, some background: I've decided to start a new project designed from the ground
Ok, little bit of background here. I have a large scale web application (MVC3)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.