The only way to do this with CMP is to deploy the same entity for each user (and therefore each database) separately.
thousand thanks for your answer!!!
Because we need it all very dynamic (an administrator should simply click a button to add a user and create a database), it seems CMP is not the right way to go. I read some documents comparing CMP with JDO and we're now pretty sure that we'll use a combination of j2ee session beans on jboss and sth. like hibernate or apache-ojb to do the persistence.
Do you have experience with such a solution or know some useful links (e.g. examples)?
Best regards and I whish you a wunderful, healthy, happy 2004!!!
P.S.: Is the jboss group already aware of the deadly threat SOFTWARE PATENTS? Did you already sign against them?
Because we need it all very dynamic (an administrator should simply click a button to add a user and create a database), it seems CMP is not the right way to go.
This would not be a restriction for JBoss CMP, you can deploy a new CMP instance and a datasource at runtime and generate a configuration for your entity that connects to a new database. It still requires a CMP container per user though.
For POJO persistence, Hibernate is the way to go (JBG provides support and soon training for it).