1 Reply Latest reply: May 7, 2012 11:20 PM by SantoshVaza RSS

    Releasing AM


      I have a question regarding releasing an AM. I get the Application Module using the following code:

      DCBindingContainer bindings =
      (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
      DCIteratorBinding dcIteratorBinding =
      DCDataControl dc = dcIteratorBinding.getDataControl();
      ApplicationModule am = dc.getApplicationModule();

      Do I need to release this AM everytime I use it? I am asking as I am not creating an AM instance here.
      And when I do try releasing it, it does not find the ViewObjects under the AM in the next method I access it from. I get the AM, but the VOs under it are zero.

      Much appreciate your input.