Chemical Toxicity and Safety Information System Shuanghui Luo Ying Li Jin Xu.

Slides:



Advertisements
Similar presentations
J2EE Architecture Overview
Advertisements

An architecture for webb applications, J2EE
Distributed System Using Java 2 Enterprise Edition (J2EE) B.Ramamurthy.
Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta.
Introduction to Enterprise JavaBeans. Integrating Software Development Server-side Component Model Distributed Object Architecture –CORBA –DCOM –Java.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Point Of Sale(POS) J2EE Application Department : Computer Science Degree : Master Student : Woojin Choi ID : (POS J2EE Application with JRun)
Layers & Tiers Umair Javed Lec - 41.
1 Build a Web Application on J2EE. 2 J2EE Scenario Client – Web Server – EIS Resources Client – Web Server – EIS Resources Client – Application Server.
J2EE Java2 Enterprise Edition by Damian Borth. Contents Introduction Architectures styles Components Scenarios Roles Processing a HTTP request.
Java 2 Platform, Enterprise Edition (J2EE). Source: Computer, August 2000 J2EE and Other Java 2 Platform Editions.
J2EE Java 2 Enterprise Edition. Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc
J2EE Security and Enterprise Java Beans Mrunal G. Dhond Department of Computing and Information Sciences Master of Science, Final Defense February 26,
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Emmanuel Cecchet et al.  Performance Scalability of J2EE application servers.  Test effect of: ◦ Application Implementation Methods ◦ Container Design.
Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer.
Web-based Software Development - An introduction.
Distributed System Using Java 2 Enterprise Edition (J2EE)
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
EJB Overview Celsina Bignoli Distributed Business Applications Server DB Client DB Server DB.
Distributed Multitiered Applications The J2EE platform uses a multitiered distributed application model. Application logic is divided into components 1.
IMS Technical Conference IMS Java Remote Database Services Kyle Charlet.
Ing. Ignacio Roqueta ARTech GeneXus and J2EE.
© D. Wong  Indexes  JDBC  JDBC in J2EE (Java 2 Enterprise Edition)
Using JavaBeans and Custom Tags in JSP Lesson 3B / Slide 1 of 37 J2EE Web Components Pre-assessment Questions 1.The _____________ attribute of a JSP page.
Chemical Toxicity and Safety Information System Shuanghui Luo Ying Li Jin Xu.
Enterprise Java Beans Part I Kyungmin Cho 2001/04/10.
Container-Managed Persistence (CMP) Entity Beans Lesson 3A / Slide 1 of 42J2EE Server Components Objectives In this lesson, you will learn to: Identify.
Enterprise JavaBeans. Lesson 1: Introduction to Server-Side Component Software.
Enterprise JavaBeans. What is EJB? l An EJB is a specialized, non-visual JavaBean that runs on a server. l EJB technology supports application development.
Introduction to J2EE Architecture Portions by Kunal Mehta.
JBoss at Work JAW Motors Application Chapter 1-3 Jeff Schmitt October 9, 2006.
Fundamentals of Database Chapter 7 Database Technologies.
第十四章 J2EE 入门 Introduction What is J2EE ?
J2EE Structure & Definitions Catie Welsh CSE 432
Enterprise Java Beans Java for the Enterprise Server-based platform for Enterprise Applications Designed for “medium-to-large scale business, enterprise-wide.
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
Ch 2 – Application Assembly and Deployment COSC 617 Jeff Schmitt September 14, 2006.
Project Overview Graduate Selection Process Project Goal Automate the Selection Process.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
1 Java EE Programming Enterprise JavaBeans. 2 Topics J2EE Overview Enterprise JavaBeans Overview Enterprise Entity Beans Case Study How to build them.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
Introduction to Enterprise JavaBeans Topics In Systems Architecture Barry Herbold
Assignment of JAVA id : BSSE-F10-M-10-JAVA1 Overview of J2EE/Session 2/Slide 1 of 38.
Architecture View Models A model is a complete, simplified description of a system from a particular perspective or viewpoint. There is no single view.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
1 Copyright © 2004, Oracle. All rights reserved. Oracle Application Development Framework.
Introduction to EJB. What is an EJB ?  An enterprise java bean is a server-side component that encapsulates the business logic of an application. By.
1 Distributed System using J2EE. 2 What is J2EE?  J2EE (Java2 Enterprise Edition) offers a suite of software specification to design, develop, assemble.
Introduction to EJB. What is an EJB ?  An enterprise java bean is a server-side component that encapsulates the business logic of an application. By.
Java Programming: Advanced Topics 1 Enterprise JavaBeans Chapter 14.
Copyright © 2002 ProsoftTraining. All rights reserved. Enterprise JavaBeans.
©NIIT Introducing Enterprise JavaBeans (EJB) Lesson 1A / Slide 1 of 43J2EE Server Components Objectives In this lesson, you will learn about: The features.
Enterprise JavaBeans: Fundamentals. EJB Fundamentals(c)CDAC(Formerly NCST)2 Contents Introduction Technology Overview EJB Architecture EJB Specification.
Alan L. Batongbacal CS 4244 / 01 Nov 2000
Enterprise JavaBeans. Lesson 1: Introduction to Server-Side Component Software.
EJB. Introduction Enterprise Java Beans is a specification for creating server- side scalable, transactional, multi-user secure enterprise-level applications.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
J2EE Platform Overview (Application Architecture)
Point Of Sale(POS) J2EE Application
Introduction to J2EE Architecture
Introduction to Enterprise JavaBean
Distributed System Using Java 2 Enterprise Edition (J2EE)
Computer Based Adaptive Testing
Component-based Applications
Understanding and Designing with EJB
Enterprise Java Beans.
Knowledge Byte In this section, you will learn about:
Presentation transcript:

