Liferay Portal With Mule ESB
description
Transcript of Liferay Portal With Mule ESB
![Page 1: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/1.jpg)
LIFERAY PORTAL-MULE ESB Pawan Modi Senior R&D Engineer
![Page 2: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/2.jpg)
Agenda
Scope Objective ESB Case Study Topologies Accomplishment Investigation
![Page 3: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/3.jpg)
Scope
Scope of this demo project is to assemble the information frommultiple sources & represent it on common interface.LifeRay is a portal offers many good features & it also meetsour requirements.
Following are the modules expected in LifeRay Demo. Single Sigh-on. Role Management. ESB. Auditing. Jasper Reports.
![Page 4: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/4.jpg)
Objective
Objective is to achieve communication between extremely differentapplications & information source.
Application Integration is the biggest challenge for many enterprises. ESB isprobably the quickest and most cost-effective way to address thischallenge.
Goal is to innovate platform that integrate different applications &provide simple communication & data exchange between them.
Multiple technologies are available in market. Rest ESB
![Page 5: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/5.jpg)
Rest
REST is a simple interface transmits domain-specific dataover HTTP without an additional messaging layer such asSOAP or session tracking via HTTP cookies.
Multiple REST framework are available in market WebDAV Restlet
Team decided to explore Restlet framework.
![Page 6: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/6.jpg)
Rest Conti..
After going ahead with Rest, team found following limitations with Rest.
All critical resources in an application should be exposed as URIs.
Very much applicable for GET requests but unproven for other state operations like complex operation eg PUT, DELETE.
Decided to go for ESB instead of Rest.
![Page 7: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/7.jpg)
ESB
Enterprise service bus provides foundational services for morecomplex architectures via an event-driven and standards-based messaging engine.
ESB enables the software connection running in parallel ondifferent platforms, written in different programminglanguages and using different programming models.
![Page 8: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/8.jpg)
ESB Conti..
![Page 9: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/9.jpg)
ESB Conti..
Multiple ESB frameworks are available in market. Mule Service Mix WSO2 IBM WebSphere
Decided to explore Servicemix & Mule ESB.
![Page 10: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/10.jpg)
ServiceMix
ServiceMix combines the functionality of a Service Oriented Architecture (SOA) and an Event Driven Architecture (EDA) to create an agile & enterprise ESB.
Following are the features of ServiceMix Completely based on JBI (Java Business Integration standard) Normalized messages based on XML. Best suited for working with BPEL, WSDL etc. Lacks security and breadth of connectivity.
![Page 11: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/11.jpg)
ServiceMix Conti..
![Page 12: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/12.jpg)
ServiceMix Limitations
Decided not to explore further on ServiceMix due to following limitations. Only support Xml messages. Lack of security. ServiceMix is not light-weight framework.
Need to be explored more towards ServiceMix.
![Page 13: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/13.jpg)
Mule
Mule is a light-weight messaging framework thatcontains a distributable object broker for managingcommunication between applications.
Mule can communicate over a whole range ofcommunication channels whereas ESB standardizeson the notion of a message bus.
![Page 14: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/14.jpg)
Why Mule??
Mule got following advantages on other ESBs. Scalable messaging framework that should handle
most of the complexities of system integration.
Mule server can operate over complex topologies.
Flexible configuration that should be easy tomanage over a distributed environment.
![Page 15: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/15.jpg)
Mule Architecture
![Page 16: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/16.jpg)
Mule Architecture Conti..
![Page 17: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/17.jpg)
Case Study
Following are the main objectives Integrate Mule with LifeRay portal. Deploy LR-Mule on single common server.
All communication must be redirected only via Mule server. Above requirement is important because communication via Mule server
aid in implementing single sign-on & monitoring security threats.
Mule is tried & tested in N-N, Bus & Star topology Following slides share experience about N-N, Bus & Star topologies.
![Page 18: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/18.jpg)
N-N Topology
In N-N topology, all nodes need to implement Mule for communication.
All node / application communicate with each other via underlying Mule.
N-N Limitations N-N topology is not feasible to implement.
Replication of Mule configuration in to multiple nodes is not advisable.
![Page 19: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/19.jpg)
N-N Topology Conti..
Mule Mule Mule
Node1 Node2 Node3
All network nodes need to implement Mule
![Page 20: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/20.jpg)
Bus Topology
Bus topology is not meeting our 2nd objective. In Bus topology, communication among network
applications is not necessarily be via Mule server. Direct access make it difficult to implement single sign-
on. Direct access may also compromises with network
security.
![Page 21: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/21.jpg)
Bus Topology Conti..
Node1
Node3 Node2 Mule Server
Node1/Node2/Node3 can access services from Node1/Node2/Node3 without going via Mule Server.
![Page 22: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/22.jpg)
Star Topology
Mule is integrated in liferay portal & tested successfully in star topology.
Centralised LR-Mule server is functioning well.
Single sign-on & centralised security server via Mule is yet to be tried out.
Following slides shows Mule deployment in various star topologies.
![Page 23: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/23.jpg)
Star Topology Conti..
Communication among client1,client2, client3 is via Mule server.
Mule Client2 Mule Client3
Mule Client1
LifeRay-MuleServer
Centralised LifeRay-Mule Server
![Page 24: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/24.jpg)
Star Topology Conti..
B C
A
LR-Mule1
BB CC
AA
LR-Mule2
Two LifeRay-Mule network applications communicating with each other.
![Page 25: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/25.jpg)
Accomplishments
Mule is successfully integrated & tested in LifeRay portal.
LifeRay-Mule server is tested & working fine in star topologies.
LifeRay-Mule server with multiple applications like JSP, portlets is tested & working fine.
Two LifeRay-Mule server networks, each with multiple applications are tested & working fine.
File transfer from Mule server to clients in star topology is tested successfully.
Accessing information among multiple nodes in star topologies is tested & achieved successfully.
Redirection via mule server is functioning well in star topologies.
![Page 26: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/26.jpg)
Investigation
Single sign-on via Mule server is still in investigation.
Mule security & authentication feature need to be further explored.
File transfer between mule-clients via mule server is not yet achieved.
![Page 27: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/27.jpg)
Centralised Setup
App2 App3
App1
LDAPCAS
MULE
Single Sign-on & Centralised Security Implementation
![Page 29: Liferay Portal With Mule ESB](https://reader035.fdocuments.us/reader035/viewer/2022081800/54669f1db4af9f06758b46c5/html5/thumbnails/29.jpg)
Thank you!