scp sintersa [
https://community.jboss.org/people/scpsintersa] created the discussion
"Easy jndi sample"
To view the discussion, visit:
https://community.jboss.org/message/721748#721748
--------------------------------------------------------------
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.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/721748#721748]
Start a new discussion in JNDI and Naming at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]