Tag: jdbc
-
Examining ResultSet values when manually unpacking a JDBC ResultSet
When writing Java applications and storing data in an SQL database I much prefer to manually write SQL code and use JDBC operations directly. Yes, there will be boilerplate code that an ORM like hibernate could save you. But the end result is efficient, high performance, robust against software upgrades and, once tested, rock solid,…
-
How to query in-memory SQL databases in JUnit tests
Using in-memory databases like H2 and derby in JUnit tests are a simple and cheap way to test code with JDBC operations against an actual RDMS. Since starting an in-memory database is much, much, cheaper and faster than a full blown RDBMS such as PostgreSQL or Oracle or MSSQL, it is viable to spin up…
-
1990-ies picture archives in modern skin
I have written a reactjs web application, that displays images from a 1990-is picture archive in a modern, mobile friendly UI, that also tries to use the available space on large displays (responsive layout from bootstrap v4). The URLs of both the individual pictures and albums, contains opengraph and twitter card meta tags, that makes…
-
Composing applications with karaf features
I create web applications by first creating a set of OSGi bundles that form the building blocks of the application, and then use karaf features to pull the building blocks together to create complete applications that run inside apache karaf.
-
Rewriting applications to use pax-jdbc-config and liquibase
After creating the post Pluggable databases for apache karaf applications I posted a link to the blog post in the karaf user mailing list, and the immediate response was, “why didn’t I just pax-jdbc-config instead?“. The answer to that is that I didn’t know about pax-jdbc-config. I started using pax-jdbc in the summer of 2016,…
-
Pluggable databases for apache karaf applications
Edit: I no longer use this approach. I use pax-jdbc-config instead. See the article Rewriting applications to use pax-jdbc-config and liquibase for details