This example uses OpenEJB hooks to replace an EJB implementation by a proxy to uses Spring Data in your preferred container.
It is pretty simple: simply provide to OpenEJB an InvocationHandler using delegating to spring data and that's it!
It is what is done in org.superbiz.dynamic.SpringDataProxy.
It contains a little trick: even if it is not annotated "implementingInterfaceClass" attribute is injected by OpenEJB to get the interface.
Then we simply create the Spring Data repository and delegate to it.
svn co http://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/spring-data-proxy cd spring-data-proxy mvn clean install
All edits are reviewed before going live, so feel free to do much more than fix typos or links. If you see a page that could benefit from an entire rewrite, we'd be thrilled to review it. Don't be surprised if we like it so much we ask you for help with other pages :)NOTICE: unless indicated otherwise on the pages in question, all editable content available from apache.org is presumed to be licensed under the Apache License (AL) version 2.0 and hence all submissions to apache.org treated as formal Contributions under the license terms.