Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1584

Execution Cleanup.cleanup didn't call when Execution is forwarded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.1
    • Fix Version/s: 6.5.2
    • Component/s: None
    • Labels:

      Description

      We registred a listener which implement ExecutionCleanup and ExecutionInit. Our implementation is similar to OpenEntityManagerInViewListener, but it start and stop UnitOfWork instance from Guice library.

      Next we had 2 zul scripts:

      a.zul
      <?forward uri="/b.zul"?>
      <zk></zk>
      
      b.zul
      <zk>...</zk>
      

      When a.zul was executed, ExecutionInit.init was called twice but ExecutionCleanup.cleanup only once for eg:

      init:    exec=[Exec3676128: [Desktop z_8p2:/a.zul]], parent=null 
      init:    exec=[Exec4338603: [Desktop z_8p2:/a.zul]], parent=[Exec3676128: [Desktop z_8p2:/a.zul]]
      cleanup: exec=[Exec4338603: [Desktop z_8p2:/a.zul]], parent=[Exec3676128: [Desktop z_8p2:/a.zul]], errs=[] 
      

      My problem is similar to OpenEntityManagerInViewListener https://github.com/zkoss/zk/blob/master/zkplus/src/org/zkoss/zkplus/jpa/OpenEntityManagerInViewListener.java#L46, where EntityManager is closed only if parent is null.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            sbglobesy sbglobesy
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: