Transcript
Page 1: Best Practices with WSO2 Developer Studio

Last  Updated:    Jan.  2014  

Senior  So(ware  Engineer  

Asanka  Sanjeewa  

Enterprise  Applica2on  Development  Best  Prac2ces  with  WSO2  Developer  Studio  

Harshana  Mar2n  

Associate  Technical  Lead  

Page 2: Best Practices with WSO2 Developer Studio

*  *  

About  the  Presenter(s)  

๏  Harshana Martin Associate Technical

Lead [email protected]

Page 3: Best Practices with WSO2 Developer Studio

*  *  

About  the  Presenter(s)  

๏  Asanka Sanjeewa Senior Software

Engineer [email protected]

Page 4: Best Practices with WSO2 Developer Studio

*  *  

About  WSO2  ๏  Global  enterprise,  founded  in  

2005  by  acknowledged  leaders  in  XML,  web  services    technologies,  standards    and  open  source  

๏  Provides  only  open  source  plaBorm-­‐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  AcMve  Member  of  OASIS,  Cloud  Security  Alliance,  OSGi  Alliance,  AMQP  Working  Group,  OpenID  FoundaMon  and  W3C.  

๏  Driven  by  InnovaMon  

๏  Launched  first  open  source  API  Management  soluMon  in  2012  

๏  Launched  App  Factory  in  2Q  2013  

๏  Launched  Enterprise  Store  and  first  open  source  Mobile  soluMon  in  4Q  2013  

Page 5: Best Practices with WSO2 Developer Studio

*  *  

What  we  Deliver  

Page 6: Best Practices with WSO2 Developer Studio

*  *  

Business  Model  

Page 7: Best Practices with WSO2 Developer Studio

*  *  

WSO2  Developer  Studio  

๏ WSO2 Developer Studio is the strategic on-premise development tool for WSO2 Carbon middleware platform.

๏ Enables Develop, Deploy, Debug and Test using single interface providing One-Stop tool.

๏ For more information about WSO2 Developer Studio 3.5 refer to http://wso2.com/library/webinars/2014/01/product-release-webinar-wso2-developer-studio/

Page 8: Best Practices with WSO2 Developer Studio

*  

Developer  Studio  Tools    •  ESB  Editor,  graphical  too,  with  reverse  engineering  capabiliMes  •  Governance  Registry  Tools,  to  browse,  create  and  edit  service  meta  data  

•  Data  Services  Editor,  from  data  to  services  in  quick  Mme  

•  IntegraMng  o  Eclipse  BPEL  editor  tools,  business  process  design  

o  JBoss  Smooks  editor,  visual  data  transformaMons  

•  Composite-­‐ApplicaMons  support  

•  Combine  mulMple  arMfacts  into  one  logical  project  deployed  across  mulMple  services  

with  different  roles  

•  Maven   based   build   model,   to   help   with   automated   conMnuous   builds   and  

integraMon  

Page 9: Best Practices with WSO2 Developer Studio

*  *  

Use  Case:  A  Fault  Repor2ng  System  

Page 10: Best Practices with WSO2 Developer Studio

*  *  

Product  Informa2on  

๏ WSO2 Developer Studio 3.5.0

๏ WSO2 Enterprise Service Bus 4.8.0

๏ WSO2 Application Server 5.2.1

๏ WSO2 Data Service Server 3.1.1

๏ MySQL Server 5.x

Page 11: Best Practices with WSO2 Developer Studio

*  *  

Demo

Page 12: Best Practices with WSO2 Developer Studio

*  *  

Demo  Outline  

๏ Setting up Database (MachinesDB)

๏ Setting up Development Environment

๏ Creating Data Service (MachineFaultsDS)

๏ Creating Axis2 Service (BinaryCodeDecoder)

๏ Creating ESB Artifacts

๏ Creating Web App to update fault jobs

๏ Adding WSO2 Servers to the Developer Studio

๏ Deploy Capp from Developer Studio

Page 13: Best Practices with WSO2 Developer Studio

*  *  

SeSng  up  Database  

๏ Create database (MachinesDB)

๏ Create table (MachineFaults)

Page 14: Best Practices with WSO2 Developer Studio

*  *  

SeSng  up  Development  Environment  ๏ Open eclipse (Developer Studio)

๏ Create Maven Multi Module Project

Page 15: Best Practices with WSO2 Developer Studio

*  *  

Crea2ng  Data  Service  ๏ Create Data Service Project (MachineFaultsDS) ๏ Configure Data Service

๏  Add an insert query (InsertQuery) ๏  Add input mapping for the InsertQuery ๏  Add an operation (InsertQueryOperation) ๏  Add an update query (UpdateQuery) ๏  Add input mapping for the UpdateQuery ๏  Add an operation for UpdateQuery (UpdateQueryOperation)

๏ Test data service ๏  Configure Data Service Server ๏  Add WSO2 Data Service Server to the Developer Studio ๏  Deploy data service ๏  Test service using Tryit option

Page 16: Best Practices with WSO2 Developer Studio

*  *  

Crea2ng  Axis2  Service  

๏ Create Axis2 service project (BinaryCodeDecoder) ๏  Create service (BinaryCodeDecoder) ๏  Generate WSDL for the service

๏ Test Axis2 service ๏  Add WSO2 Application Server to the Developer Studio ๏  Deploy axis2 service ๏  Test service using Tryit option

Page 17: Best Practices with WSO2 Developer Studio

*  *  

Crea2ng  ESB  Ar2facts  ๏ Create ESB Config project (ESBConfigs) ๏ Create ESB artifacts

๏  Create and import proxy services ๏  Create and import sequences ๏  Create Registry Resource Project ๏  Create endpoints as Registry Resources ๏  How to use tool palette ๏  Compose configurations using ESB Graphical Editor

๏ Deploy and Testing ๏  Configure ESB server for mail transport ๏  Start server ๏  Add ESB server to the Developer Studio as a Remote Server ๏  Deploy ESB artifacts within ESB server ๏  Testing configuration using Tryit option

Page 18: Best Practices with WSO2 Developer Studio

*  *  

Crea2ng  Web  Applica2on  

๏ Create a Web Application (FaultJobUpdater) ๏  Add jsp files (index.jsp) ๏  Add servlet ๏  Modify web.xml (add servlet mapping) ๏  Generate axis2 web service client to invoke a proxy service

๏ Test Web Application ๏  Deploy Web App in WSO2 Application Server ๏  Access Web App from web browser and submit form

Page 19: Best Practices with WSO2 Developer Studio

*  *  

Page 20: Best Practices with WSO2 Developer Studio

*  *  

Page 21: Best Practices with WSO2 Developer Studio

*  *  

Q/A

Page 22: Best Practices with WSO2 Developer Studio

*  *  

Call  to  ac2on  page  

๏  WSO2 Developer Studio 3.5.0 http://wso2.com/products/developer-studio/ http://marketplace.eclipse.org/content/wso2-developer-studio

๏  WSO2 Developer Studio Documentation http://docs.wso2.org/display/DVS350/WSO2+Developer+Studio+Documentation

๏  Eclipse Juno SR2 Java EE http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/junosr2

Page 23: Best Practices with WSO2 Developer Studio

*  *  

Call  to  ac2on  page  

๏  WSO2 Enterprise Service Bus 4.8.0 http://wso2.com/products/enterprise-service-bus/

๏  WSO2 Application Server 5.2.1 h]p://wso2.com/products/applicaMon-­‐server/  

๏  WSO2 Data Service Server 3.1.1 h]p://wso2.com/products/data-­‐services-­‐server/  

Page 24: Best Practices with WSO2 Developer Studio

Contact  us  !  


Top Related