Article: Integrating Java Content Repository and Spring
In this latest InfoQ article, Costin Leau provides a nice introduction to JSR 170 (Java Content Repositories) and how to integrate it with Spring Modules' JCR module, whose main objective is to simplify development with the JSR-170 API in a similar manner to that of the ORM package from the main Spring distribution.Read Integration Java Content Repository and Spring
According to the article, Springs JCR Module provides (summarized):
- JcrTemplate which allows execution of JcrCallbackand exception handling (transforming checked JCR exceptions into unchecked Spring DAO exceptions).
- Session and can be easily used as a replacement. Moreover the template is aware of thread-bound sessions which can be used across several methods, functionality very useful when using a transactional repository.
- RepositoryFactoryBean which configures, starts and stops the repository instances.
- SessionFactory which unifies the Repository,Credentials and Workspace interfaces and allows automatic registration of listeners and custom namespaces.
- Spring declarative transactional support for repositories that implement the (optional) transactional feature.
- OpenSessionInView interceptor and filter which allow the usage of the same session per thread across different components.
Nice article about JSR-170 Content Repository!
by
kishore madugula
Thanks,
Kishore Madugula
InfoQ.com use of Apache JackRabbit
by
William Louth
Can you tell me how have you clustered JackRabbit? Do you use the new clustering capabilities? If not then how are things synchronized across nodes within the cluster.
Also do you use a transactional back-end storage for the content repository and if so how have you and your team overcome the apparent lack of transactional integrity inherent in the design and implementation? Transaction chopping via component-resource partitioning (no sharing), chaining of execution units across threads, incorrect transaction patterns such as writes without reads (lost updates),....
kind regards,
William
Re: Nice article about JSR-170 Content Repository!
by
William Louth
regards, William
Re: InfoQ.com use of Apache JackRabbit
by
William Louth
Transaction Integrity Inspections
blog.jinspired.com/?p=37
More Transaction Integrity Inspections
blog.jinspired.com/?p=39
Concurrent Transactional Access
blog.jinspired.com/?p=40
regards, William
importFile sample
by
Paul Russo
return (Node) execute(new JcrCallback() {
should be
return (Node) template.execute(new JcrCallback() {
Correct me if I'm wrong.
Thanks,
Paul.
global.re importFile sample
by
Alex Popescu
./alex
--
:Architect of InfoQ.com:
.w( the_mindstorm )p.
C4Media/InfoQ Co-Founder
Excellent JSR-170 overview!
by
Jennifer Kline
The world needs more articles like this! Thanks!
Remote Storage
by
anand mahajan
Can u tell me how i can store contents on Remote machine.
I will install application on one machine and store files on other machine. There will be firewall between both machine.
Please help me.
Thanks, in advance.
-Andy
Re: Remote Storage
by
Konrad Pawlus
Can u tell me how i can store contents on Remote machine.
Try:
<bean id="repository" class="org.apache.jackrabbit.rmi.repository.URLRemoteRepository">
<constructor-arg value="http://localhost:8180/jackrabbit-webapp-1.5.5/rmi"/>
</bean>
and run Jackrabbit in Tomcat on this remote machine.
JCR module migrated to Spring Extension JCR
by
Salvatore Incandela
I would announce to you that the original JCR Module was migrated to the new Spring Extension infrastructure. I've recently released a new version of this module currently 0.9!
Below some useful links:
salvatoreincandela.blogspot.com/
forum.springsource.org/forumdisplay.php?f=65
Educational Content
Concurrency in Clojure
Stuart Halloway May 17, 2013
Confessions of an Agile Addict
Ole Friis Østergaard May 16, 2013
Web Development: You're Doing It Wrong
Stefan Tilkov May 16, 2013
Programming The Feynman Way
Ben Evans May 15, 2013





Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think