Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1919

JPA connection closing over night and not reconnecting next day?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • jpa-2.7.2, tx-control-1.0.1
    • None
    • JPA, tx-control

    Description

      Hello,

      I'm facing an issue using Apache Aries JPA in an OSGi R7 enroute based application.

      I've tried to follow the same approach as explained in the enroute tutorials to use JPA with TX control. I'm using karaf as runtime.

      When I start my karaf and I connect to the database everything is working fine and I can work with the application all day long. The next day, when I try to read from the database, I get a stacktrace saying the connection is closed.

      I'm not sure how I can control how the runtime handles connection opening and closing in the pool. I was expecting that if the connection got closed over night, the runtime would reopen it or use a new one from the pool?

      I'm attaching a bunch of files, hopefully this can help identifying what I'm missing.

      Many thanks in advance for your support.

      Regards,

      Alex

       

      Attachments

        1. jpa_service_list.txt
          2 kB
          Alex Weirig
        2. jpa_stacktrace.txt
          20 kB
          Alex Weirig
        3. persistence.xml
          1.0 kB
          Alex Weirig
        4. configuration.json
          0.7 kB
          Alex Weirig

        Activity

          People

            Unassigned Unassigned
            alex.weirig@technolink.lu Alex Weirig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: