Results 1 to 2 of 2
- 04-20-2009, 05:37 AM #1
Member
- Join Date
- Apr 2009
- Posts
- 5
- Rep Power
- 0
hibernate session = null in the run() method of TimerTask
Hi all,
can anybody help me out? I'm trying to make a program where in it will execute a task( specifically accessing a database using hibernate. In the main class SchedulerImpl.java, I'm passing a hibernate session. In the StartSchedule method I'm successfully getting the session, and scheduling the task on a specific time. But when the scheduled time executes and go to the run() method of the SchedulerImpl.java the session becomes null... can anyone explain to what's happening.. and kindly give me solutions? pls...
- 09-17-2009, 03:12 PM #2
Member
- Join Date
- Sep 2009
- Posts
- 15
- Rep Power
- 0
Similar Threads
-
return a null method
By valoyivd in forum New To JavaReplies: 2Last Post: 04-21-2008, 11:19 PM -
NoClassDefFoundError: org/hibernate/Session
By simon in forum JDBCReplies: 3Last Post: 08-01-2007, 04:34 PM -
TimerTask with a Date_Time
By kunta in forum Sun Java Wireless ToolkitReplies: 1Last Post: 05-31-2007, 10:17 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks