tree: 5380938c791cba740f6997e562da21716d3c7920 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
examples/spring-data-proxy/README.md

index-group=Unrevised type=page status=published

# Spring Data sample #

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.