On Sun, 2003-10-05 at 16:26, Ionel GARDAIS wrote: > I am trying to add an EJB load/store layer to the mail > server developped by A. Oliver. > > It needs to access : > - a table with the usernames and passwords > - 1 or more tables for the emails and attached files >
Just create the CMP beans (don't include a jbosscmp-jdbc.xml) JBoss will create tables for the beans when they are first deployed. If the user doesn't like the tables or DefaultDS, they can change the definition by adding a jbosscmp-jdbc.xml to the deployment. Regards, Adrian > A CMP could allow an automatic table creation and easy > finders manipulation. > As the tables should be created on a database choosed > by the user, the choices are : work with a CMP and > allow the user to override the datasource (with all > the problems you said) or to work with BMP, write all > the queries and ask the user to provide > connection-url, jdbc driver, username and password. > > > Or maybe a BMP can use a declared datasource ? > > > One of the aims of CMP is that your code is > > independent > > of the persistence mechansim (which is declared in > > the > > deployment). In principle it could be persisted to > > a flat file system or an object db. > > The idea of the datasource is specified at > > deployment > > (I want jdbc persistence). > > > > Can you restate the problem in that context? > > > ===== -- xxxxxxxxxxxxxxxxxxxxxxxx Adrian Brock Director of Support Back Office JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user