1 Reply Latest reply on Mar 6, 2012 1:38 PM by wdfink

    Easy jndi sample

    scpsintersa

      Hi,

       

      Im trying to make a simple connection.

      Until now i was using Tomcat, and the only thing i need to do is include the next line in context.xml->

       

      <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="8" maxIdle="4" name="jdbc/name" password="pass" type="javax.sql.DataSource" url="jdbc:mysql://IP/database" username="user"/>

       

      Because war already is configured to use jdbc/name.

      Using iReport, (java:comp/env/jdbc/name).

       

      All this is running fine. But i dont know how to make this in JBoss 5.

       

      I tried to make and name-ds.xml copying from sample mysql, but it isnt running.

       

       

      Thanks.