AoJ : ADBA Over JDBC
Douglas Surber
douglas.surber at oracle.com
Mon Apr 9 23:09:09 UTC 2018
ADBA is Asynchronous Database Access, a non-blocking database access api that Oracle is proposing as a Java standard. ADBA was announced at JavaOne 2016 and presented again at JavaOne 2017. The ADBA source is available for download from the OpenJDK sandbox as part of the OpenJDK project. You can get involved in the ADBA specification effort by following this list.
Reading a bunch of JavaDoc and interfaces can be interesting, but it is not nearly as engaging as having actual running code to play with. To that end, we have uploaded the beginnings of an implementation of ADBA running over standard JDBC, AoJ. AoJ is available for download from GitHub under the Apache license. It should run with any reasonably standard compliant JDBC driver.
https://github.com/oracle/oracle-db-examples/tree/master/java/AoJ
AoJ implements only a small part of ADBA, but it is enough to write interesting code. It provides partial implementations of DataSourceFactory, DataSource, Connection, OperationGroup, RowOperation, CountOperation, Transaction and others. These implementations are not complete but there is enough there to write interesting database programs. The code that is there is untested, but it does work to some extent. The saving grace is that you can download the source and improve it: add new features, fix bugs, try out alternate implementations.
Oracle is not proposing AoJ as an open source project. However, because AoJ is released under the Apache license, the Java community can fork the code and create a true open source project with this upload as a base. Oracle developers may contribute when we have time, but this would have to be a Java community effort.
We could have held this code back and worked on it longer. Instead we thought it better to get it to the community as soon as we could. We hope that you agree.
Douglas Surber
Oracle Database JDBC Architect
More information about the jdbc-spec-discuss
mailing list