'Maverick Skywalker' via jOOQ User Group
2018-11-04 16:19:30 UTC
I'm using the jOOQ transactions inside a servlet but now I run into a
issue. How I can access the request and response object from inside the
tranaction?
With mockup strings and logging the issue wasn't recognizable. I'm using
JDK 1.8 and Java EE 7 Web.
protected void processRequest(HttpServletRequest request,
HttpServletResponse response) {
// ...
tx.transaction(new TransactionalRunnable() {
@Override
public void run(Configuration configuration) throws Throwable {
DSLContext tx = DSL.using(configuration);
// How I can access the request or response object?
}
}
}
issue. How I can access the request and response object from inside the
tranaction?
With mockup strings and logging the issue wasn't recognizable. I'm using
JDK 1.8 and Java EE 7 Web.
protected void processRequest(HttpServletRequest request,
HttpServletResponse response) {
// ...
tx.transaction(new TransactionalRunnable() {
@Override
public void run(Configuration configuration) throws Throwable {
DSLContext tx = DSL.using(configuration);
// How I can access the request or response object?
}
}
}
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.