This content has been marked as final.
Show 1 reply
-
1. Re: accessing mysql/jboss3 from an ejb
saifkhan Aug 14, 2002 6:10 AM (in response to decob)You are right to put a mysql-service.xml file in the deploy directory and change login-conf.xml. Rather
than call the DB as you do, you can use:
Context ctxt = new InitialContext();
DataSource myDS = (DataSource)ctxt.lookup("java:jdbc/MySqlDS");
Connection = myDS.getConnection();
The reason for all that xml is so that you can refer to
your db through a jndi name.