You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Valentin Rentschler <vr...@gmx.de> on 2010/12/06 12:18:56 UTC
OpenEJB with Eclipse, ¨
Hello,
I want to use OpenEJB with OSGI (in Eclipse, to be precise). I started with the example that's available at http://people.apache.org/~jgallimore/projects.zip. In that example only one bundle is used (test.ejb). Now I of course want to put the interface (Echo) apart from the implementation (EchoImpl). This works fine. But I also want entities and I want them in a seperate bundle (i.e. test.ejb.domain), so that I can load them dynamicaly at runtime. Sadly, when I put my entity away from the test.ejb bundle into a seperate bundle, OpenJPA fails to create the entity with the following exception:
org.apache.openjpa.persistence.ArgumentException: No metadata was found for type "class test.ejb.domain.Entity". The class is not enhanced.
So, any idea on how to structure my bundles correctly?
--
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl