SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Downloaden Sie, um offline zu lesen
JavaScript from Browser to 
Ruchira Wageesha & Manuranga Perera 
Last Updated: March 2014 
Server 
Jaggery Team
* 
About the Presenters 
๏ Ruchira is an Associate Technical Lead who mainly 
focuses on the WSO2 User Engagement Server, WSO2 
Enterprise Store and Jaggeryjs. He also has engaged in 
several customer engagements and QuickStart 
programs. Additionally, he is conversant in Mozilla 
Rhino, XSLT and server-siide JavaScript. 
๏ Manuranga is a Senior Software Engineer at WSO2. 
His focus areas include programming languages and 
algorithm design as well as dynamic front-ends. He 
holds a BSc in Computer Science and Engineering from 
University of Moratuwa, Sri Lanka. As part of his final-year 
research project, he developed a Dynamic Rule- 
Based Load Balancing Framework (a software-based 
load balancing framework that has the ability to 
dynamically change the load balancing scheme for 
improving performance).
* 
About WSO2 
๏ Global enterprise, founded in 
2005 by acknowledged leaders in 
XML, web services technologies, 
standards and open source 
๏ Provides only open source 
platform-as-a-service for private, 
public and hybrid cloud 
deployments 
๏ All WSO2 products are 100% open 
source and released under the 
Apache License Version 2.0. 
๏ Is an Active Member of OASIS, 
Cloud Security Alliance, OSGi 
Alliance, AMQP Working Group, 
OpenID Foundation and W3C. 
๏ Driven by Innovation 
๏ Launched first open source API 
Management solution in 2012 
๏ Launched App Factory in 2Q 2013 
๏ Launched Enterprise Store and 
first open source Mobile solution 
in 4Q 2013
* 
What WSO2 Delivers
* 
Outline 
๏ Introduction to Jaggery 
๏ Writing web applications using Jaggery 
๏ Accessing Java from Jaggery 
๏ Working with the WSO2 platform through Jaggery 
๏ Demo
* 
What is Jaggery 
๏ JavaScript based web framework 
๏ Bit similar to PHP 
๏ Can think it as PHP where the language is JavaScript
* 
Why Jaggery 
๏ There are so much of web frameworks 
๏ .NET, node/expressjs, ruby, python, Java
* 
Web Developers 
๏ Always work with JavaScript for their front ends 
๏ Will have to work with a different language for their backend 
๏ Deal with JSONs most of the time
* 
Why Jaggery 
๏ What if they can use the same frontend skills for backends as well 
๏ Still enjoy all favorite Java APIs from JavaScript 
๏ Synchronous programing pattern
* 
Jaggery Overview 
๏ Based on WSO2 Carbon Platform 
๏ Uses Mozilla Rhino for JavaScript execution 
๏ Requests are served by Java Servlets 
๏ Inherits all other features of a carbon server 
๏ e.g. Multitenancy, Dep Sync etc.
* 
Jaggery Features 
๏ Access Java from JavaScript 
๏ No more code compilation 
๏ edit, save, refresh 
๏ Connecting with any JDBC/NoSQL databases 
๏ Either using built in Database object or using Java APIs 
๏ SOAP service invocation using WSRequest object 
๏ REST service invocation using 
๏ XMLHttpRequest 
๏ jQuery get/post like simplified methods
* 
Jaggery Features 
๏ WebSockets support 
๏ Log4j based logging configurations for your apps 
๏ Expandability through Jaggery modules
* 
Jaggery Tooling 
๏ Dev Studio editor, debugger 
๏ IntelliJ editor plugin 
๏ VIM 
๏ Sublime
* 
Jaggery Web Development 
๏ HTTP request information access 
๏ request, response, session objects 
๏ Application level configurations 
๏ application object 
๏ Application lifecycle scripts 
๏ initScripts and destroyScripts 
๏ URL mappings through jaggery.conf 
๏ Basic auth through jaggery.conf
* 
Jaggery Web Development 
๏ Organize your code using include(), include_once() and require() 
๏ File object to read/write files 
๏ URIMatcher for implementing RESTful APIs 
๏ Database object to work with JDBC/Cassandra databases 
๏ connection pooling through carbon data sources 
๏ E4X for dealing with XMLs
* 
Carbon Platform Integration 
๏ Easy integration with WSO2 carbon platform through carbon module 
๏ Work with WSO2 Governance Registry APIs 
๏ Consume WSO2 Governance Artifacts 
๏ Deal with platform user stores 
๏ Work with tenants and implement Multi-tenanted SaaS apps easily 
๏ E.g. Enterprise Store, API Manager, User Engagement Server etc.
* 
Demo
* 
More Information 
[1] http://jaggeryjs.org/ 
[2] https://github.com/wso2/jaggery 
[3] https://github.com/wso2/jaggery-extensions 
[4] https://github.com/manuranga/todo-app 
[5] https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/Scripting_Java
* 
Business Model
Contact us !

Weitere ähnliche Inhalte

Was ist angesagt?

Best Practices with WSO2 Developer Studio
Best Practices with WSO2 Developer Studio Best Practices with WSO2 Developer Studio
Best Practices with WSO2 Developer Studio
WSO2
 

Was ist angesagt? (20)

jQuery Mobile Overview - Boston
jQuery Mobile  Overview -  BostonjQuery Mobile  Overview -  Boston
jQuery Mobile Overview - Boston
 
JS Framework Comparison - An infographic
JS Framework Comparison - An infographicJS Framework Comparison - An infographic
JS Framework Comparison - An infographic
 
React js Introduction
React js IntroductionReact js Introduction
React js Introduction
 
Module 01 - WebDriver Basics
Module 01 - WebDriver BasicsModule 01 - WebDriver Basics
Module 01 - WebDriver Basics
 
Web development using nodejs
Web development using nodejsWeb development using nodejs
Web development using nodejs
 
SWTT 140407 session02
SWTT 140407 session02SWTT 140407 session02
SWTT 140407 session02
 
Micro frontends
Micro frontendsMicro frontends
Micro frontends
 
Building Framework Agnostic UI with Web Components
Building Framework Agnostic UI with Web ComponentsBuilding Framework Agnostic UI with Web Components
Building Framework Agnostic UI with Web Components
 
Latest Javascript MVC & Front End Frameworks 2017
Latest Javascript MVC & Front End Frameworks 2017Latest Javascript MVC & Front End Frameworks 2017
Latest Javascript MVC & Front End Frameworks 2017
 
Best Practices with WSO2 Developer Studio
Best Practices with WSO2 Developer Studio Best Practices with WSO2 Developer Studio
Best Practices with WSO2 Developer Studio
 
Oleksandr Skachkov "Running С# in your Web Browser with WebAssembly"
Oleksandr Skachkov "Running С# in your Web Browser with WebAssembly"Oleksandr Skachkov "Running С# in your Web Browser with WebAssembly"
Oleksandr Skachkov "Running С# in your Web Browser with WebAssembly"
 
WaveMaker Next: Webinar - Presentation
WaveMaker Next: Webinar  - PresentationWaveMaker Next: Webinar  - Presentation
WaveMaker Next: Webinar - Presentation
 
Introduction To Micro Frontends
Introduction To Micro Frontends Introduction To Micro Frontends
Introduction To Micro Frontends
 
Single Page Application (SPA) using AngularJS
Single Page Application (SPA) using AngularJSSingle Page Application (SPA) using AngularJS
Single Page Application (SPA) using AngularJS
 
Browserify + Angular
Browserify + AngularBrowserify + Angular
Browserify + Angular
 
BlackBerry 10 Browser
BlackBerry 10 BrowserBlackBerry 10 Browser
BlackBerry 10 Browser
 
Google Web toolkit GWT 2.0 UiBinder Talk @ South Florida Google Technology Us...
Google Web toolkit GWT 2.0 UiBinder Talk @ South Florida Google Technology Us...Google Web toolkit GWT 2.0 UiBinder Talk @ South Florida Google Technology Us...
Google Web toolkit GWT 2.0 UiBinder Talk @ South Florida Google Technology Us...
 
MOKA .Net Study Outline
MOKA .Net Study OutlineMOKA .Net Study Outline
MOKA .Net Study Outline
 
jQuery Keynote - Fall 2010
jQuery Keynote - Fall 2010jQuery Keynote - Fall 2010
jQuery Keynote - Fall 2010
 
Jquery
JqueryJquery
Jquery
 

Ähnlich wie Java Script from Browser to Server

Kick Start your Application Development and Management Strategy
Kick Start your Application Development and Management Strategy Kick Start your Application Development and Management Strategy
Kick Start your Application Development and Management Strategy
WSO2
 
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
WSO2
 
Introduction to WSO2 Integration Platform
Introduction to WSO2 Integration PlatformIntroduction to WSO2 Integration Platform
Introduction to WSO2 Integration Platform
WSO2
 
Wso2 product release webinar introducing jaggery
Wso2 product release webinar   introducing jaggeryWso2 product release webinar   introducing jaggery
Wso2 product release webinar introducing jaggery
WSO2
 
Product Release Webinar- WSO2 Developer Studio 3.5
Product Release Webinar- WSO2 Developer Studio 3.5Product Release Webinar- WSO2 Developer Studio 3.5
Product Release Webinar- WSO2 Developer Studio 3.5
WSO2
 
Ugf9796 weblogic for ebs and obiee
Ugf9796 weblogic for ebs and obieeUgf9796 weblogic for ebs and obiee
Ugf9796 weblogic for ebs and obiee
Berry Clemens
 
Amit Kumar Architect with Web and Angular JS
Amit Kumar Architect with Web and Angular JSAmit Kumar Architect with Web and Angular JS
Amit Kumar Architect with Web and Angular JS
Amit Kumar
 
Driving Innovation for Application Management with WSO2 App Factory
Driving Innovation for Application Management with WSO2 App Factory Driving Innovation for Application Management with WSO2 App Factory
Driving Innovation for Application Management with WSO2 App Factory
WSO2
 
Enterprise Integration made easy with WSO2 ESB
Enterprise Integration made easy with WSO2 ESBEnterprise Integration made easy with WSO2 ESB
Enterprise Integration made easy with WSO2 ESB
WSO2
 

Ähnlich wie Java Script from Browser to Server (20)

Kick Start your Application Development and Management Strategy
Kick Start your Application Development and Management Strategy Kick Start your Application Development and Management Strategy
Kick Start your Application Development and Management Strategy
 
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
 
Introduction to WSO2 Integration Platform
Introduction to WSO2 Integration PlatformIntroduction to WSO2 Integration Platform
Introduction to WSO2 Integration Platform
 
Leveraging federation capabilities of identity server for api gateway
Leveraging federation capabilities  of identity server for api gatewayLeveraging federation capabilities  of identity server for api gateway
Leveraging federation capabilities of identity server for api gateway
 
Wso2 product release webinar introducing jaggery
Wso2 product release webinar   introducing jaggeryWso2 product release webinar   introducing jaggery
Wso2 product release webinar introducing jaggery
 
Java script everywhere
Java script everywhereJava script everywhere
Java script everywhere
 
Java Development Company | Xicom
Java Development Company | XicomJava Development Company | Xicom
Java Development Company | Xicom
 
Product Release Webinar- WSO2 Developer Studio 3.5
Product Release Webinar- WSO2 Developer Studio 3.5Product Release Webinar- WSO2 Developer Studio 3.5
Product Release Webinar- WSO2 Developer Studio 3.5
 
Native - Hybrid - Web Mobile Architectures
Native - Hybrid - Web Mobile ArchitecturesNative - Hybrid - Web Mobile Architectures
Native - Hybrid - Web Mobile Architectures
 
Ugf9796 weblogic for ebs and obiee
Ugf9796 weblogic for ebs and obieeUgf9796 weblogic for ebs and obiee
Ugf9796 weblogic for ebs and obiee
 
Amit Kumar Architect with Web and Angular JS
Amit Kumar Architect with Web and Angular JSAmit Kumar Architect with Web and Angular JS
Amit Kumar Architect with Web and Angular JS
 
WebSocket Perspectives and Vision for the Future
WebSocket Perspectives and Vision for the FutureWebSocket Perspectives and Vision for the Future
WebSocket Perspectives and Vision for the Future
 
Day1 before getting_started
Day1 before getting_startedDay1 before getting_started
Day1 before getting_started
 
OTN Developer Days - GlassFish
OTN Developer Days - GlassFishOTN Developer Days - GlassFish
OTN Developer Days - GlassFish
 
uMobile Development Strategies
uMobile Development StrategiesuMobile Development Strategies
uMobile Development Strategies
 
Driving Innovation for Application Management with WSO2 App Factory
Driving Innovation for Application Management with WSO2 App Factory Driving Innovation for Application Management with WSO2 App Factory
Driving Innovation for Application Management with WSO2 App Factory
 
RESTful Services and Distributed OSGi - 04/2009
RESTful Services and Distributed OSGi - 04/2009RESTful Services and Distributed OSGi - 04/2009
RESTful Services and Distributed OSGi - 04/2009
 
Java script Session No 1
Java script Session No 1Java script Session No 1
Java script Session No 1
 
Enterprise Integration made easy with WSO2 ESB
Enterprise Integration made easy with WSO2 ESBEnterprise Integration made easy with WSO2 ESB
Enterprise Integration made easy with WSO2 ESB
 
WSO2 Gadget Server
WSO2 Gadget ServerWSO2 Gadget Server
WSO2 Gadget Server
 

Mehr von WSO2

Mehr von WSO2 (20)

Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
 
WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AI
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
WSO2CON 2024 - Elevating the Integration Game to the Cloud
WSO2CON 2024 - Elevating the Integration Game to the CloudWSO2CON 2024 - Elevating the Integration Game to the Cloud
WSO2CON 2024 - Elevating the Integration Game to the Cloud
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital BusinessesWSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital Businesses
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

Java Script from Browser to Server

  • 1. JavaScript from Browser to Ruchira Wageesha & Manuranga Perera Last Updated: March 2014 Server Jaggery Team
  • 2. * About the Presenters ๏ Ruchira is an Associate Technical Lead who mainly focuses on the WSO2 User Engagement Server, WSO2 Enterprise Store and Jaggeryjs. He also has engaged in several customer engagements and QuickStart programs. Additionally, he is conversant in Mozilla Rhino, XSLT and server-siide JavaScript. ๏ Manuranga is a Senior Software Engineer at WSO2. His focus areas include programming languages and algorithm design as well as dynamic front-ends. He holds a BSc in Computer Science and Engineering from University of Moratuwa, Sri Lanka. As part of his final-year research project, he developed a Dynamic Rule- Based Load Balancing Framework (a software-based load balancing framework that has the ability to dynamically change the load balancing scheme for improving performance).
  • 3. * About WSO2 ๏ Global enterprise, founded in 2005 by acknowledged leaders in XML, web services technologies, standards and open source ๏ Provides only open source platform-as-a-service for private, public and hybrid cloud deployments ๏ All WSO2 products are 100% open source and released under the Apache License Version 2.0. ๏ Is an Active Member of OASIS, Cloud Security Alliance, OSGi Alliance, AMQP Working Group, OpenID Foundation and W3C. ๏ Driven by Innovation ๏ Launched first open source API Management solution in 2012 ๏ Launched App Factory in 2Q 2013 ๏ Launched Enterprise Store and first open source Mobile solution in 4Q 2013
  • 4. * What WSO2 Delivers
  • 5. * Outline ๏ Introduction to Jaggery ๏ Writing web applications using Jaggery ๏ Accessing Java from Jaggery ๏ Working with the WSO2 platform through Jaggery ๏ Demo
  • 6. * What is Jaggery ๏ JavaScript based web framework ๏ Bit similar to PHP ๏ Can think it as PHP where the language is JavaScript
  • 7. * Why Jaggery ๏ There are so much of web frameworks ๏ .NET, node/expressjs, ruby, python, Java
  • 8. * Web Developers ๏ Always work with JavaScript for their front ends ๏ Will have to work with a different language for their backend ๏ Deal with JSONs most of the time
  • 9. * Why Jaggery ๏ What if they can use the same frontend skills for backends as well ๏ Still enjoy all favorite Java APIs from JavaScript ๏ Synchronous programing pattern
  • 10. * Jaggery Overview ๏ Based on WSO2 Carbon Platform ๏ Uses Mozilla Rhino for JavaScript execution ๏ Requests are served by Java Servlets ๏ Inherits all other features of a carbon server ๏ e.g. Multitenancy, Dep Sync etc.
  • 11. * Jaggery Features ๏ Access Java from JavaScript ๏ No more code compilation ๏ edit, save, refresh ๏ Connecting with any JDBC/NoSQL databases ๏ Either using built in Database object or using Java APIs ๏ SOAP service invocation using WSRequest object ๏ REST service invocation using ๏ XMLHttpRequest ๏ jQuery get/post like simplified methods
  • 12. * Jaggery Features ๏ WebSockets support ๏ Log4j based logging configurations for your apps ๏ Expandability through Jaggery modules
  • 13. * Jaggery Tooling ๏ Dev Studio editor, debugger ๏ IntelliJ editor plugin ๏ VIM ๏ Sublime
  • 14. * Jaggery Web Development ๏ HTTP request information access ๏ request, response, session objects ๏ Application level configurations ๏ application object ๏ Application lifecycle scripts ๏ initScripts and destroyScripts ๏ URL mappings through jaggery.conf ๏ Basic auth through jaggery.conf
  • 15. * Jaggery Web Development ๏ Organize your code using include(), include_once() and require() ๏ File object to read/write files ๏ URIMatcher for implementing RESTful APIs ๏ Database object to work with JDBC/Cassandra databases ๏ connection pooling through carbon data sources ๏ E4X for dealing with XMLs
  • 16. * Carbon Platform Integration ๏ Easy integration with WSO2 carbon platform through carbon module ๏ Work with WSO2 Governance Registry APIs ๏ Consume WSO2 Governance Artifacts ๏ Deal with platform user stores ๏ Work with tenants and implement Multi-tenanted SaaS apps easily ๏ E.g. Enterprise Store, API Manager, User Engagement Server etc.
  • 18. * More Information [1] http://jaggeryjs.org/ [2] https://github.com/wso2/jaggery [3] https://github.com/wso2/jaggery-extensions [4] https://github.com/manuranga/todo-app [5] https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/Scripting_Java