I use H2 bundle in eclipse RCP application. It uses java implementation like this:
create alias MY_FUNCTION for "com.fun.MyFunctions.myFunction";
where MyFunctions is public class and myFunction is public static method.
It was working for H2 versions 1.3.170 or older, because of following declaration in the MANIFEST.MF:
Newer H2 versions don't have this declaration anymore and therefore I get ClassNotFound exception.
In the git log of the H2 I found following comment (for the commit removing DynamicImport):
Improved OSGi support. H2 now registers itself as a DataSourceFactory
service. Fixes issue 365.
Documentation was not very helpful:
Do you have any idea how can I add my dependency now?