java - Multiple Oracle datasources on JBoss are used incorrectly -


i have jboss 4 2 oracle datasources: currentds , archiveds.

but hibernate uses scheme currentds when creates tables annotations, , scheme archiveds stays empty. opinion - when starts creating tables archive finds created tables in currentds , thinks exist (using wrong credentials).

this works ok on postgres, on oracle?

<datasources>  <local-tx-datasource>    <jndi-name>currentds</jndi-name>    <connection-url>jdbc:oracle:thin:@localhost:1521:xe</connection-url>    <driver-class>oracle.jdbc.driver.oracledriver</driver-class>    <user-name>current</user-name>    <password>password</password>               <metadata>      <type-mapping>oracle9i</type-mapping>        </metadata>   </local-tx-datasource>   <local-tx-datasource>    <jndi-name>archiveds</jndi-name>    <connection-url>jdbc:oracle:thin:@localhost:1521:xe</connection-url>    <driver-class>oracle.jdbc.driver.oracledriver</driver-class>    <user-name>archive</user-name>    <password>password</password>               <metadata>      <type-mapping>oracle9i</type-mapping>        </metadata>   </local-tx-datasource>  </datasources> 


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -