} else {
jdbcUrl = Const.JDBC_URL; user = Const.USER; password = Const.PASSWORD;
}
MysqlDataSource ds = new MysqlDataSource();
ds.setUrl(jdbcUrl); ds.setUser(user); ds.setPassword(password);
ActiveRecordPlugin arp = new ActiveRecordPlugin(ds);
if (isLocal) {
arp.setShowSql(true);
}
arp.addMapping("module", Module.class).addMapping("topic", Topic.class).addMapping("post", Post.class);
arp.addMapping("reply", Reply.class).addMapping("user", User.class);
me.add(arp);
me.add(new EhCachePlugin());
}