4 Replies Latest reply: May 15, 2013 1:14 AM by 915091 RSS

    Set context in AMs prepareSession

      Hello there,

      i'm working with JDev, and i have a problem with the prepareSession.
      First of all, we have to set a context for the db like proxy user and some other stuff, this should be done in the prepareSession method of the AM.
      Since we don't want to break the MVC pattern we tried it the way Andrejus described in his blogpost.

      However, the prepareSession method is called as soon as an AM instance is instantiated. This means that our userData is not set at that point. Does someone have a solution to set the userData so that it is available in the prepareSession so that we could set our DB context?

      Thanks in advance.