Hello, My tools: Eclipse 2.1.2 JBoss 3.2.2 JBoss-IDE 1.2.2
I'm have to use two different databases in my software. I have made fallowing configurations: | standardjbosscmp-jdbc.xml: | | <defaults> | <datasource>java:/MSSQLDS</datasource> | <datasource-mapping>MS SQLSERVER2000<datasource-mapping> | . | . | . | </defaults> | | deploy\mysoftware-ds.xml | <datasources> | <local-tx-datasource> | <jndi-name>MSSQLDS</jndi-name> | <connection-url>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=testi</connection-url> | | <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class> | <user-name>sa</user-name> | <password></password> | <!-- sql to call when connection is created | <new-connection-sql>some arbitrary sql</new-connection-sql> | --> | | <!-- sql to call on an existing pooled connection when it is obtained from pool | <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql> | --> | | </local-tx-datasource> | | <local-tx-datasource> | <jndi-name>MSSQLDS-TESTI2</jndi-name> | <connection-url>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=testi2</connection-url> | | <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class> | <user-name>sa</user-name> | <password></password> | <!-- sql to call when connection is created | <new-connection-sql>some arbitrary sql</new-connection-sql> | --> | | <!-- sql to call on an existing pooled connection when it is obtained from pool | <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql> | --> | | </local-tx-datasource> | | | | </datasources> | My software uses MSSQLDS by default. But if i define in my CMP Bean fallowing xdoclet tag, xdoclet doesn't write any datasource configurations to any .xml file. and bean is using the default database: | @ejb.persistense table-name = "Misc" | datasource="java:/MSSQLDS-TESTI2 | What i'm missing here??? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822821#3822821 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822821 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
