-- xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx
Erik Price wrote:
Hi,
I have deployed the simple BMP entity bean from "Mastering EJB" on JBoss 3.2.1, and it deploys fine. However, the bean managed persistence code requires Connections from a javax.sql.DataSource, and although I have configured the DataSource in my ejb-jar.xml (see below) so that I can access it through JNDI, I am unsure of where to instruct JBoss of the JDBC connection information. Specifically, the JDBC URL:PORT/database name, the username to connect as, and the password.
I have the 3.2.x docs if someone can point me in the right direction so I can see where this is set up. I have pored over chapter 3, JNDI, and although it describes ejb-jar.xml DataSource configuration, I can't find the description that explains where to specify database connection parameters like this (in a JBoss-specific manner).
Thank you,
Erik
snipped from my ejb-jar.xml:
[...] <enterprise-beans> <entity>
[...]
<resource-ref> <res-ref-name>jdbc/ejbPool</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> </entity> </enterprise-beans> [...]
------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user