Chemical Toxicity and Safety Information System Shuanghui Luo Ying Li Jin Xu

Outline  Introduction  Goals and system functionalities  Technologies and tools  System architecture  Reference  Acknowledgement  Implementation Demo

Cheminfomatics Cheminformatics is an exciting and rapidly developing field, and focuses on solving problems arising from chemistry using methodology from computer science. The practice not only to leverage the accumulated knowledge in various forms but also to derive new understanding based on the available knowledge using information technologies and tools.

Introduction Significance: ChemInformatics system is a useful tool for different users such as scientists, students and so on to raise the awareness of chemical hazards & to improve chemical safety management.  To show the selected chemical toxicity, risky and safety information.  To compare the toxicity data, risky and safety phrases with the analogue chemicals.  To indicate the risky phrases and safety guidelines, for example, some chemicals are high toxic and need to keep away from human being and living entities.

Goals  Establish a distributed chemical toxicity and safety information service system using a multi-tier architecture  Follow the process of software development  Learn and apply middleware technologies (EJB and XML)  Understand component based programming approach Client Tier Browser Servlet EJB JDBC DataBase Representation Tier Business Tier Integration Tier Resource Tier

System Functionalities  online search application  presents users chemical toxicity, risky, and safety information and services  manages user logins for security  processes the queried data and does some analysis and returns the corresponding data table and view in graph.

Technology and Tools (1/3) Browser Web container Web container EJB container EJB container EIS resources HTML Servlets Enterprise Beans, JDBC (or connectors) RMI, SQL

Technology and Tools (2/3) EJB ( Enterprise Java Beans)  Server-side architecture for distributed, transactional components.  Framework for easily creating business objects.(e.g. transaction, naming, persistence services)  Relive developers from managing Low-level transaction and state management Multithreading and resource pooling Security Persistence and other complex APIs.  Provide standard Java component architecture. Allow combining components developed using different tools. Compatible with existing server platforms, existing Java APIs and CORBA. Write once, and run anywhere.

Technology and Tools (3/3) Java: programming language Servlet: web presentation XML: used to write deployment descriptor JDBC-ODBC: connection to DB MS-Access: DB Jboss-Jetty Ant - Build Tool

Web Browser Web Browser Database Tier 1Tier 2 Tier 3 EJB container Web container Servlet QueryBean Sesssion Bean ChemDBBean Entity Bean UserDBBean (Entity Bean) AdminBean Sesssion Bean SafeDBBean Entity Bean RiskDBBean Entity Bean LoginBean Sesssion Bean System architecture

