Could you explain what is the good and best way to set up the database (datasource so). I need it to be editable quickly that's why I did a property file but my guess is it's not working for my webapp.
I did like this : testDatabase=new://Resource?type=DataSource testDatabase.JdbcDriver=com.mysql.jdbc.Driver testDatabase.JdbcUrl=jdbc:mysql://localhost:3306/hibernatetest testDatabase.UserName=root And to get it in my code, i just load this prop file in my context as : Properties p = new Properties(); p.load(new FileInputStream(new File(propertiesPath))); Context context = new InitialContext(p); -- View this message in context: http://openejb.979440.n4.nabble.com/Adapt-ejb-run-on-java-app-to-web-app-tp4658420p4658483.html Sent from the OpenEJB User mailing list archive at Nabble.com.
