Interacting with LexEVS 5.0 LexEVS in a Distributed Environment November 2009.

Slides:



Advertisements
Similar presentations
Overview of LexEVS 5.0 LexEVS Architecture November, 2009.
Advertisements

Data Base. Objective Become familiar with database terminology. Create a project to display data for a single database table. Use a DataGrid control.
Module 5: Creating and Configuring Group Policy
AppManager 7: Deep Technical Dive Tim Sedlack & Michi Schniebel Sr. Product Managers.
OOP in Java Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
1 Build a Web Application on J2EE. 2 J2EE Scenario Client – Web Server – EIS Resources Client – Web Server – EIS Resources Client – Application Server.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of Creating Eclipse plug-ins.
Microsoft ® Official Course Interacting with the Search Service Microsoft SharePoint 2013 SharePoint Practice.
Session-01. Hibernate Framework ? Why we use Hibernate ?
Hands-On Microsoft Windows Server 2008 Chapter 8 Managing Windows Server 2008 Network Services.
Secure Search Engine Ivan Zhou Xinyi Dong. Project Overview  The Secure Search Engine project is a search engine that utilizes special modules to test.
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
WaveMaker Visual AJAX Studio 4.0 Training Studio Overview.
Securing Microsoft® Exchange Server 2010
1 Session Bean Chuyên đề Lập trình Java & J2EE Chương 14 Biên soạn: Th.S Nguyễn văn Lành.
LexEVS 101 Craig Stancl Rick Kiefer February, 2010.
Introduction to J2EE Architecture Portions by Kunal Mehta.
11 MANAGING AND DISTRIBUTING SOFTWARE BY USING GROUP POLICY Chapter 5.
1 © 2008 Avaya Inc. All rights reserved. IPOffice Configuration Service Emil Ratnam.
1 22 August 2001 The Security Architecture of the M&M Mobile Agent Framework P. Marques, N. Santos, L. Silva, J. Silva CISUC, University of Coimbra, Portugal.
Module 9 Configuring Messaging Policy and Compliance.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Designing and Developing WS B. Ramamurthy. Plans We will examine the resources available for development of JAX-WS based web services. We need an IDE,
LexEVS in a caGrid Environment Interacting with LexEVS 5.0 November 2009.
Ch 2 – Application Assembly and Deployment COSC 617 Jeff Schmitt September 14, 2006.
Module 6: Managing Client Access. Overview Implementing Client Access Servers Implementing Client Access Features Implementing Outlook Web Access Introduction.
Tuscany: a SOA framework Jeffrey Guo Accelrys, Inc.
JPA / HIBERNATE CSCI 6370 Nilayan Bhattacharya Sanket Sable.
Module 7: Advanced Application and Web Filtering.
Module 5: Creating and Configuring Group Policies.
Module 4 Planning for Group Policy. Module Overview Planning Group Policy Application Planning Group Policy Processing Planning the Management of Group.
Getting Started with SIDL using the ANL SIDL Environment (ASE) ANL SIDL Team MCS Division, ANL April 2003 The ANL SIDL compilers are based on the Scientific.
Module 4: Creating a Web Application with Web Forms
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Module 10: Windows Firewall and Caching Fundamentals.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
Eurostat November 2015 Eurostat Unit B3 – IT and standards for data and metadata exchange SDMX IT Tools Test Client Jean-Francois LEBLANC Christian SEBASTIAN.
17 Copyright © 2004, Oracle. All rights reserved. Deploying an ADF Application.
LexEVS 5.0 EVS to LexEVS: A Migration Guide November, 2009.
Java Programming: Advanced Topics 1 Enterprise JavaBeans Chapter 14.
Module 6: Configuring User Environments Using Group Policies.
Introduction – ORM, Helloworld Application
Module 6: Administering Reporting Services. Overview Server Administration Performance and Reliability Monitoring Database Administration Security Administration.
Institute for the Protection and Security of the Citizen HAZAS – Hazard Assessment ECCAIRS Technical Course Provided by the Joint Research Centre - Ispra.
Copyright © 2004, Keith D Swenson, All Rights Reserved. OASIS Asynchronous Service Access Protocol (ASAP) Tutorial Overview, OASIS ASAP TC May 4, 2004.
Microsoft ® Official Course Module 6 Managing Software Distribution and Deployment by Using Packages and Programs.
Overview of Windows Driver Development Reference: us/gstart/hh/gstart/gs_intro_031j.asp.
Module 5: Managing Content. Overview Publishing Content Executing Reports Creating Cached Instances Creating Snapshots and Report History Creating Subscriptions.
In the Name Of Almighty Allah. Java Application Connection To Mysql Created by Hasibullah (Sahibzada) Kabul Computer Science Faculty Afghanistan.
Google Code Libraries Dima Ionut Daniel. Contents What is Google Code? LDAPBeans Object-ldap-mapping Ldap-ODM Bug4j jOOR Rapa jongo Conclusion Bibliography.
Active X and Signed Applets Chad Bollard. Overview ActiveX  Security Features  Hidden Problems Signed Applets  Security Features  Security Problems.
Active Directory Domain Services (AD DS). Identity and Access (IDA) – An IDA infrastructure should: Store information about users, groups, computers and.
Introduction to Programming 1 1 2Introduction to Java.
 Project Team: Suzana Vaserman David Fleish Moran Zafir Tzvika Stein  Academic adviser: Dr. Mayer Goldberg  Technical adviser: Mr. Guy Wiener.
