Re: JBOSS 5.1 help

Ovsei Volberg <[email protected]>
Newsgroups gmane.org.user-groups.ajug.members
Message-ID <CAMvuSVmQp8iJr4b5Z6Pp3GUV7fx+3ndJY+LjA6=BWh5xT8QCwQ@mail.gmail.com>
We use JBoss 6.1.0.Final and the snippet from one of our xxx-ds.xml files
looks like this:
 <jndi-name>ChiDS</jndi-name>
    <connection-url>jdbc:postgresql://localhost:5432/chiDB</connection-url>
    <driver-class>org.postgresql.Driver</driver-class>

I suppose that version 5.1 should use something similar. No "java/"
prefixes.
Best regards,
Ovsei


On Fri, Sep 13, 2013 at 1:38 PM, Andrew Goode <[email protected]>wrote:

>  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]
> *tel* 678-762-6861 | *fax* 678-338-5957 1200 Lake Hearn Drive, Suite 500,
> Atlanta, GA  30319 www.nextraq.com
>
>
>
> **
>
> **
>
> 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
>
>

_______________________________________________
ajug-members mailing list
[email protected]
http://www.ajug.org/mailman/listinfo/ajug-members
c81305.png (image/png, 3.1 KB) - not displayed
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.