On 8/23/07, Kim Pepper [EMAIL PROTECTED] wrote:
Thanks to all for the advice.
My main concern would be using hibernate and lazy loading collections,
which usually requires the use of the OpenSessionInViewFilter/Interceptor
and a TransactionManager.
Restlet filters work fine for Session In
I'm just starting out with the Restlet framework after reading the excellent
RESTful Web Services book. I've had a lot of experience with Spring MVC and
Hibernate web applications, but it doesn't cut it for RESTful web
applications.
However, I want to reuse the spring managed objects and Data
Sample code
Here you can link to sample code contributions based on Restlets
http://wiki.java.net/bin/view/Javawsxml/Restlet
Integration with Spring 2.0 and Apache Tomcat
5.5http://restlet.tigris.org/nonav/issues/showattachment.cgi/67/Restlet-example.zip
I use and it works very well !
bye
On
And also you should look a little to the next release 1.1 (support of
spring) is not released yet !
http://article.gmane.org/gmane.comp.java.restlet/2308/match=1.1 download the
zip (beta version) and you will see new spring class (restlet extension).
bye
On 8/23/07, regis regis [EMAIL
Kim,
One of the bigger problems you'll have (in my opinion) is integration
of Restlet's Resource classes within your Spring framework. A Restlet
Resource will generally be the class you'll want talking to your spring
backend (like your spring DAOs, etc.). However, the Resource instances
org.restlet.ext.spring_2.0 has SpringFinder. So it's a case of :
bean id=my class=org.restlet.ext.spring.SpringFinder
lookup-method name=createResource bean=myResource/
/bean
bean id=myResource class=com.blah.myResource scope=prototype/
I use restlet via a servlet, I have to
That works OK, so long as you're not using proxies for other things,
like Spring DAO transaction management.
The lookup-method there will create a cglib based proxy, which has
potential to conflict if you have other cglib based proxies working in
your configuration. I know for a fact this
Thanks to all for the advice.
My main concern would be using hibernate and lazy loading collections, which
usually requires the use of the OpenSessionInViewFilter/Interceptor and a
TransactionManager.
I'll take a look at the 1.1 source and give it a try!
-- Kim
On 24/08/07, Jonathan Hall
8 matches
Mail list logo