|
EE isn't actually required. The designed the Persistence API so that a persistence engine can run outside of an EJB container. You do need some required API and impl jars though. As this becomes more popular I'm hoping that Hibernate will slim down their implementation. There seems to be a lot of extraneous jars that are only mildly used. Another possibility is to switch to JavaDB/Derby and the new persistence impl that comes with Glassfish (I forget the name). I've heard with pack200 you can get the jars down under 2megs, which is alot smaller than most desktop apps. I'll post more on it as I research other alternatives. |