1 / 9

WebOPI -Build & Setup

WebOPI -Build & Setup. Xihui Chen chenx1@ornl.gov April, 2013. Technologies behind WebOPI. Built on Eclipse RAP ( Remote Application Platform ) Bring Eclipse RCP to the Web Single Sourcing between RCP and RAP applications Using JavaScript and HTML5 in Web Browser

maeko
Download Presentation

WebOPI -Build & Setup

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. WebOPI-Build & Setup Xihui Chen chenx1@ornl.gov April, 2013

  2. Technologies behind WebOPI • Built on Eclipse RAP (Remote Application Platform) • Bring Eclipse RCP to the Web • Single Sourcing between RCP and RAP applications • Using JavaScript and HTML5 in Web Browser • Supported by all mainstream web browsers • Standard servlet technology  • Server runs on any JEE servlet container, such as Tomcat, Jetty, Glassfish, JBoss and WebSphere • Most of BOY code (99%) is single sourced with WebOPI

  3. Why can it do single sourcing?

  4. WebOPI build & setup manual • Development Setup • http://htmlpreview.github.com/?https://github.com/ControlSystemStudio/cs-studio/blob/master/applications/plugins/org.csstudio.opibuilder.rap/html/WebOPI_developer.html • Deployment • http://htmlpreview.github.com/?https://github.com/ControlSystemStudio/cs-studio/blob/master/applications/plugins/org.csstudio.opibuilder.rap/html/WebOPI.html

  5. Prepare WebOPI Development Environment • Start Eclipse with a new workspace • Import projects as described in manual • Set Target Platform • Launch WebOPI from Eclipse

  6. Build • Install WAR products tooling • Export WAR Product • Include org.csstudio.opibuilder.rap/html/META-INF • jar uf webopi.war META-INF/

  7. Deploy • Support all JEE servlet container • Tomcat, Jetty, Glassfish, JBoss and WebSphere • Step 1. Copy webopi.war to the predefined location specified by servlet container • Step 2. Configure css_rap.ini • Step 3. Copy opi files to opi_repository • Open your favorite web browser with • http://localhost:8080/webopi/ org.csstudio.opibuilder/opi_repository=C:/path/BOY Examples/ org.csstudio.opibuilder/startup_opi=main.opi org.csstudio.opibuilder/mobile_startup_opi=mobile.opi org.csstudio.opibuilder/color_file=color.def org.csstudio.opibuilder/font_file=font.def

  8. Could Custom BOY Widgets work? • Yes, but it needs to follow few rules: • Don’t use Display.getCurrent() • There is no “current” because each client has its own Display • Don’t use static color, font, cursor because they are Display related • Make sure your code work with RAP

  9. Thank you! • WebOPI homepage: • http://sourceforge.net/apps/trac/cs-studio/wiki/webopi

More Related