how to connect Mysql with the EJB?
Using Entity Beans, just put a mysql-ds.xml in your deploy folder.
Configure a JNDI name and put it into your jbosscmp-jdbc.xml. That's
all. You can find examples in $JBOSS_HOME/docs/examples/jca. There is no
need to code sth. for that, database configuration is done declaratively
to avoid db dependencies.
-marek
|