0 Replies Latest reply on Jun 29, 2005 10:57 AM by erik van hoof

    Multi datasources problem.(JBOSS 4.0 + Mysql 5.0 + CMP 2.0 +

    erik van hoof Newbie

      I have defined my mysql connection in a *-ds.xml file and made it in the standardjbosscmp-jdbc.xml the default ds. But I can only define one database with its tables. What do I NEED to do to define another database on the same server..?

      I already defined a *-ds.xml file that has a different name and so on than the first defined datasource. I already tried to use jndi in my ejb to make a connection(in xdoclets, in jbosscmp-jdbc.xml and in the entity source even) but it connects to the default defined in the standardjbosscmp.How can I overwrite or overload the defaulted values of make an correct connection to the datasource. Any help would be greatly appreciated!