users@glassfish.java.net

Re: EJB Module with Entity class in library

From: <glassfish_at_javadesktop.org>
Date: Mon, 14 Dec 2009 08:29:17 PST

If you tell NetBeans to include and package the entity JAR in both the EJB and WAR projects, then you should expect it to do exactly that.

You probably want both the EJB and WAR projects to be dependent on the entity JAR (for compilation purposes) but not to package the JAR into each project (uncheck the package option in NetBeans). Instead you'll want to package the entity JAR in the EAR so that both the EJB and WAR projects can access it at run-time and it's packaged only once.

- JB
[Message sent by forum member 'jimbudet' ]

http://forums.java.net/jive/thread.jspa?messageID=376444