Steve Friesen [
http://community.jboss.org/people/sfriesen] created the discussion
"Re: Deployments Missing Dependencies"
To view the discussion, visit:
http://community.jboss.org/message/607000#607000
--------------------------------------------------------------
Thanks for the reply Wolfgang.
I am using JBoss 6.0.0.Final. I am porting code over from Netbeans using Glassfish where I
specified the exact name of the JNDI created as a resource on the app server. I am
unfamiliar with the ENC. I created a datasource that has the same name as the JNDI--see
the image below (I've circled the datasource in red). This is how I have the
datasource set up in the jdbc_fisdb_dev-ds.xml file. The connection works using the admin
console.
http://community.jboss.org/servlet/JiveServlet/showImage/2-607000-16423/d...
http://community.jboss.org/servlet/JiveServlet/downloadImage/2-607000-164...
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/fisdb_dev</jndi-name>
<rar-name>jboss-local-jdbc.rar</rar-name>
<use-java-context>true</use-java-context>
<connection-definition>javax.sql.DataSource</connection-definition>
<jmx-invoker-name>jboss:service=invoker,type=unified</jmx-invoker-name>
<min-pool-size>0</min-pool-size>
<max-pool-size>10</max-pool-size>
<blocking-timeout-millis>30000</blocking-timeout-millis>
<idle-timeout-minutes>30</idle-timeout-minutes>
<prefill>false</prefill>
<background-validation>false</background-validation>
<background-validation-millis>0</background-validation-millis>
<validate-on-match>true</validate-on-match>
<statistics-formatter>org.jboss.resource.statistic.pool.JBossDefaultSubPoolStatisticFormatter</statistics-formatter>
<isSameRM-override-value>false</isSameRM-override-value>
<allocation-retry>0</allocation-retry>
<allocation-retry-wait-millis>5000</allocation-retry-wait-millis>
<security-domain-and-application xsi:type="securityMetaData"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"/
http://www.w3.org/2001/XMLSchema-instance"/>
<metadata/>
<local-transaction/>
<check-valid-connection-sql>SELECT * FROM
DUAL</check-valid-connection-sql>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<prepared-statement-cache-size>0</prepared-statement-cache-size>
<share-prepared-statements>false</share-prepared-statements>
<set-tx-query-timeout>false</set-tx-query-timeout>
<query-timeout>0</query-timeout>
<use-try-lock>60000</use-try-lock>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<connection-url>jdbc:oracle:thin:@fis05:1521:FAMOUS</connection-url>
...
Regards,
Steve
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/607000#607000]
Start a new discussion in Beginner's Corner at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]