I am using a custom JBoss 4/Java 1.5 configuration
without deploying Hypersonic. My PostgreSQL datasource
is deployed to jdbc/ics, and the ejb-jar I am deploying
contains a jbosscmp-jdbc.xml file that overrides the
default datasource location:
<jbosscmp-jdbc>
<defaults>
<datasource>java:/jdbc/ics</datasource>
...
When the beans are deployed the following error is logged:
Failed to obtain type-mapping metadata from the
metadata library MBean:
jboss.jdbc:service=metadata,datasource=DefaultDS is not
registered.
I have a type-mapping defined in my posgres-ds.xml and
this causes
jboss.jdbc:service=metadata,datasource=jdbc/ics to be
deployed.
If I change the datasource in
conf/standardjbosscmp-jdbc.xml to java:/jdbc/ics the
beans deploy.
It looks like the type-mapping lookup is ignoring the
overriden datasource value from the jbosscmp-jdbc.xml
in my ejb-jar.
This will be a problem if I want to deploy different
entities to different datasource (and potentially
different typemappings) in the same server.
Logged In: YES
user_id=175228
There have been a number of fixes to the type-mapping and
postgress for 4.0.1. The 4.0.1RC1 has a number of these but
its missing a table name case fix. If you can try the
current Branch_4_0 snapshot please do so.