Hi rimmeraj, I have ammend my code as follow but nothing is happening and I am not getting any errors!:
User user = null; Transaction transaction = null; Session session = null; try { session = org.jboss.hibernate.session.HibernateContext.getSession("java:/HibernateFactory"); transaction = session.beginTransaction(); //Get User details Query query = session.createQuery("from test.User as user where user.UserName=:username and user.UserPassword=:password") .setString("username",username) .setString("password",password); user = (User) query.uniqueResult(); transaction.commit(); session.closeSession(); } catch (HibernateException e) { throw new RuntimeException("Exception in Hibernate:: " + e.getMessage(), e); } What am I doing wrong here? many thanks Uzo View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852348#3852348 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852348 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user