CACI Proprietary Information | Date 1 PD² SR13 Client Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
Data Virtualization Demoette… ODBC Clients
Running a Forms Developer Application
Using E-Business Suite Attachments
Chapter 5 Remote Procedure Call
Introduction to J2EE Architecture
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Planning a Group Policy Management and Implementation Strategy
J2EE Application Development
Lecture 1: Multi-tier Architecture Overview
Objectives In this lesson, you will learn to:
Objectives In this lesson you will learn about: Need for servlets
Developing and testing enterprise Java applications
Plug-In Architecture Pattern
Presentation transcript:

Interacting with LexEVS 5.0 LexEVS in a Distributed Environment November 2009

Interacting with LexEVS 5.0 Course Outline Course Learning Objectives Discuss the components required for installing a distributed environment. Discuss the download and setup of LexEVS 5.0 for distributed environment. Provide hands-on code exercises.

Session Details: Interacting with LexEVS 5.0 Lesson Syllabus Lesson 1: Overview of Distributed Mode Lesson 2: Hands-On Installation Lesson 3: Hands-On Code Examples

Lesson 1: Overview of Distributed Mode When you complete this lesson, you will be able to: Identify the components required for installing a distributed environment.

Lesson 1: Overview of Distributed Mode Distributed Environment Components The reference software stack: Java 1.5 MySQL JBoss GA LexEVS 5.0 local runtime These should already be in place on your workstation. The LexEVS 5.0 local runtime was installed during the local installation lesson. JBoss GA is required for distributed configuration. Reference files: LexEVS_50_webRuntime_jboss.zip lexevs.properties

Lesson 1: Overview of Distributed Mode Reference Files LexEVS_50_webRuntime_jboss.zip Includes war file (lexevsapi50.war) to be deployed to the JBoss server. Available from VKC download. lexevs.properties Used to set LexEVS systems properties. Used to configure security restrictions. Specifies LG_CONFIG_FILE property used to determine the location of the local installation.

Lesson 2: Hands-On Installation When you complete this lesson, you will be able to: Download and setup of LexEVS 5.0 for a distributed environment.

Lesson 2: Hands-On Installation Install Distributed Components Reference document: installsetupdistributed.doc

Lesson 2: Hands-On Installation Review Installation Copy lexevsapi50.war into jboss GA\server\cacoreDataGrid\deploy directory. Update and copy lexevs.properties file into jboss GA/server/cacoreDataGrid/conf directory. Start the JBoss server (startServer1.bat)

Lesson 2: Hands-On Installation Verify Installation Use the following link to verify the application has been installed and configured correctly: gSchemes.CodingScheme&org.LexGrid.codingSchemes.CodingSch emehttp://localhost:8080/lexevsapi50/GetHTML?query=org.LexGrid.codin gSchemes.CodingScheme&org.LexGrid.codingSchemes.CodingSch eme

