Hi all. Question: I'm trying to stream a JDBC Blob as a response. The database transactions are handled in a http4k filter. However, when Jetty tries to create the HttpServletResponse and reads the Inputstream, we're not in the context of the http4k transaction filter anymore. At that point, the JDBC resultset is closed and the inputstream cannot be read anymore. Is there any way out of this?
Jippe Holwerda
09/08/2021, 9:35 AM
I'm wondering if it is possible to move the transaction handling to a ServletFilter
Jippe Holwerda
09/08/2021, 10:10 AM
basically I want my transaction filter to wrap the httpservletrequest/response, instead of the http4k request/response
Jippe Holwerda
09/08/2021, 11:27 AM
ok, for now I've worked around the issue by implementing my own
ServerConfig
version of Jetty. In there, I've implemented my transaction handler in a custom