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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:04:33+00:00 2026-05-12T20:04:33+00:00

we have a J2EE app on which we’re still working. It runs on Oracle

  • 0

we have a J2EE app on which we’re still working. It runs on Oracle DB. and the business tier is coded with EJB 2.0 with a rich client interface.

now, the application is going to be deployed on multiple sites. and each site will be creating new items (new contracts, etc.).

what we want to realize is to duplicate all new items added to a central location DB using same DB schema as local ones.

what do you think is the most effective way to accomplish this ?

I’ve thought about serializing all new items created and sending them to the remote site for integration through Java Message Service queue. is that approach good ?

and there’s also going to be some changes to be replicated back to the satellites.

  • 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-12T20:04:34+00:00Added an answer on May 12, 2026 at 8:04 pm

    I would say that a synchronous relationship with the centre introduces coupling that you don’t want. Hence your asynch idea seems pretty good to me. You presumably have some location-dependent identifier in the records so that new contracts creations in the different locations will not clash and you accept some latency in the replication to the centre.

    So the simple case is that just use JMS messages from each location to the centre.

    The nice thing about this appraoch is that the satelites don’t even need to know about the database structure in the centre, it can be designed completely idepedently.

    Things get more interesting if you also need to replicate changes back from the centre to the satelites. The big question is whether we might get conflicts between changes at the centre and changes at the satelite.

    Simple case: Any data item has one “home”. For example the originating satelite is the place where changes are made. Or after creation the centre is the only place ti make changes. In which case we can treat the centre as the “Hub”, it can propogate changes out to the satelites. Simple JMS will do just fine for that.

    Slightly harder case: Changes can be made anywhere, but only in one place at a time. Hence we can introduce somne kind if locking scheme. I would tend to have the Centre as the owner and use synchrnous web services to lock and update the data. Now we are coupled, but that necessary if we are to have a definitive owner.

    Quite complex case: Anyone can changes anything anywhere without locking. It’s kind of an “Act First, Apologise Later” approach. We take the optimistic approach that changes won’t clash. We can send the changes for approval to the centre and the centre can either use an optimistic locking or merge non-conflicting changes approach. I would tend to do this by queueing changes a the originator, but actually processing them by synchronous calls. So decoupling the specification of change from the availability of the centre. Some more sophisticated Databases have diff/merge capabilities that may help with this.

    Big questions are the extent to which you want to be coupled to the availability of the centre and the likelihood of conflicting changes. Quite often cunning application design can greatly reduce the likelihood of conflict.

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

Sidebar

Related Questions

I have a J2EE app deployed as an EAR file, which in turn contains
I am working on a old J2EE struts app which has very bad UI
We have a J2EE app built on Struts2+spring+iBatis; not all DAO's use iBatis...some code
We have a Spring + Ibatis based J2EE app. I planned to wrap around
I have a J2EE application with a web service which goes like http://servername/service?task=getFile&id=25 How
I have a J2EE/JSF-based web-app. It consists of an form-input, a text display and
I have a shell script which I'd like to trigger from a J2EE web
I am using Tomcat6/J2ee app with Hibernate jpa libraries. I have database connection properties
Greetings all i have a j2ee app using spring framework and while debugging on
I have a Spring app which launches a REST Service within an embedded instance

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.