Lesson 2: Hands-On Installation Verify Installation If successful, all loaded coding schemes will be returned.

Lesson 3: Hands-On Code Examples When you complete this lesson, you will be able to: Execute code examples in a distributed environment.

Lesson 3: Hands-On Code Examples Exercises Hands-on code examples are broken down into three categories: Examples Exercises Solutions Code coverage for these examples includes: LexBigService ConnectToDistributedLexBIGService.java DemonstrateProxies.java LexEvsDataService ConnectToDistributedLexEVSDataService.java DetachedCriteriaQuery.java HQLQuery.java QueryByExample.java Extensions GetRegisteredGenericExtensions.java

Lesson 3: Hands-On Code Examples Example 1 - Overview ConnectToDistributedLexBIGService.java Demonstrates how to connect to the distributed service. public LexBIGService getDistributedLexBIGService() throws Exception { return (LexBIGService)ApplicationServiceProvider. getApplicationServiceFromUrl(SERVICE_URL, SERVICE_NAME); SERVICE_URL = " SERVICE_NAME = "EvsServiceInfo";

Lesson 3: Hands-On Code Examples Example 1 - Example Navigate to: lexevs.bootcamp.distributed.examples.lexbigservice.Conn ectToDistributedLexBIGService.java

Lesson 3: Hands-On Code Examples Example 1 - Exercise Navigate to: lexevs.bootcamp.distributed.exercises.lexbigservice.Get LexBIGServiceExercise.java HINT: Modify the method protected LexBIGService getDistributedLexBIGService() so that it instantiates LexBIGService using ApplicationServiceProvider.

Lesson 3: Hands-On Code Examples Example 1 - Solution Implemented method: public LexBIGService getDistributedLexBIGService() throws Exception { return (LexBIGService)ApplicationServiceProvider.getApplicatio nServiceFromUrl(SERVICE_URL, SERVICE_NAME); SERVICE_URL = " SERVICE_NAME = "EvsServiceInfo";

Lesson 3: Hands-On Code Examples Example 2 - Overview DemonstrateProxies.java Proxies help distributed API calls appear as if they are being called locally on the client. This makes coding from local to distributed very straightforward for the programmer (same API calls used).

Lesson 3: Hands-On Code Examples Example 2 - Example Navigate to: lexevs.bootcamp.distributed.examples.lexbigservice.Demo nstrateProxies.java

Lesson 3: Hands-On Code Examples Example 3 - Overview ConnectToDistributedLexEVSDataService.java Demonstrates how to connect to the distributed data service. public LexEVSDataService getDistributedLexEVSDataService() throws Exception { return (LexEVSDataService)ApplicationServiceProvider.getApplic ationServiceFromUrl(SERVICE_URL, SERVICE_NAME); SERVICE_URL = " SERVICE_NAME = "EvsServiceInfo";

Lesson 3: Hands-On Code Examples Example 3 - Example Navigate to: lexevs.bootcamp.distributed.examples.lexevsdataservice. ConnectToDistributedLexEVSDataService.java

Lesson 3: Hands-On Code Examples Example 3 - Exercise Navigate to: lexevs.bootcamp.distributed.exercises.lexevsdataservice.GetLexEVSDataServiceExercise.java Hint: Modify the method public LexEVSDataService getLexEVSDataService() so that it instantiates LexEVSDataService using ApplicationServiceProvider.

Lesson 3: Hands-On Code Examples Example 3 - Solution Implemented method: public LexEVSDataService getDistributedLexEVSDataService() throws Exception { return (LexEVSDataService)ApplicationServiceProvider. getApplicationServiceFromUrl(SERVICE_URL, SERVICE_NAME); SERVICE_URL = " SERVICE_NAME = "EvsServiceInfo";

Lesson 3: Hands-On Code Examples Example 4 - Overview DetachedCriteriaQuery.java Demonstrates how to query content using Hibernate Criteria Queries by creating a query outside the scope of a session and then executing it using an arbitrary session. The query is against a particular persistent class. protected DetachedCriteria buildDetachedCriteria() throws Exception { DetachedCriteria dc = DetachedCriteria.forClass(Concept.class); SimpleExpression restriction = Restrictions.like("_entityCode", "%Heart%"); dc.add(restriction); return dc; }

Lesson 3: Hands-On Code Examples Example 4 - Example Navigate to: lexevs.bootcamp.distributed.examples.lexevsdataservice. DetachedCriteriaQuery.java

Lesson 3: Hands-On Code Examples Example 4 - Exercise Navigate to: lexevs.bootcamp.distributed.exercises.lexevsdataservice.DetatchedCriteriaExercise.java Hint: Modify the method protected DetachedCriteria buildDetachedCriteria() so that it specifies the following detached criteria for the query. Class: Concept Term: ‘Bone’

Lesson 3: Hands-On Code Examples Example 4 - Solution Implemented method: protected DetachedCriteria buildDetachedCriteria() throws Exception { DetachedCriteria dc = DetachedCriteria.forClass(Concept.class); SimpleExpression restriction = Restrictions.eq("_entityCode", "Bone"); dc.add(restriction); return dc; }

Lesson 3: Hands-On Code Examples Example 5 - Overview HQLQuery.java Demonstrates how to query content using Hibernate Query Language (HQL). HQL is a powerful query language that is similar in appearance to SQL. public void runExample() throws Exception { LexEVSDataService lbds = getCaCoreService(); HQLCriteria hql = buildHqlQuery(); List concepts = lbds.query(hql); for(Concept concept : concepts){ PrintUtility.print(concept); } protected HQLCriteria buildHqlQuery() throws Exception { return new HQLCriteria("FROM org.LexGrid.concepts.Concept " + "as concept where concept._entityCode like '%ear%'"); }

Lesson 3: Hands-On Code Examples Example 5 - Example Navigate to: lexevs.bootcamp.distributed.examples.lexevsdataservice. HQLQuery.java

Lesson 3: Hands-On Code Examples Example 5 - Exercise Navigate to: lexevs.bootcamp.distributed.exercises.lexevsdataservice.HQLExercise.java Hint: Modify the method protected HQLCriteria buildHqlQuery() so that it specifies the following criteria for the query. Object: org.LexGrid.concepts.Concept Term: ‘Heart_Part’

Lesson 3: Hands-On Code Examples Example 5 - Solution Implemented method: protected HQLCriteria buildHqlQuery() throws Exception { return new HQLCriteria("FROM org.LexGrid.concepts.Concept " + "as concept where concept._entityCode = 'Heart_Part'"); }

Lesson 3: Hands-On Code Examples Example 6 - Overview QueryByExample.java Demonstrates how to utilize query-by-example. public void runExample() throws Exception { LexEVSDataService lbds = super.getCaCoreService(); Object qbeObect = buildQueryByExampleObject(); List concepts = lbds.search(qbeObect.getClass(), qbeObect); for(Concept concept : concepts){ PrintUtility.print(concept); } private Object buildQueryByExampleObject(){ Concept concept = new Concept(); concept.setEntityCode("Muscle"); return concept; }

Lesson 3: Hands-On Code Examples Example 6 - Example Navigate to: lexevs.bootcamp.distributed.examples.lexevsdataservice. QueryByExample.java

Lesson 3: Hands-On Code Examples Example 6 - Exercise Navigate to: lexevs.bootcamp.distributed.exercises.lexevsdataservice.QueryByExampleExercise.java Hint: Modify the method protected Object buildQueryByExampleObject() so that it specifies the following criteria for the query. Concept Entity Code ‘Heart_Part’

Lesson 3: Hands-On Code Examples Example 6 - Solution Implemented method: protected Object buildQueryByExampleObject() throws Exception { Concept concept = new Concept(); oncept.setEntityCode("Heart_Part"); return concept; }

Lesson 3: Hands-On Code Examples Example 7 - Overview GetRegisteredGenericExtensions.java Demonstrates that extensions that are available in the local environment are also available in distributed.

Lesson 3: Hands-On Code Examples Example 7 - Example Navigate to: lexevs.bootcamp.distributed.examples.extension.GetRegis teredGenericExtensions.java

Lesson 3: Hands-On Examples Resources Hibernate Query Language Detatched Criteria Queries querycriteria-detachedqueries

Lesson 3: Hands-On Examples Questions?