Hello, I have a simple application where I use EJB to access a database and then use Servlet/JSP to display the data to a browser. The application works ok but I would like to to some modifications. At the moment I access the database using the mysql-ds.xml(JBOSS) file and ejb-jar.xml in my application. I am wondering if I can modify the ejb-jar.xml so that I give the name of the database in this file instead of mysql-ds.xml as I do now. I have pasted both the files below. Would greatly appreciate any help. Thanks Ros ejb-jar.xml ----------- ----------- <!--?xml version="1.0" encoding="UTF-8"?--> Customer Info Stateless Session Bean Application Customer Info Stateless Session Bean CustomerInfoStateless com.dbc.ejb.CustomerInfoStatelessHome com.dbc.ejb.CustomerInfoStateless com.dbc.ejb.CustomerInfoStatelessBean Stateless Container This is a reference to a JDBC database. java:/MySqlDS javax.sql.DataSource Container mysql-ds.xml ------------ ------------ <!--?xml version="1.0" encoding="UTF-8"?--> <!-- $Id: mysql-ds.xml 41016 2006-02-07 14:23:00Z acoliver $ --> <!-- Datasource config for MySQL using 3.0.9 available from: http://www.mysql.com/downloads/api-jdbc-stable.html --> MySqlDS jdbc:mysql://localhost:3306/customerdb com.mysql.jdbc.Driver root org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter <!-- should only be used on drivers after 3.22.1 with "ping" support <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name> --> <!-- sql to call when connection is created <new-connection-sql>some arbitrary sql</new-connection-sql> --> <!-- sql to call on an existing pooled connection when it is obtained from pool - MySQLValidConnectionChecker is preferred for newer drivers <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql> --> <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --> mySQL