Re: JBOSS 5.1 help

Ovsei Volberg <[email protected]>
Newsgroups gmane.org.user-groups.ajug.members
Message-ID <[email protected]>
Mike, 
Where is your JDBC driver deployed?
Best regards,
Ovsei

Sent from my iPhone

On Sep 13, 2013, at 11:57 AM, Mike Barnes <[email protected]> wrote:

> 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
> 
> _______________________________________________
> ajug-members mailing list
> [email protected]
> http://www.ajug.org/mailman/listinfo/ajug-members
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.