Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Help!!!

Help!!!

Scheduled Pinned Locked Moved Database
javasysadminhelpquestion
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    James WG Murphy
    wrote on last edited by
    #1

    I am currently in a Distributed Systems Implementation class. My group has created a project, which is a food ordering system. It is coded in Java and uses Microsoft Access to make tables for the users, orders, and items. In this class, we are required to connect our program to two servers, one primary and another back-up. Our professor expects the back-up server to be readily available on another computer if the primary server fails on the first computer. Can anyone explain to me how I would link my java coded proram with access to two servers? Thanks

    _ D 2 Replies Last reply
    0
    • J James WG Murphy

      I am currently in a Distributed Systems Implementation class. My group has created a project, which is a food ordering system. It is coded in Java and uses Microsoft Access to make tables for the users, orders, and items. In this class, we are required to connect our program to two servers, one primary and another back-up. Our professor expects the back-up server to be readily available on another computer if the primary server fails on the first computer. Can anyone explain to me how I would link my java coded proram with access to two servers? Thanks

      _ Offline
      _ Offline
      _Damian S_
      wrote on last edited by
      #2

      Open a connection to the primary server and test it. If it fails, open the connection to the backup server.

      I don't have ADHD, I have ADOS... Attention Deficit oooh SHINY!! Booger Mobile (n) - A bright green 1964 Ford Falcon - our entry into the Camp Quality esCarpade!! Do something wonderful - make a donation to Camp Quality today!!

      1 Reply Last reply
      0
      • J James WG Murphy

        I am currently in a Distributed Systems Implementation class. My group has created a project, which is a food ordering system. It is coded in Java and uses Microsoft Access to make tables for the users, orders, and items. In this class, we are required to connect our program to two servers, one primary and another back-up. Our professor expects the back-up server to be readily available on another computer if the primary server fails on the first computer. Can anyone explain to me how I would link my java coded proram with access to two servers? Thanks

        D Offline
        D Offline
        David Mujica
        wrote on last edited by
        #3

        I'm not a Java guy, but I believe the basic approach is something like this: 1) In all of your data access methods, you will need to open 2 connections to the databases; primary and secondary. 2) During your inserts/updates/deletes you will need to make it in both databases. 3) After attempting to make your connection to your primary database, if it fails, you should set some global flag indicating to all of your other database methods should reference the secondary database. If you really want to be fancy, you could implement a round-robin access method for your primary and secondary databases to provide a load balance between them. Extra brownie points ! Good luck.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups