Integrating Kona Kart with Magnolia2. 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
© hedwire.com, Inc Page 2
3. 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
© hedwire.com, Inc Page 3
4. What is it?
The Magnolia KonaKart Module targets websites with
a shopping cart solution and the need for a WCM.
Free Powerpoint Templates
© hedwire.com, Inc Page 4
5. 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
© hedwire.com, Inc Page 5
6. 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
© hedwire.com, Inc Page 6
7. 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
© hedwire.com, Inc Page 7
8. Demo
Quick Demonstration of KonaKart features
Quick Demonstration of Magnolia features
Free Powerpoint Templates
© hedwire.com, Inc Page 8
9. Demo
Free Powerpoint Templates
© hedwire.com, Inc Page 9
10. Demo
Free Powerpoint Templates
© hedwire.com, Inc Page 10
11. Demo
Free Powerpoint Templates
© hedwire.com, Inc Page 11
12. 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
© hedwire.com, Inc Page 12
13. 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
© hedwire.com, Inc Page 13
15. 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
© hedwire.com, Inc Page 15
16. 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
© hedwire.com, Inc Page 16
17. 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
© hedwire.com, Inc Page 17
18. 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
© hedwire.com, Inc Page 18
19. 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
© hedwire.com, Inc Page 19
21. 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
© hedwire.com, Inc Page 21
24. 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
© hedwire.com, Inc Page 24
25. Installation
Free Powerpoint Templates
© hedwire.com, Inc Page 25
26. 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
© hedwire.com, Inc Page 26
27. Styles
Free Powerpoint Templates
© hedwire.com, Inc Page 27
28. Where can I get this?
KonaKart: http://www.konakart.com
Magnolia: http://www.magnolia-cms.com
Magnolia KonaKart Module: http://www.headwire.com
Support:
Best through Magnolia User Mailing list or KonaKart
forums
Free Powerpoint Templates
© hedwire.com, Inc Page 28
29. Questions?
Free Powerpoint Templates
© hedwire.com, Inc Page 29