but I need to intercept the calls to my method before they happen. By analyzing your source code, I've found that every server side method is callled by the code on the line 144 of DispatcherBase class

I just forgot to tell you that the portable way to intercept a method call is to create your own Dispatcher that extends SsmDispatcher: you can get what you want that way, without having to hack DJN code base.

Configured the web.xml properly, all the needed resources can be accessed on the server.
I’ve took the FormPostDemo files and put them in my spring app, everything seems to be configured properly.
How is the Api.js generated? It seems that I have the same Api.js as copied, not getting regenerated, Is there a difference what kind of project I have and the folder structure?

Configured the web.xml properly, all the needed resources can be accessed on the server.
I’ve took the FormPostDemo files and put them in my spring app, everything seems to be configured properly.
How is the Api.js generated? It seems that I have the same Api.js as copied, not getting regenerated, Is there a difference what kind of project I have and the folder structure?

Nothing relative in the log with the debug = true

Some quick notes:

The api file is not regenerated if there are no changes, to avoid invalidating browser caches, so do not assume it will be recreated on app startup: delete or rename it to force DJN to regenerate it.

On the other hand, if you are having some problem due to permissions, remember that you can configure DJN to keep the files in memory (see the docs).

I think you might be missing some little detail, it really looks like you misstyped something. Why don't you try debugging? You've got a .jar with the source. If you are using Eclipse or a similar tool it will be easy to see what's going on.