I have a web application, where a crawler finds urls and creates rows in database. No while the thread is still running i have another web page where i want to show all the rows that are created in the database until now. I am using the dao.create() for creating the rows and I am using
session.createCriteria(StatusLog.class)
.add( Restrictions.eq("campaigns",campaign) )
.add( Restrictions.between("postingDate", dateFrom, dateTo))
.addOrder( Order.desc("postingDate") )
.list();
for getting the latest results. I am not getting the results in this list where if i call the same from some other program out of my web page will give the results.
What would be the problem.
Thanks and Regards
Ra makanth
_________________ Thanks and Regards
|