Slides from the Magnolia Conference 2012 session on the ModeShape and Magnolia CMS. Based on my work for the JBoss Community team (which cares for the jboss.org services).
Breaking the Kubernetes Kill Chain: Host Path Mount
ModeShape and Magnolia
1. Magnolia & ModeShape
Beyond the reference implementation
jboss.org use case
Jozef Chocholacek, Senior Developer 05.09.2012 at Magnolia Conference 2012
1 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
2. Concerning Hobbits ModeShape
An Introduction
The Future
2 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
3. What is ModeShape
A JCR 2.0 implementation
Provides various storage
options
JCR access to the existing “ModeShape is a distributed, hierarchical,
transactional, and consistent data store
content
with support for queries, full-text search,
Automatic meta-data events, versioning, references, and
extraction flexible and dynamic schemas. It is very
fast, highly available, extremely scalable,
Federation and it is 100% open source and written in
Lightweight, embeddable, Java.
Clients use the (JSR-283) standard Java
clusterable
API for content repositories (aka, JCR) or
RESTful API, WebDAV server ModeShape's REST API, and can query
Open-source content through JDBC and SQL.”
3 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
4. Connectors
Database (JPA)
Disk
Filesystem
JCR
Subversion
Infinispan / JBoss Cache
JDBC metadata
Federation
4 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
5. Sequencers
XML, XSD, WSDL
ZIP files
MS Office documents
Java source/class files
MP3
DDL
Text
Teiid
5 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
6. Federation
Leave the data where it is
(i.e. your legacy app)
Use JCR API to access
6 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
7. Coming Soon: ModeShape 3.0
Much, much, MUCH faster
Larger repositories
Infinispan based
JSON Schema for configuration
Hibernate Search
JTA support (use in EJB, MDB, CDI, …)
Cloud storage
Simplier SPI
…
7 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
8. Shaping Magnolia
8 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
9. First Steps
JBoss Community Team, early 2010
May 2010: Magnolia developers involved
August 2010: proof-of-concept*
January 2011: modeshape-support module
released
(flagged “experimental”)
Obstacle: bad performance on big repos
(ver.2.4, not tested since that time)
* https://community.jboss.org/wiki/HowToMakeMagnoliaCMSShapedTomcatVersion
9 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
10. The Goal Redefined
End of 2011
Use ModeShape side-by-side with
Jackrabbit to access the filesystem
Motivation: move projects’ files from
SourceForge to downloads.jboss.org
10 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
11. The Problem & The Solution
Lucene version:
• Jackrabbit: Lucene 2.4.x
• ModeShape: Lucene 3.x
Can’t work together
(without classloading black-magic)
Solution: an independent (web)app to
start the MS Engine and use via JNDI
In production: June 13th, 2012
11 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
12. Code & Demo
12 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
13. The Future Of This Relation
Magnolia 5 is the priority
Waiting for the final version of the
ModeShape 3.0
Not a mere Jackrabbit replacement!
• Accessing the legacy data
• On-the-fly metadata processing
• Cloud storage
• …
13 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
14. Links
ModeShape: http://jboss.org/modeshape
My blogpost on the implementation:
http://bit.ly/T9XSUx
Jan’s blogpost on modeshape-support:
http://bit.ly/OgC847
My old “Shaping Magnolia” blogpost:
http://bit.ly/SdyIFo
The Git repo: https://git.magnolia-
cms.com/gitweb/?p=modules/modeshape-
support.git
Twitter: @modeshape, @magnolia_cms, @jchochol
14 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
15. Questions?
15 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
16. Thank you!
Jozef Chocholacek, Senior Developer 05.09.2012 at Magnolia Conference 2012
Magnolia International Ltd. Jozef.Chocholacek@magnolia-cms.com
www.magnolia-cms.com
16 Version 1.1 Magnolia is a registered trademark owned by Magnolia International Ltd.
Notes de l'éditeur
Beta4 next week(?)Final in the start of October3.1 by the end of year, federation is #1 issue (blocker)Many milions of nodes, >>10k subnodes