[ 
https://issues.apache.org/jira/browse/ARTEMIS-2626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17041257#comment-17041257
 ] 

ASF subversion and git services commented on ARTEMIS-2626:
----------------------------------------------------------

Commit ac98cda22451f0aaf6e70ded9aca4e234449b0b7 in activemq-artemis's branch 
refs/heads/master from Emmanuel Hugonnet
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=ac98cda ]

[ARTEMIS-2626]: Postgresql Journal implementation requires direct access to 
PostgeSQL driver internal classes.

Issue: The BLOB manipulation is done using PostgreSQL internal classes starting 
from PGConnection.
This leads to ClasCastExceptions if the connection is wrapped in a pool or if 
the driver is in a different classloader (WildFly).

Fix: unwrap the connection and if the PostgreSQL classes are not directly 
available uses reflection to manipulate the BLOBs.

Jira: https://issues.apache.org/jira/browse/ARTEMIS-2626


> Postgresql Journal implementation requires the jdbc driver to be in the same 
> classloader
> ----------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-2626
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2626
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.11.0
>            Reporter: Emmanuel Hugonnet
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> The postrelsq journal implementation makes direct use of Postgresql classes 
> which requires them to be directly accessible from the implementation 
> classloader.
> Also it doesn't take into account the fact that the PGConnection may have 
> been wrapped (for example if it comes from a pool).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to