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 6743995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:01:51+00:00 2026-05-26T12:01:51+00:00

I have several servers running the same code but each handling specific messages (they

  • 0

I have several servers running the same code but each handling specific messages (they are spread by geographical area and must should treat all messages related to their area)

I thought to use a single queue and a message selector to filter the different message.

The question is: how to write Java code and deployment plan so that the selector is configured dynamically, based on a config file, the config of application server ( Geronimo 2.2)

The goal is to have the same EAR deployed on all servers.

Thank you.

  • 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-26T12:01:51+00:00Added an answer on May 26, 2026 at 12:01 pm

    For what you want to achieve, Java code does not need to be different, it’s the deployment plan that should change from one server to the other.

    To have the same EAR deployed on all servers, I’d approach it like this:

    1. Write a different openejb-jar.xml for every MDB configuration you want — each would have the same MDB (<enterprise-beans><message-driven> defined, but with different message selectors.
    2. Put each openejb-jar.xml in a separate directory directly inside the EAR file.
    3. Deploy the EAR with externally supplied geronimo-application.xml referring to a particular configuration with <alt-dd> element:
    <module>
       <ejb>your_MDB.jar</ejb>
       <alt-dd>config1/openejb-jar.xml</alt-dd>
    </module>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If several instances of the same code are running on different servers, I would
I have a number of web apps running on several IIS6/Server 2003 boxes. They
We have several java application server running here, with several apps. They all log
Requirements We have several servers (20-50) - Solaris 10 and Linux (SLES) - running
I have a server that has several virtual machines running on it. I'm trying
I have several servers hosted with GoGrid, and every time I reboot one of
I have several functions that I wrote and I use regularly on my servers,
I have a php application that is installed on several servers and all of
Having to interact with several different email servers via IMAP (using javamail), I have
I have several server processes that once in a while respond to messages from

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.