InitialContext ic = CVUtility.getInitialContext();
KnowledgeBaseLocalHome home = (KnowledgeBaseLocalHome) ic.lookup("local/KnowledgeBase");
KnowledgeBaseLocal remote = home.create();
remote.setDataSource(this.dataSource);
ctx.getUserTransaction().begin();
cat = remote.insertCategory(userId, catinfo);
ctx.getUserTransaction().commit();
} catch (Exception e) {
logger.error("[insertCategory]: Exception", e);
}
return cat;