WebDAV / Spring integration? - spring

It appears there is built in support in the form of a servlet for tomcat (see here), but we use spring heavily in my company. I haven't been able to find any examples of spring/webDav integration. More directly, I'd like to use spring to customize the handling of the various WebDAV methods so it wasn't just reading from a filesystem. I'd like to read from a different data store. Anyone have any experience or know if this is possible?

It is possible. I was looking for the same thing, couldn't find Spring integration with Apache Jackrabbit or Apache Sling but did find it with Milton, see https://milton.io/documentation/
There you can checkout a maven project and see WebDAV (with Spring) in action.

Related

Spring Integration (not Basic Spring) support for Drools

Do we have examples or out of box support to use Spring Integration(not Basic Spring) as opposed to Camel with Drools like in link here?
What I would looking for is a way to build/set-up Decision Tables
and be able to use Spring Integration framework already existing in my application.
I have read about Spring but what I am looking for is Integration Framework support - specifically Spring-Integration as opposed to Apache Camel
Any pointers for basic set-up appreciated.
I think would be better if I move my comment to the answer to close this question:
I'd say that you should use that Drools-Camel fusion and route the result to the Spring Integration MessageChannel http://camel.apache.org/springintegration.html. Spring Integration doesn't support directly Drools and there is no plans.
The main reason - "do not reinvent the wheel".
Since Drools lives in JBOSS very well and has that Camel integration, there is no reason to find alternative solution.
Right, it's not a position of Spring Integration developer, but we just don't want to start a new holy war "Camel VS Spring Integration" :-).

Can a simple JSp and servlet code be migrated to Spring framework?

I am a newbie in web development. I'm using servlets and JSP for web development.However, I've learnt lately that Spring Framework is apt for that which incorporate servlets, jsp etc. So, my question is that can I now run my program using Spring framework ? Like, I have 2 jsp codes, and 1 servlet class. So, how can I migrate the code in Spring Framework ? what additional things or codes do I need to maintain ?
Migrating an existing J2EE project is easy.
You will get rid of a lot of "boilerplate" code in the process. The easiest way to do it in my opinion will be to use SpringToolSuite.
Import your project in STS and then add "Maven" nature to it. In the pom configuration you can edit all the jars that you need and mention the spring framework. Once all this is setup it will be just a matter of minutes to change the code if it is small.
You can follow these video tutorials about maven and spring to learn about it.
JavaBrains
There are more tutorials by "New Circle training" on youtube for the same.
I would also recommend you to read Spring in action 3rd edition-Manning
This book is a must and the best way to learn spring framework. Hope this helps

Struts2+Spring3+Tiles3

I would like to integrate tiles 3 to my web application spring3+struts2+hibernate,
but I don't have any idea of were to begin. All examples that I see use struts2 with tiles only, no integration of spring.
Here are few inputs how to integrate it.
For Integrating Struts2 with Spring use struts2-Spring plugin, all you need to have required spring jars and plugin, and your spring configuration file.Plugin document contains a basic start as how to configure it and how to use it, just follow those instructions and you are good to go (i am assuming you know how to use Spring )
Struts2 is independent of Hibernate and you are free to use it on your own way, though there are some plugins available , but i will suggest not to use them
For tiles there is again a plugin to take care of integration.
All these plugin will help you to integrate various technologies, but how to use them and how they work, you need to get know about them independently.

CQ5 Spring integration

Is the any way to perform integration CQ5 platform with Spring framework?
I would like to use Spring IoC capabilities to make my code more clear and efficient.
UPDATE
Hello againg, seems that I found solution.
Guys here developed Slice framework that really redices amound of code and made CQ5 development easier.
You probably want to check out Eclipse Gemini Blueprint, or it's original incarnation Spring Dynamic Modules. The Blueprint project basically gives you an easy way to create Spring enabled bundles in an OSGi environment.
As shsteimer mentions, Spring distributions before 3.2.0 were OSGi bundles, so could be dropped into an OSGi environment and you could probably use them directly. Spring 3.2.0 bundles and above are now available through the SpringSource ERB. However, Blueprint gets around or helps with some of the boilerplate OSGi stuff that you would otherwise have to do.
On a past project, I was able to get Spring JDBC working inside of CQ (to support some legacy code so we didn't have to re-write it). My memory is that the spring jar files already come "OSGI-ified" and so it was just a matter of figuring out all the layers of dependency needed for JDBC to work inside of CQ, and adding all the jars to the repository in an /apps/myApp/install folder.
Long story short, I'm not sure about IoC, but you might check to see if it's already packaged as an OSGI version which you can simply use without too much hassle.

How to integrate the GWT command pattern with spring

I have a project where I am using the GWT command pattern to implement the RPC. Here how i can integrate the Spring with GWT. Without Spring I am able to achieve the RPC. But here i need to use Spring Dependency Injection for GWT server side packages.
I am unable to find suitable sample or links to implement that.
Can anyone please provide the links and samples which has this requirement.
Without command pattern, I am able to integrate spring with GWT by referring following links
http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/
https://docs.google.com/document/pub?id=1USHYx9cB3B1s1zM4dlkzEZ759D3lEfavn_dDewvBkaA
Thanks,
Saritha
If you are using gwt-dispatch then you can use the gwt-dispatch-spring-ext to make it work with spring instead of guice. I haven't looked at these for a while - not sure to what extent they are being maintained - please do check before deciding to use these.

Resources