Re: JBOSS 5.1 help
Andrew Goode <[email protected]>
| Newsgroups | gmane.org.user-groups.ajug.members |
|---|---|
| Message-ID | <A7250E7B2D9AAB48A19DD92FDF213B651E1F72E0F5@Dwexchange02.office.discretewireless.net> |
What JNDI name are you using for the lookup? I know that in JBoss EAP 4.3, the JNDI names of datasources are prefixed with java:/ so try using java:/jdbc/MyDataSource for your lookup. From: Mike Barnes [mailto:[email protected]] Sent: Friday, September 13, 2013 11:57 AM To: [email protected] Subject: [ajug-members] JBOSS 5.1 help I am in the process of migrating a Websphere 6.1 application with ejbs to JBOSS 5.1 and am getting an error with JNDI binding. Since, the application works on Websphere, I am not sure what I need to do to get the binding to work on JBOSS. I am using a oracle-ds.xml file which is deployed to the deploy directory and it appears that everything is deploying correctly, however, when I try to use the jndi connection I get the following error. javax.naming.NameNotFoundException: MyDataSource not bound org.jnp.server.NamingServer.getBinding(NamingServer.java:771) org.jnp.server.NamingServer.getBinding(NamingServer.java:779) contents of oracle-ds.xml <local-tx-datasource> <jndi-name>jdbc/MyDataSource</jndi-name> <connection-url>jdbc:oracle:thin:@hostName:1522:sidName</connection-url> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <user-name>userid</user-name> <password>password</password> <prepared-statement-cache-size>150</prepared-statement-cache-size> <min-pool-size>1</min-pool-size> <max-pool-size>100</max-pool-size> <max-idle-timeout>0</max-idle-timeout> <blocking-timeout-millis>30000</blocking-timeout-millis> <idle-timeout-minutes>15</idle-timeout-minutes> <track-statements>false</track-statements> <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --> <metadata> <type-mapping>Oracle9i</type-mapping> </metadata> </local-tx-datasource> Any guidance would be much appreciated. Thanks Mike Andrew Goode | Technical Architect/Team Lead [email protected]<mailto:[email protected]> tel 678-762-6861 | fax 678-338-5957 1200 Lake Hearn Drive, Suite 500, Atlanta, GA 30319 www.nextraq.com<http://www.nextraq.com> [cid:[email protected]] This communication, along with any attachment(s), is intended only for the use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of any information contained in or attached to this communication is strictly prohibited. If you have received this message in error, please notify the sender immediately and destroy the original communication and its attachments without reading, printing or saving in any manner. Thank you. _______________________________________________ ajug-members mailing list [email protected] http://www.ajug.org/mailman/listinfo/ajug-members
c81305.png
(image/png, 3.1 KB) - not displayed