2 Replies Latest reply: Apr 11, 2012 10:33 AM by 929976 RSS

    can berekely DB be accessed by two seperate JVM instances

    929976
      we are building an application with two processes running seperately on seperate jvm instances
      can these two processes access the Berkeley DB concurrently?
      Does berkeley DB support this feature.
        • 1. Re: can berekely DB be accessed by two seperate JVM instances
          512799
          I assume you are using Berkeley DB Java Edition and not Berkeley DB (the C version) with the Java API. If the latter, please post your question in
          the Berkeley DB forum.

          Your question is discussed in the Getting Started Guide:

          Moreover, JE allows multiple processes to access the same databases. However, in this
          configuration JE requires that there be no more than one process allowed to write to the
          database. Read-only processes are guaranteed a consistent, although potentially out of
          date, view of the stored data as of the time that the environment is opened.

          See the Getting Started Guide for further explanation

          Ron Cohen

          Edited by: Oracle, Ron Cohen on Apr 11, 2012 8:21 AM
          • 2. Re: can berekely DB be accessed by two seperate JVM instances
            929976
            Thanks for the reply Ron. It clarifies.
            btw I am using Berkeley DB Java edition only.