-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: not getting values while another thread is creating rows
PostPosted: Mon Apr 06, 2009 4:52 am 
Newbie

Joined: Thu Mar 05, 2009 2:50 am
Posts: 14
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.