Free Powerpoint Templates Page 1 © hedwire.com, Inc Free Powerpoint Templates Magnolia KonaKart Integration headwire.com, Inc Ruben Reusser, CTO [email protected]
Jun 26, 2015
Free Powerpoint Templates Page 1© hedwire.com, IncFree Powerpoint Templates
Magnolia KonaKart Integrationheadwire.com, IncRuben Reusser, [email protected]
Free Powerpoint Templates Page 2© hedwire.com, Inc
Topics What is it
Magnolia KonaKart Magnolia & KonaKart
Approaches KonaKart SOAP API Direct Integration
Implementation Merging the Applications Modification to Struts Setting up the Pages
Installation Styles
Demo Where to get it Questions
Free Powerpoint Templates Page 3© hedwire.com, Inc
Who am I?
Ruben Reusser, CTO headwire.com, Inc
headwire is a firm targeting cms based websites and cms based applications.
We offer solutions that combine a WCM and customer secific applications into one platform.
We treat the view of an application as content and allow our customers to manage them through a content management system.
We target Java and JCR based systems.
Free Powerpoint Templates Page 4© hedwire.com, Inc
What is it?
The Magnolia KonaKart Module targets websites with a shopping cart solution and the need for a WCM.
Free Powerpoint Templates Page 5© hedwire.com, Inc
Magnolia
Magnolia is a mature WCM based on JCR and Java. It's flexibility is a great core that can be extended and allows us to add application specific functionality with ease.
Free Powerpoint Templates Page 6© hedwire.com, Inc
KonaKart
KonaKart is a mature and full fledged struts based shopping cart solution written in Java with a hibernate based database backend.
KonaKart supports pricing, shipping and payment gateways out of the box as well as a great set of other features such as reviews, product bundling, wishlists, etc.
It is able to handle a large set of customer requirements out of the box.
Free Powerpoint Templates Page 7© hedwire.com, Inc
Magnolia & KonaKart
The vision of this module was to bring features from both applications together.
KonaKart can provide the shopping cart solution missing in Magnolia
Magnolia can provide the ease of managing the web part and styling a KonaKart shopping solution.
Free Powerpoint Templates Page 8© hedwire.com, Inc
Demo
Quick Demonstration of KonaKart featuresQuick Demonstration of Magnolia features
Free Powerpoint Templates Page 12© hedwire.com, Inc
Approaches
Multiple approaches are available to integrate KonaKart and Magnolia – both applications provide features that can be used.
- JSR168 portal support by Magnolia and KonaKart- KonaKart SOAP API
Free Powerpoint Templates Page 13© hedwire.com, Inc
JSR168 Portlet Support
KonaKart and Magnolia both support the JSR168 Portlet standard.
Pro:- easy to integrate with a portal server
Con: - needs an additional application - style for KonaKart and Magnolia need to be merged- no fine grained control over the KonaKart solution
Free Powerpoint Templates Page 14© hedwire.com, Inc
JSR168 Portlet Support
Free Powerpoint Templates Page 15© hedwire.com, Inc
SOAP API Integration
KonaKart provides a SOAP API to access all functionalities provided by KonaKart.
Pros: - Able to impletement pages and paragraphs in Magnolia to fully support all functions from KonaKart
Cons:- The view of the KonaKart application as well as error handling has to be rewritten
Free Powerpoint Templates Page 16© hedwire.com, Inc
Merge
KonaKart and Magnolia are both J2EE applications. There are no conflicts between the applications (version of dependent libraries, etc).
Pros: - Both applications can be merged with little effort- Ability to fully reuse all the view components from KonaKart within Magnolia
Cons:- future releases may cause conflicts in dependent libraries
Free Powerpoint Templates Page 17© hedwire.com, Inc
Implementation
A SOAP Version of the integration was first developed for a customer. The integration works, however not that feature rich.
To promote good reuse of the exising KonaKart code within Magnolia the approach to merge the two projects was chosen.
POC showed no conflicts and fast progress in developing necessary adjustments within Magnolia.
Free Powerpoint Templates Page 18© hedwire.com, Inc
Merging the Applications
The main problems in merging the applications are the web.xml files – both apps need to be able to run.
> Magnolia Filter Chain vs Struts
Free Powerpoint Templates Page 19© hedwire.com, Inc
Modification to Struts
View Actions are moved to Magnolia
Instead of
<action path="/CatalogLogInPage" forward="catalog.login.page"/>
Configuration is in Magnolia
Free Powerpoint Templates Page 20© hedwire.com, Inc
Modification to Struts
Free Powerpoint Templates Page 21© hedwire.com, Inc
Setting up Pages
All pages can then be set up within Magnolia and moved to an appropriate location.
All struts tiles are available as paragraphs
Free Powerpoint Templates Page 22© hedwire.com, Inc
Setting up Pages
Free Powerpoint Templates Page 23© hedwire.com, Inc
Setting up Pages
Free Powerpoint Templates Page 24© hedwire.com, Inc
Installation
- download and install KonaKart
- download the Magnolia bundled WAR file
- run the Magnolia KonaKart ant script
> results in a combined WAR file
- use the war file with tomcat or import into eclipse
- place the KonaKart filter right below logout filter
Free Powerpoint Templates Page 26© hedwire.com, Inc
Styles
- The Magnolia KonaKart module can be combined with the headwire templating module
- choose a style and run the shopping cart solution
DEMO
Free Powerpoint Templates Page 28© hedwire.com, Inc
Where can I get this?
KonaKart: http://www.konakart.comMagnolia: http://www.magnolia-cms.comMagnolia KonaKart Module: http://www.headwire.com
Support: Best through Magnolia User Mailing list or KonaKart forums