PDA

View Full Version : How to integrate it DirectJNgine and spring



dreamtaotao
26 Nov 2009, 10:01 PM
I ask how the DirectJNgine and spring to integration? I do not know how to DJN change in the web.xml configuration items in the spring, from spring to manage it. Who integration of before? To know me, and eternally grateful!:)

mauro_monti
5 Jan 2011, 8:29 PM
Hi,

It's easy to make. Just take a look to this project http://code.google.com/p/djn-extension/. I'ts a lightweight implementation.
The main idea is that you can expose the DirectJNgine Actions as Spring managed Beans, so in this way you can inject your dependencies to that bean and then access those beans from the DirectAction.
There are two examples of use.

Regards.
Mauro.

Whatty
6 Jan 2011, 3:55 PM
There is already an integration for Spring with DirectJNgine posted somewhere in the forums - can't recall how long ago.

I know because I basically submitted it complete with the source code and have been using it in our project for a while

Just search for DirectJngine and Spring and you should find it.

Whatty