[jboss-user] [JNDI and Naming] - Easy jndi sample
scp sintersa
do-not-reply at jboss.com
Tue Mar 6 04:36:54 EST 2012
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&containerType=14&container=2083]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120306/3574119d/attachment.html
More information about the jboss-user
mailing list