String url = p.getProperty(SpeedoProperties.JDO_OPTION_CONNECTION_URL);
final String JNDI_NAME="cf";
try {
InitialContext ictx = new InitialContext();
ictx.rebind(JNDI_NAME, new SimpleDataSource(driver, url, user, password));
} catch (Exception e) {
System.err.println("Error during the JNDI initialization: " + e.getMessage());
e.printStackTrace(System.err);
}
p.setProperty(SpeedoProperties.MANAGED, Boolean.TRUE.toString());