3 Replies Latest reply: Feb 7, 2013 3:29 AM by Joe Zou RSS

    JBO-25301 - accessing DBTransaction  in AMImpl

      Hi All,

      I am trying to perform some initialization when the AM is instantiated. Therefore I have
      called a method from AMImpl constructor and try to access DBTransaction .
      The following exception is thrown when we try to access DBTransaction.
      Exception :
      Exception : oracle.jbo.InvalidOwnerException: JBO-25301: Application module TestAMImpl_30 is not a root app module but has no parent

      Sample Code :
      public class TestAMImpl extends ApplicationModuleImpl {

           public TestAMImpl() {


           public void initMethod(){
                DBTransaction dbTransaction = getDBTransaction(); // Exception is thrown