public int deleteCategory(int userId, int categoryId)
{
try {
InitialContext ic = CVUtility.getInitialContext();
KnowledgeBaseLocalHome home = (KnowledgeBaseLocalHome) ic.lookup("local/KnowledgeBase");
KnowledgeBaseLocal remote = home.create();
remote.setDataSource(this.dataSource);
ctx.getUserTransaction().begin();
remote.deleteCategory(userId, categoryId);
ctx.getUserTransaction().commit();
} catch (Exception e) {