On Sun, 2003-10-05 at 15:20, Ionel GARDAIS wrote:
> Let say the datasource-mappings can be specified by
> the user at runtime too.

They cannot.

> If the datasource is specified by the user, will the
> CMP use the declared mapping or the "delegated"
> mapping ?
> 

The purpose of jbosscmp-jdbc.xml is to declare the mappings
from the EJB model to the referential db model.
There is one of these for each db vendor. :-(

If would be nice if you could use:

<type-mapping>Guess</type-mapping>

And it used the DatabaseMetaData to determine the
db's type mapping. 
But this isn't currently supported, and wouldn't work
if you had vendor specific mappings at the field level.

Regards,
Adrian

> > Except there is no such dynamicity for
> > type-mappings.
> > You have to know the db mappings when you create the
> > jbosscmp-jdbc.xml
> 
> 
> =====
-- 
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

Reply via email to