Results 1 to 2 of 2
  1. #1
    fabs is offline Member
    Join Date
    Apr 2009
    Posts
    5
    Rep Power
    0

    Default 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...

  2. #2
    THEAniKan is offline Member
    Join Date
    Sep 2009
    Posts
    15
    Rep Power
    0

    Default

    I defenitely can't help you know, but it would be easier for me, and others, to help if U posted some of ur code.

Similar Threads

  1. return a null method
    By valoyivd in forum New To Java
    Replies: 2
    Last Post: 04-22-2008, 12:19 AM
  2. Replies: 3
    Last Post: 08-01-2007, 05:34 PM
  3. TimerTask with a Date_Time
    By kunta in forum Sun Java Wireless Toolkit
    Replies: 1
    Last Post: 05-31-2007, 11:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •