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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:28:42+00:00 2026-06-11T03:28:42+00:00

I have developed Flex – Java – Spring Web Application that I have deployed

  • 0

I have developed Flex – Java – Spring Web Application that I have deployed into an Amazon EC2 image – all is looking great.

However, I need to auto scale and share User requests between multiple instances of the application that sit on different machines, i.e not within the same Tomcat Container. Amazon manages the load balancing and the application uses AMQ topics to communicate critical application level changes between each of the instances.

One of these notifications might be a property. I have several property files that I inject using the @Value annotation into the relevant Spring beans. These property files reside ina properties folder the class path root (classpath:properties/)

When operating on a single node, when I update a property, I update the in memory value using a setter and also write the change back to the relevant property file using FileInputStream and FileOutputStream. This is easy enough.

However, the obvious problem is now what happens when I autoscale and a new instance is started in a different container? This application will read the deployed (old) version of the property file and ultimately behave differently than the other parallel nodes.

I really would like to maintain file based configuration over a Database if I can – I know that the DB solution will be the most prevalent response here, but any suggestions would be appreciated.

Thanks

  • 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-06-11T03:28:44+00:00Added an answer on June 11, 2026 at 3:28 am

    As far as you are already using JMS topics I’d suggest you to use durable subscription.

    If a client needs to receive all the messages published on a topic, including the ones published while the subscriber is inactive, it uses a durable TopicSubscriber. The JMS provider retains a record of this durable subscription and insures that all messages from the topic’s publishers are retained until they are acknowledged by this durable subscriber or they have expired.

    Take a look on JMS API: http://docs.oracle.com/javaee/6/api/javax/jms/Session.html#createDurableSubscriber(javax.jms.Topic, java.lang.String)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application developed in Adobe Flex 3 and Python 2.5 (deployed
I have developed an application that in the end will save a captured image
I have developed a web site that requires user registration and authentication for some
I have developed a Java server using Eclipse that accepts TCP socket connection from
I have a flex application being developed in Spanish, and I'd like to build
does anyone have an idea or developed before windows authentication through flex application. I
I'm building from scratch a web application that is not trivial (have some algorithms
I have developed simple camera application for Android mobile using flex 4. The problem
I have my application frontend developed in Flex 3. For logging, we are using
I have a Flex application here If you open that link, you'll see it

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.