Hello JBoss users, > > This task is performed by a class called DAOBuilder. It parses an XML file > > (for example, AccountDAO.xml), generates some java code (i.e. > > AccountDAO.java) and compiles it (AccountDAO.class) > > The generated classes are copied into a spool directory that has been added > > to the JBOSS_CLASSPATH variable at startup. > > Don't do that. put the generated classes into your ejb jar file instead.
Ok, I found a solution. The DAOBuilder, instead of using Class.forName(className) to load the generated classes, uses a URLClassloader. I changed the code in this way: URLClassLoader myClassLoader = new URLClassLoader( new URL[] { new File(pathToGeneratedClasses).asURL() } ,Thread.currentThread().getContextClasspath() ); myClassLoader.loadClass(className); In this way, I don't have to add directories to my system classpath, and the generated classes can access the libraries under ext/lib. Do you think it is an acceptable solution ? Thank you very much, -- Ludovico Basili Software Engineer Allied Telesis K.K. Phone +39 02 41411245 - FAX +39 02 41411260 - email [EMAIL PROTECTED] _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user