2 Replies Latest reply on Jan 30, 2007 9:15 AM by Koen Aers

    How to retreive the Connection in a handler ?

    Frank Newbie

      Hi all!
      in the docs it's showed that, in order to retrieve a Connection from an handler you should :

      public void execute(ExecutionContext context) throws Exception {
      Connection conn = context.getJbpmContext().getConnection();

      ......
      }

      this gives me a NullPointerExceptiopn because context.getJbpmContext()
      is null.......
      anybody helps me ?
      Thanks
      Francis