Kyle here (full name is 'Robert Kyle', but I go by Kyle).

Would it be 'worthwhile' to integrate SpringMVC into magnolia?  Definitely!
That's what I'm pushing for on the dev list.

Am I saying it can't be done?  Not at all. It just can't be done without
modifying source code and fundamental magnolia configs.  Hence I laid out
three options:  1) Use Spring and let Magnolia handle the architecture  2)
Use Spring MVC architecture for external web apps that are tied in where
appropriate  3) Take on the effort of modifying the source and config to
integrate the two.  I have not attempted this because I don't want to
fundamentally re-engineer my solution as new releases of magnolia come out.
I have enough trouble integrating my small tweaks.  That's why I would love
to see Spring integrated as a core framework component.

-KG

-----Original Message-----
From: Thomas Ferris Nicolaisen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 12:37 PM
To: [email protected]
Subject: Re: [magnolia-user] Problems Integrating Magnolia with Spring MVC

Robert, don't you think it would be worthwhile to integrate SpringMVC into
magnolia so you could get SpringMVC's validation, conversion and navigation
functionality into the magnolia-templates?

I tried to do the same with JSF, but gave up for the time being.

Have you tried to do this with SpringMVC since you're saying it can't be
done?

Can't SpringMVC's workings be modified to work with Magnolia's uri-handling
(I'm certain this can be done with JSF, but ran into other problems)?

I know we somewhat discussed this is the J2EE thread, but still nobody has
shown a web-framework interoperatable with magnolia. Bit of a shame, cause
validation, conversion and navigation would be really handy.

Gabhart, Robert Kyle @ Link wrote:
> I am an avid proponent of Spring and Spring MVC.  I even developed a 
> custom framework for my company that incorporates Spring.  I have not 
> attempted to integrate Magnolia and Spring MVC, but my initial thought 
> would be that they are not compatible.  Both of them provide 
> controllers and attempt to capture URIs and make processing decisions 
> based upon URIs.  Unless you were to modify the Magnolia source, I 
> don't think you can integrate them.  I suggest the following courses of
action:
> 
> 1) Use Spring (but not Spring MVC) within your templates to support 
> datasource access, cross-cutting concerns (IoC), loose-coupling of 
> components, etc.
> 2) Build Spring MVC apps and run them alongside magnolia as separate 
> web apps within the same server.  Link between them and reference the 
> respective applications when necessary. I do this for my company's 
> intranet.  A Spring MVC app is used to provide a news management 
> console that writes to a database.  I then have templates that read 
> from that database and display news articles.
> 3) Get really ambitious and re-engineer Magnolia to operate within the 
> Spring Framework. ;)
> 


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to