Menu

#370 AS400 getConnection() do not work with proxy connection

JDBC
closed-out-of-date
nobody
Proxy (1)
5
2017-04-17
2015-12-10
Felipe Pena
No

Hello,
I was trying to connect to DB2 db using jt400 through proxyServer stuff, but when it does the setProperties() call after getConnection(), the code performs a cast to AS400ImplRemote so the code throws an exception, because the as400 parameter is an AS400ImplProxy one.

Is it intended to getConnection() not work when using proxy? My solution was to use the native getConnection() method from JDBC using three arguments (hence not calling jt400's setProperties()).

Thanks.

Discussion

  • John Eberhard

    John Eberhard - 2017-02-03

    Can you send in the stack trace of the exception?

     
  • John Eberhard

    John Eberhard - 2017-04-17
    • status: open --> closed-out-of-date
     
  • John Eberhard

    John Eberhard - 2017-04-17

    Closed -- no more information provided.

     

Log in to post a comment.