Archive for the 'Java' Category
JPA JsonNode MySQL JSON Converter
Thursday, May 7th, 2020How to implement a Spring Boot domain object / JPA entity that handles Stripe event webhook callback, using a custom @Convert to save to a MySQL database as a json type column.
(That should cover the buzzwords, Google bait and scare off anyone who doesn’t care.)

Creating a SSH Tunnel in Java
Sunday, April 9th, 2017How to create a SSH tunnel in a Java app from a localhost port through a jump box to a specific port on a server. Allowing a connection to the remote server port as if it was a localhost port.
Examples found online provided only one ‘hop’, not the double ‘hop’ needed. The code below supports 2 hops, but in theory could be used to support any number of hops.
(more…)