-
1. Re: -ds.xml file changes not reflect at runtime
wdfink Nov 11, 2011 9:46 AM (in response to johncenapsna)What database you use? Could you attach the ds.xml?
Does the Exception is only a moment if you change the ds-xml or does it constant after you change it?
Do you have ERROR messages in the log when change happen?
Also what version do you use?
-
2. Re: -ds.xml file changes not reflect at runtime
johncenapsna Nov 11, 2011 12:26 PM (in response to wdfink)@ Wolf-Dieter Fink Thanks for your reply. Using Oracle 9i. JBoss 5.1. Error messages what i have were i pasted in the question
-
3. Re: -ds.xml file changes not reflect at runtime
johncenapsna Nov 11, 2011 12:27 PM (in response to johncenapsna)@ Wolf-Dieter Fink <?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about local-tx-datasource -->
<!-- $Id: oracle-ds.xml 88948 2009-05-15 14:09:08Z jesper.pedersen $ -->
<!-- ==================================================================== -->
<!-- Datasource config for Oracle originally from Steven Coy -->
<!-- ==================================================================== -->
<datasources>
<local-tx-datasource>
<jndi-name>SAGDataSource</jndi-name>
<use-java-context>false</use-java-context>
<connection-url>jdbc:oracle:thin:@192.168.17.19:1524:ILOG</connection-url>
<!--
Here are a couple of the possible OCI configurations.
For more information, see http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96654/toc.htm
<connection-url>jdbc:oracle:oci:@youroracle-tns-name</connection-url>
or
<connection-url>jdbc:oracle:oci:@(description=(address=(host=youroraclehost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=yourservicename)))</connection-url>
Clearly, its better to have TNS set up properly.
-->
<driver-class>oracle.jdbc.OracleDriver</driver-class>
<user-name>CTEP_DEV</user-name>
<password>CTEP_DEV</password>
<min-pool-size>1</min-pool-size>
<max-pool-size>50</max-pool-size>
<!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
<!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
<!-- Checks the Oracle error codes and messages for fatal errors -->
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<!-- 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 - the OracleValidConnectionChecker is prefered
<check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
-->
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<check-valid-connection-sql>SELECT 1 FROM DUAL</check-valid-connection-sql>
<idle-timeout-minutes>0</idle-timeout-minutes>
<background-validation>true</background-validation>
<background-validation-minutes>10</background-validation-minutes>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
-
4. Re: -ds.xml file changes not reflect at runtime
johncenapsna Nov 11, 2011 12:28 PM (in response to johncenapsna)@ Wolf-Dieter Fink If i switched to another DB schema then that exception occurs.
-
5. Re: -ds.xml file changes not reflect at runtime
johncenapsna Nov 11, 2011 11:46 AM (in response to johncenapsna)@Wolf-Dieter Fink Do u need any other details to trace?
-
6. Re: -ds.xml file changes not reflect at runtime
johncenapsna Nov 11, 2011 1:40 PM (in response to johncenapsna)@Wolf-Dieter Fink hot deployment service is active.hdscanner-jboss-beans.xml is there in place. It is unbounding the old data source. and bounding the new data source. at that time only above mentioned exception came
-
7. Re: -ds.xml file changes not reflect at runtime
jesper.pedersen Nov 11, 2011 1:41 PM (in response to johncenapsna)STOP CROSS POSTING !
People will answer if they want - upgrade to latest AS 7 release if you are looking for help - or buy a subscription (http://www.jboss.com/products/platforms/application/)
-
8. Re: -ds.xml file changes not reflect at runtime
wdfink Nov 12, 2011 11:36 AM (in response to johncenapsna)at that time the connection pool is down and it's normal!
But I ask what about after a few seconds, does the connection work?
-
9. Re: -ds.xml file changes not reflect at runtime
johncenapsna Nov 13, 2011 10:30 PM (in response to wdfink)@Wolf-Dieter Fink No its continuing to show exception whenever i tried to get a connection after that.