First, I assume you're running JBoss 2.0? If you're running 2.1/2.2, the config is a little different. > Sam Liu wrote: > > Hi, all > > I am configing mySQL data source with my cmp ejb, > according to the instructions on the jboss manual, > I have done all of the steps, but I can't yet use > my datasource. > > > 2 In standardjaws.xml > I commented java:/DefaultDS and added java:/mySQLDS > <!-- Comment by Sam Liu > <datasource>java:/DefaultDS</datasource> > <type-mapping>Hypersonic SQL</type-mapping> > --> > > <datasource>java:/mySQLDS</datasource> > <type-mapping>mySQL</type-mapping> You should have only one <datasource> and <type-mapping> here. If you like you can create a file 'jaws.xml' in the META-INF directory of your ejb-jar that contains: <datasource>java:/mySQLDS</datasource> <type-mapping>mySQL</type-mapping> This will override JAWS' datasource for those beans only. Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication. _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user