Think about Lecture 11. When you write code Follow the Java conventions. JavaDocs should also include text written by YOU. Semantic information beside.

Slides:



Advertisements
Similar presentations
3 Copyright © 2005, Oracle. All rights reserved. Designing J2EE Applications.
Advertisements

Lab 9: Code Organization User Interface Lab: GUI Lab October 23 rd, 2013.
COMP 321 Week 1. Application Server Programming Introduction to server-based programming using an object-oriented approach You will learn and reflect.
Apache Struts Technology
1 Welcome to Advanced programming in Java Summer course 2005 introduction.
E-commerce Project Erik Zeitler Erik Zeitler2 Lab 2  Will be anounced and scheduled later  We will deploy Java Server Pages on a Tomcat server.
Component Patterns – Architecture and Applications with EJB copyright © 2001, MATHEMA AG Component Patterns Architecture and Applications with EJB JavaForum.
Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta.
Copyright W. Howden1 Lecture 19: Intro to O/O Components.
Time Scalability Single User Unlimited Users 100s of Users Several Users PC based Single user Late 1980sNow PC based, file-level locking Single user or.
Layers & Tiers Umair Javed Lec - 41.
© 2005, Cornell University. Rapid Application Development using the Kuali Architecture (Struts, Spring and OJB) A Case Study Bryan Hutchinson
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
J2EE Java 2 Enterprise Edition. Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc
Software Engineering Module 1 -Components Teaching unit 3 – Advanced development Ernesto Damiani Free University of Bozen - Bolzano Lesson 2 – Components.
Application Architectures Vijayan Sugumaran Department of DIS Oakland University.
12-1 © Prentice Hall, 2004 Chapter 12: Design Elements Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
M.Sc. Course, Dept. of Informatics and Telecommunications, University of Athens S.Hadjiefthymiades “Web Application Servers” Basics on WAS WAS are necessary.
Data Structures and Programming.  John Edgar2.
Struts 2.0 an Overview ( )
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
Java Beans.
M1G Introduction to Programming 2 4. Enhancing a class:Room.
Advanced Java New York University School of Continuing and Professional Studies.
Jaeki Song ISQS6337 JAVA Lecture 16 Other Issues in Java.
Enterprise Java Beans Part I Kyungmin Cho 2001/04/10.
JSP Java Server Pages Softsmith Infotech.
Introduction to J2EE Architecture Portions by Kunal Mehta.
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
第十四章 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.
JavaBeans Components. To understand JavaBeans…  Proficient experience with the Java language required  Knowledge of classes and interfaces  Object-Oriented.
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
1 of 8Prof. Dr. Dr. h.c. Otto Spaniol Computer Science, Informatik 4 Communication and Distributed Systems 25/10/2015 Distributed Applications and Network.
Java Web Development with NetBeans IDE -- Kai Qian Chapter 5 JavaServer Faces (JSF) Technology.
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.
Java Applets: GUI Components, Events, Etc. Ralph Westfall June, 2010.
Introduction to Java Beans CIS 421 Web-based Java Programming.
Enterprise Java Beans. Model 1 J2EE – Web View Model/View/Controller Model View Control Data base Web Server Model One Architecture HTTP Request HTTP.
IT SERVICE ORIENTED ARCHITECTURE LABORATORY by M.B.Bose AP / IT.
© 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.
CIS Intro to JAVA Lecture Notes Set July-05 GUI Programming –TextField Action Listeners, JEditorPane action listeners, HTML in a JEditorPane,
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.
Introduction to Software Components: the JavaBeans specs Babak Esfandiari.
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.
Slides prepared by Rose Williams, Binghamton University Chapter 20 Java Never Ends.
COT 4600 Operating Systems Fall 2010 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:30-4:30 PM.
Apache Struts Technology A MVC Framework for Java Web Applications.
Java Server Pages Can web pages be created specially for each user?
J2EE Platform Overview (Application Architecture)
GUI Design and Coding PPT By :Dr. R. Mall.
Introduction to Advanced Java Programming
Java Beans Sagun Dhakhwa.
Introduction to J2EE Architecture
Design and Maintenance of Web Applications in J2EE
MSIS 655 Advanced Business Applications Programming
CS102 – Bilkent University
Distributed System Using Java 2 Enterprise Edition (J2EE)
Enterprise Java Beans.
Seminarium on Component-based Software Engineering
SDMX IT Tools SDMX Registry
Presentation transcript:

Think about Lecture 11

When you write code Follow the Java conventions. JavaDocs should also include text written by YOU. Semantic information beside the syntactic information. Use the OOD knowledge you have encountered during this and previous courses. Don’t write one class that solves all the world’s problems. MVC rules on this course. Separate and decouple into separate classes with distinct responsibilities.

When you write a report Test your user guide so that it actually works. Write comments beside your test runs, to explain anomalies and what happens. Make it easier for the supervisor to understand how you have solved the problem. A class diagram or algorithm may explain important perspectives of your solution, in conjunction with well written text.

When the report is corrected by your supervisor Go get feedback A.S.A.P. so that you may finalize your solution/report, and move on. This is about respecting the valuable time of your supervisors. They expect you to visit them soon unless you got a G immediately.

Assignment 2b MVC again

MVC “You must create a design that follows the MVC design pattern” View related vs Control related flow Index-jsp contains both server side, and client side data manipulation From the client side the user will invoke both view-related, and control- related requests.

DTD It is not mandatory to validate your XML- Document inside your servlet. But your XMLDocument (stored in the session object), will be tested against the DTD by the supervisors, so you must make sure the XMLDocument fulfills the DTD.

Tomcat examples Notice that the tomcat installation comes with a simple index.jsp A simple servlet So that you can get basic contact with the jsp and servlet framework. Tomcat also works on Solaris machines. Don’t run on the “main” servers (peppar, salt etc.) contains lists of unix machine names in the computer laboratories

JavaBeans Chapter 8

JavaBeans summary Is a component model, similar to Microsoft’s ActiveX. A framework for creating reusable Java classes platform independent Why a component model/architecture? Developers wants to build up a portable, reusable code base. Is there a market for JavaBeans? Yes. Reusable software components that can be manipulated visually in a builder tool, a.k.a. beanboxes. Beanboxes uses the Reflections API to inspect the beans.

JavaBeans summary Swing components are JavaBeans compliant. There is no common superclass or interface for JavaBeans to extend/implement. It is a matter of adhering to a set of programming conventions For Methods, properties and events. E.g. naming conventions: getX -> X is a property AddXXXListener() -> XXX is an event. See figure 8-2 p551. A beanbox uses the Reflections API to investigate the features of a JavaBean.

JavaBeans summary A bean must implement “Serializable”. Uses the same event model as Swing components. Properties may be “bound” i.e. the property has listeners.

JavaBeans vs. EJB JavaBeans and Enterprise JavaBeans does not resemble each other very much. They are both component models, but their purpose and packages (base types and interfaces) are completely different. What is Enterprise JavaBeans? EJB is an API specification for building scalable, distributed, component- based, multi-tier applications. Components built on the EJB specification are interprocess components that live in multiple address spaces as distributed object. These components are used as transactional business objects that are accessed as remote objects. JavaBeans Components built on the JavaBeans specification are intraprocess components that live in one address space and are typically used for Graphical User Interface (GUI) as visual widgets like buttons, tables, HTML viewers, etc.

JavaBeans and EJB Where can I find more information on EJB and J2EE? The book, Chapters 8 and

Bean Builder We can build an application with the Bean Builder, more or less. Build the interface “visually” Set object properties Associate objects with each other Create event handlers Let’s create a simple app that fills a list box with strings. Without writing a single line of code!

Bean Builder

This model should be associated with the JList object

Bean Builder Creating Event Adapters

Bean Builder Test run. Not a single line of code was written.

And finally

My last lecture This conclude my series of lectures for this course Main focus has been on giving you tools to be able to complete assignments Plus some extra stuff. Next week I will start my new job in Ö-vik 10km away. Which means that my day-time office hours will end here (at least if we talk day time hours) I will be available via as usual I will still have the examination responsibility, and will have frequent communication with Erik and Emanuel. Guest lectures Monday, Tuesday. Set Norman: J2ME, Java 1.5. Be there. I would.

Assignment 3 (last assignment) Frogger Specification is published on Monday Minor adjustments from last year Due date… 1 August That is the super final due date. No postponement of that date. Final corrections must be completed before August 10. If you haven’t gotten “G” on all assignments by then, you will have an extra opportunity in November / December (se below) We do have limited time resources to spend on a course. Do your homework now, and get a well deserved vacation in July. Reassignments from this course will be done during 2nd period next fall. (“Programmeringsmetodik B, 4p ”) Erik and Emanuel is likely to be supervisors on that course too.