Hi, I am developing Entity Beans for the database on MySQL server. But i want that only these particular EJBs can connect with the database. I am using JBoss 4.0. My Datasource JNDI configuration is as follows: <?xml version="1.0" encoding="utf-8"?> | <!-- $Id: mysql-ds.xml,v 1.3.2.3 2006/02/07 14:23:00 acoliver Exp $ --> | <!-- Datasource config for MySQL using 3.0.9 available from: | http://www.mysql.com/downloads/api-jdbc-stable.html | --> | <datasources> | <local-tx-datasource> | <jndi-name>jdbc/emallDB</jndi-name> | <connection-url>jdbc:mysql://localhost/testdb</connection-url> | <driver-class>com.mysql.jdbc.Driver</driver-class> | <user-name>test</user-name> | <password>test123</password> | <exception-sorter-class-name>com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter</exception-sorter-class-name> | <!-- should only be used on drivers after 3.22.1 with "ping" support--> | <valid-connection-checker-class-name>com.mysql.jdbc.integration.jboss.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) --> | <metadata> | <type-mapping>jdbc/testDB</type-mapping> | </metadata> | </local-tx-datasource> | </datasources> | Please tell me what to do to protect this resource from unauthorised access by other applications in the same server?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951425#3951425 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951425 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
