public int insertCategory(int userId, CategoryVO catinfo)
{
int cat = 0;
try {
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) {