pm.setProperty(Environment.MSG_STORE_DB_DATASOURCE_NAME, "datasource");
pm.setProperty(Environment.MSG_STORE_DB_CONN_MANAGER, JEE_CONNECTIONMGR_CLASS);
try {
ctx = new InitialContext();
MockDataSource mds = new MockDataSource(this);
String dataSourcename = Configuration.getStoreDBDatasourceName();
ctx.rebind(dataSourcename, mds);
} catch (NamingException e) {
e.printStackTrace();