Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12272

PgEventEndpoint should handle wrapped connections

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.21.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      PgEventEndpoint tries to cast connections obtained via a DataSource to PGConnection. In some environments where the DataSource is managed by a container, the connection object may be a wrapper for the original connection. We should check if the connection is wrapped and do an unwrap to avoid ClassCastExceptions.

        Attachments

          Activity

            People

            • Assignee:
              jamesnetherton James Netherton
              Reporter:
              jamesnetherton James Netherton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: