1 Reply Latest reply on Sep 19, 2008 11:36 AM by Hans Schlegel

    Transaction is not active in @Startup method

    Pinki Gupta Newbie
      I had the requirement to schedule some jobs when the server starts so i wrote a class with @Startup annotation and inside the class I have this function with @Create annotation.I used <async:quartz-dispatcher/> in components.xml file.Scheduler works fine and it calls the method as specified when server starts but it throws exception "org.hibernate.exception.GenericJDBCException: Cannot open connection".
      I am not able to figure out why it is not able to open connection and complains  "Transaction is not active"
      I am stuck and any inputs would be of great help.Thanks