I am trying to config a BMP ejb to use MySql, but the BMP ejb always want to use the 'java:/DefaultDS'. I have changed the configuration of JNDI name in 'jboss.xml' to 'java:/MySqlDS'. It seems to me that there is no problem with MySql as I could use it in another web application through Servlet.
Anyone could offer help will save a lot of time for me. Thanks.
Do you really mean BMP? If you do it is your code that looks up the datasource which means that you have an error in your code and you are looking up the wrong JNDI name.