Hi, I've been developed a JEE application and used a JBoss AS version 4.2.1 
default configuration to deploy it.

This application access SQL-Server database through persistence unit and 
datasource configuration that uses Hibernate Entity Manager(default JBoss 
Configuration) and have worked fine.

Now I need to access Teradata database, but is ok, I simply add a new 
datasource configuration file and adjusted persistence unit what worked 
perfectly with one problem, deploy work and application to but the console of 
Jboss AS stopped whith these two last lines console message:

09:26:23,640 INFO  [ConnectionProviderFactory] Initializing connection 
provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
09:26:23,656 INFO  [InjectedDataSourceConnectionProvider] Using provided 
datasource

And after these messages I "lost" the running application log.

For example, when a error happened on application the console log don't show 
any log message after these messages.

There are the configuration files:

--> mssql-ds.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | <datasources>
  |     <local-tx-datasource>
  |             <jndi-name>jdbc/SQLServerDS</jndi-name>
  |             
<connection-url>jdbc:sqlserver://SQL_SERVER;DatabaseName=soa_new</connection-url>
  |             
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
  |             <user-name>user</user-name>
  |             <password>pass</password>
  |     </local-tx-datasource>
  | </datasources>
  | 
--> teradata-ds.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | <datasources>
  |   <local-tx-datasource>  
  |     <jndi-name>jdbc/TeradataDS</jndi-name> 
  |     
<connection-url>jdbc:teradata://TERADATA/database=DB_SOA</connection-url> 
  |     <driver-class>com.ncr.teradata.TeraDriver</driver-class> 
  |     <user-name>user</user-name> 
  |     <password>pass</password> 
  |   </local-tx-datasource>  
  | </datasources>
  | 
--> persistence.xml 

  | <?xml version="1.0" encoding="UTF-8"?>
  | <persistence>
  |     <persistence-unit name="TeradataPU">
  |         <provider>org.hibernate.ejb.HibernatePersistence</provider>
  |         <jta-data-source>java:jdbc/TeradataDS</jta-data-source>
  |         <class> OMITTED CLASSES </class> 
  |         <exclude-unlisted-classes />
  |         <properties>
  |             <property name="hibernate.show_sql" value="true"/>
  |             <property name="hibernate.dialect" 
value="org.hibernate.dialect.TeradataDialect"/>
  |         </properties>
  |     </persistence-unit>
  |     <persistence-unit name="SqlServerPU">
  |     <provider>org.hibernate.ejb.HibernatePersistence</provider>
  |     <jta-data-source>java:jdbc/SQLServerDS</jta-data-source>
  |     <class> OMITTED CLASSES </class>
  |         <exclude-unlisted-classes />
  |     <properties>
  |         <property name="hibernate.show_sql" value="true"/>
  |         <property name="hibernate.dialect" 
value="org.hibernate.dialect.SQLServerDialect"/>
  |     </properties>
  |     </persistence-unit>
  | </persistence> 
  | 
I Thank you indeed in advance.

Yours faithfully, 

Fabio

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136288#4136288

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136288
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to