EJB Beans Four Entity Beans UserDBBean: store user information for user management. ChemDBBean: store chemical toxicity, and chemical properties. RiskDBBean: store chemical information about risky phrases. SafeDBBean: store chemical information about safety phrases Three Session Beans LoginBean: handle user verification (uses UserDBBean check the user ID and password) AdminBean: for administrator to manage user accounts QueryBean: handle client request retrieve chemical information

 LoginServlet: User verification.  FormulaServlet: Query by chemical formula.  QueryServlet: Query for chemical information including toxicity, risky and safety phrases.  Compareservlet: Compare chemical information by category. Servlets

Root=/cheminfo Ant Project scripts:= /build Package com.cheminfo: =/com/cheminfo chemrisk File structure (1) safeuserqueryloginadminservlethtml

File structure (2)

Container-managed Persistence(CMP)  Container automatically manages persistence. (Developer does not write database calls.)  The CMP-field element describe a container managed field. The field element includes an optional description of the field, and the name of the field.

Container-managed Persistence(CMP) cont’d  Since the container is accessing the database on behalf of the bean, the container need to know: a) the fields that are to be persisted by the container b) the type of persistence, connection to database c) the table name, the mapping between table columns d) field names in the beans e) the semantics of the finder methods and so on.  This information is specified in the deployment descriptors: ejb-jar.xml; jboss-web.xml, web.xml, jaws.xml

ejb-jar.xml This file tells the EJB server which classes make up bean implementation, the home interface and the remote interface. Also called deployment descriptor.

ejb-jar.xml example - Chemical Toxicity and Safety - User database UserDBBean com.cheminfo.user.UserDBHome com.cheminfo.user.UserDB com.cheminfo.user.UserDBBean Container java.lang.String False - UserName - PassWord - - Address - UserName

jboss-web.xml file Specify servlets & beans about their setup to deploy the web application. Example: A servlet wants to call methods on a bean B B bean = home.create(pk); the servlet must declare a reference to the ejb in its deployment descriptor. This is done by an tag in the web.xml file.

jboss-web.xml example - ejb/Admin cheminfo/Admin - ejb/Login cheminfo/Login - ejb/Query cheminfo/Query - ejb/ChemDB cheminfo/ChemDB - ejb/RiskDB cheminfo/RiskDB - ejb/SafeDB cheminfo/SafeDB

jaws.xml file JAWS is the mapper used by JBoss to manage CMP entity beans.  Specify a datasource and the type-mappings to use with it  Set a bunch of options concerning jaws behavior  Specify how JAWS should build/use your tables  Define finders to access you entity beans  Define a type mapping

jaws.xml example ChemInfoDB MS SQLSERVER UserDBBean user false UserName PassWord PassWord Address Address name> false UserName ……..

EJB security  Integrate application security into the EJB.(authentication, access control, portability, ease of use).  Allow security policies to be set by the application deployer rather than hard-coded at development time.  Work with existing security system.  Fit into the overall J2EE environment.

Person, Work and Time PersonWork Time Shuanghui Luo In charge of system architecture and deployment, EJB entity and session beans, package the source files, and documentation 200 hours Ying LiFocus on EJB entity beans and database setup and connection, and documentation 200 hours Jin XuFocus on web server including web page interfaces and servlets and system deployment, and documentation 200 hours

Reference 1. “ Genomics Glossaries & Taxonomies” “ Enterprise JavaBeans Simplifying Development of Distributed Multi-tier Applications” “The Information retrieval in chemistry- www server” “Chemical Safety Requirements Roadmap” 5. Budde, T., Haude, M., Hopp.H.W., Keber, S., Caspari, G., Fabbender, G., Fingerhut, M., Novopashenny, I., Berithardt, G., Erbel, R., Erdmann, E., and Wischnewsky, M.B., “A prognostic computer model to predict individual outcome in interventional cardiology”. Eur. Heart J. 18: , Roman, E., Oberg, R., The Business Benefits of EJB and J2EE Technologies over COM+and Windows DNA Zona research, Inc. Enterprise JavaBeans TM Technology Ennerich, W. Engineering Distributed Objects. John Wiley & Sons, Ltd , Will Howerry, Enterprise Application Development Using UML, Java Technology and XML, JavaOne, Sun’s 2000 Worldwide Java Developer Conference, San Francisco 10.

Acknowledgement Thank you!!

This Demo is available at: Server: register as a new user i.e. Username: xu password: 123 Formula: C2H6O, C7H8, C3H3O, etc Implementation Demo