OULUN SEUDUN AM MATTI KOR KEAKOULU Raahen ti etokonea lan yksi kko

Samankaltaiset tiedostot
On instrument costs in decentralized macroeconomic decision making (Helsingin Kauppakorkeakoulun julkaisuja ; D-31)

On instrument costs in decentralized macroeconomic decision making (Helsingin Kauppakorkeakoulun julkaisuja ; D-31)

On instrument costs in decentralized macroeconomic decision making (Helsingin Kauppakorkeakoulun julkaisuja ; D-31)

1. Liikkuvat määreet

anna minun kertoa let me tell you

Uusi Ajatus Löytyy Luonnosta 4 (käsikirja) (Finnish Edition)

ECVETin soveltuvuus suomalaisiin tutkinnon perusteisiin. Case:Yrittäjyyskurssi matkailualan opiskelijoille englantilaisen opettajan toteuttamana

Network to Get Work. Tehtäviä opiskelijoille Assignments for students.

Green Growth Sessio - Millaisilla kansainvälistymismalleilla kasvumarkkinoille?

Efficiency change over time

Other approaches to restrict multipliers

Jussi Klemola 3D- KEITTIÖSUUNNITTELUOHJELMAN KÄYTTÖÖNOTTO

Voice Over LTE (VoLTE) By Miikka Poikselkä;Harri Holma;Jukka Hongisto

Julkaisun laji Opinnäytetyö. Sivumäärä 43

MUSEOT KULTTUURIPALVELUINA

Information on preparing Presentation

Choose Finland-Helsinki Valitse Finland-Helsinki

MEETING PEOPLE COMMUNICATIVE QUESTIONS

Use of spatial data in the new production environment and in a data warehouse

Arkkitehtuuritietoisku. eli mitä aina olet halunnut tietää arkkitehtuureista, muttet ole uskaltanut kysyä

Capacity Utilization

7. Product-line architectures

EVALUATION FOR THE ERASMUS+-PROJECT, STUDENTSE

Group 2 - Dentego PTH Korvake. Peer Testing Report

FinFamily PostgreSQL installation ( ) FinFamily PostgreSQL

Miksi Suomi on Suomi (Finnish Edition)

Kysymys 5 Compared to the workload, the number of credits awarded was (1 credits equals 27 working hours): (4)

Oma sininen meresi (Finnish Edition)

RANTALA SARI: Sairaanhoitajan eettisten ohjeiden tunnettavuus ja niiden käyttö hoitotyön tukena sisätautien vuodeosastolla

The CCR Model and Production Correspondence

TIEKE Verkottaja Service Tools for electronic data interchange utilizers. Heikki Laaksamo

Automaatiojärjestelmän hankinnassa huomioitavat tietoturva-asiat

Curriculum. Gym card

TIETEEN PÄIVÄT OULUSSA

Uusi Ajatus Löytyy Luonnosta 3 (Finnish Edition)

Results on the new polydrug use questions in the Finnish TDI data

7.4 Variability management

ENE-C2001 Käytännön energiatekniikkaa. Aloitustapaaminen Osa II: Projekti- ja tiimityö

National Building Code of Finland, Part D1, Building Water Supply and Sewerage Systems, Regulations and guidelines 2007

BDD (behavior-driven development) suunnittelumenetelmän käyttö open source projektissa, case: SpecFlow/.NET.

Elämä on enemmän kuin yksi ilta (Finnish Edition)

Windows Phone. Module Descriptions. Opiframe Oy puh Espoo

Guidebook for Multicultural TUT Users

Miehittämätön meriliikenne

Information on Finnish Language Courses Spring Semester 2018 Päivi Paukku & Jenni Laine Centre for Language and Communication Studies

Security server v6 installation requirements

Security server v6 installation requirements

Skene. Games Refueled. Muokkaa perustyyl. for Health, Kuopio

Olet vastuussa osaamisestasi

Ohjelmistoarkkitehtuurit Kevät 2016 Johdantoa

Matkustaminen Majoittuminen

Information on Finnish Courses Autumn Semester 2017 Jenni Laine & Päivi Paukku Centre for Language and Communication Studies

Matkustaminen Majoittuminen

Nuku hyvin, pieni susi -????????????,?????????????????. Kaksikielinen satukirja (suomi - venäjä) ( (Finnish Edition)

Gap-filling methods for CH 4 data

Vertaispalaute. Vertaispalaute, /9

asiantuntijuutta kohti kouluprojektia rakentamalla

Digitalisoituminen, verkottuminen ja koulutuksen tulevaisuus. Teemu Leinonen Medialaboratorio Taideteollinen korkeakoulu

ALOITUSKESKUSTELU / FIRST CONVERSATION

Information on Finnish Language Courses Spring Semester 2017 Jenni Laine

Lakimies PDF. ==>Download: Lakimies PDF ebook

Hankkeiden vaikuttavuus: Työkaluja hankesuunnittelun tueksi

1. SIT. The handler and dog stop with the dog sitting at heel. When the dog is sitting, the handler cues the dog to heel forward.

Kuvailulehti. Korkotuki, kannattavuus. Päivämäärä Tekijä(t) Rautiainen, Joonas. Julkaisun laji Opinnäytetyö. Julkaisun kieli Suomi

Innovative and responsible public procurement Urban Agenda kumppanuusryhmä. public-procurement

AYYE 9/ HOUSING POLICY

KONEISTUSKOKOONPANON TEKEMINEN NX10-YMPÄRISTÖSSÄ

Pojan Sydan: Loytoretki Isan Rakkauteen (Finnish Edition)

Basic Flute Technique

ProAgria. Opportunities For Success

Osallistujaraportit Erasmus+ ammatillinen koulutus

EUROOPAN PARLAMENTTI

HOITAJAN ROOLI TEKNOLOGIAVÄLITTEISESSÄ POTILASOHJAUKSESSA VÄITÖSKIRJATUTKIJA JENNI HUHTASALO

Tarua vai totta: sähkön vähittäismarkkina ei toimi? Satu Viljainen Professori, sähkömarkkinat

Salasanan vaihto uuteen / How to change password

OP1. PreDP StudyPlan

S SÄHKÖTEKNIIKKA JA ELEKTRONIIKKA

FIS IMATRAN KYLPYLÄHIIHDOT Team captains meeting

Small Number Counts to 100. Story transcript: English and Blackfoot

Co-Design Yhteissuunnittelu

Mitä mahdollisuuksia tuloksemme tarjoavat museoille?

DIPLOMITYÖ ARI KORHONEN

Expression of interest

koiran omistajille ja kasvattajille 2013 for dog owners and breeders in 2013

The role of 3dr sector in rural -community based- tourism - potentials, challenges

Työsuojelurahaston Tutkimus tutuksi - PalveluPulssi Peter Michelsson Wallstreet Asset Management Oy

Loppuraportti. Ryhmä 14. Ratkaisu ohjelmistotuotelinjan monikielisyyden hallintaan. Innofactor Oy

Käyttöliittymät II. Käyttöliittymät I Kertaus peruskurssilta. Keskeisin kälikurssilla opittu asia?

ETELÄESPLANADI HELSINKI

Opiskelijat valtaan! TOPIC MASTER menetelmä lukion englannin opetuksessa. Tuija Kae, englannin kielen lehtori Sotungin lukio ja etälukio

ESITTELY. Valitse oppilas jonka haluaisit esitellä luokallesi ja täytä alla oleva kysely. Age Grade Getting to school. School day.

Tutkimusdata ja julkaiseminen Suomen Akatemian ja EU:n H2020 projekteissa

Uusia kokeellisia töitä opiskelijoiden tutkimustaitojen kehittämiseen

FinFamily Installation and importing data ( ) FinFamily Asennus / Installation

WAMS 2010,Ylivieska Monitoring service of energy efficiency in housing Jan Nyman,

Erasmus Intensive Language Course KV kevätpäivät Kuopio Päivi Martin, Lapin yliopisto

Käytännön kokemuksia osallistumisesta EU projekteihin. 7. puiteohjelman uusien hakujen infopäivät 2011

LANSEERAUS LÄHESTYY AIKATAULU OMINAISUUDET. Sähköinen jäsenkortti. Yksinkertainen tapa lähettää viestejä jäsenille

Siirtymä maisteriohjelmiin tekniikan korkeakoulujen välillä Transfer to MSc programmes between engineering schools

VUOSI 2015 / YEAR 2015

Transkriptio:

A OULUN SEUDUN AM MATTI KOR KEAKOULU Raahen ti etokonea lan yksi kko Janne Ohtonen PaKal: Packing Material Book-Keeping 24.02.2003 Degree Programme in Computer Engineering Raahe Institute of Computer Engineering and Business, Oulu Polytechnic

FIRST WORDS This bachelor's thesis was ordered by Valmet Automotive. This final thesis is part of a larger Internet application that includes the portal, quality reporting and packing material management. Thus, this thesis concerns only the part that is implemented by CCC Industry Oy. This final thesis is confidentialfor three years beginning 2002. This final thesis is written by Janne ohtonen (janne@ohtonen.net) Raahe, 24.o2.zoos /aunt 0/U"* )anne Ohtonen -1-

ABSTRACT Done by: Janne Ohtonen DPC-9SN (DCE-99) Name of the final thesis: PaKal - Packing Material Book-Keeping Year: 2003 Wideness: 10 credit units Length: 91 pages lnstitute: Raahe Institute of Computer Engineering Packing Material Book-Keeping is an Internet application done with J2EE technology. lt is part of a larger Internet extranet system used by a car factory's personnel and vendors. The purpose of this thesis is to produce an application that gives the possibility to control packing material logistics. To design this system we will use J2EE Design Patterns and to develop it we shall use Oracle's and open source tools. The basic flow of the work is to first design, then implement and after that to test the application. After the customers approval it will be taken in to use. This topic was chosen because it has many new aspects in it. J2EE technology is still quite young and the customer did not have any previous experience from such a web technology. Thus, it was an interesting subjecto evaluate. J2EE was found to be good new technology for developing complex Internet application with database connections. Keywords: Java, J2EE, EJB, Internet application, material logistics, database -2-

ABSTRACT Pakkauskaluston kirjanpito, PaKal, on Internet sovellus, joka on toteutettu J2EE teknologialla. PaKal on osa suurempaa kokonaisuutta, joka sisdltdd myos portaalin ja laadunvalvonta sovelluksen. PaKalia tulee kdyttdmddn eradn autotehtaan hen kiloku nta ja tava ran to imittajat. Tdmdn dokumentin tarkoituksena on tuottaa kattava kertomusiitii, kuinka tdmd sovellus on suunniteltu, toteutettu ja testattu. Myohemmin tdtd dokumenttia tullaan ktiyttdmddin soveltuvin osin PaKalin ylldpidossa. Jdrjestelmdn suunnittelemisessa on kdytetty J2EE standardin mukaisia Design Pattemseja. Niiden avulla kdytetddn muiden jo hyvdksi havaitsemia tekniikoita ja toteutustapoja. Tyokaluina on Oraclen ja avoimen ldhdekoodin tuotteita. Valitsin insinoorityoni aiheeksi J2EE Internet sovelluksen, koska kyseinen tekniikka on vield melko kehittymdtontd eikd asiakkaalla tai minulla ollut aiempaa kokemustasiasta. Siksi PaKal tuntui hyvdltd vaihtoehdolta oppia uutta lnternet sovelluksista, joista olen ollut kiinnostunut jo vuosia. Pienten alkuvaikeuksien jdlkeen J2EE teknologia osoittautui hyvdksi Intemet sovellusten tekoon. Tulevaisuudessa kunhan teknologia kehittyy entisestiiiin uskoisin, ettii on mahdollista tuottaa monimutkaisiakin Internet sovelluksia helpoilla tyokaluilla ja -tavoilla. Avainsanat: Java, J2EE, EJB, Internet sovellus, materiaali logistiikka, tietokanta -3-

-4-

2.5.5. Restrictions......25 2.6. Database......25 3. ENVIRONMENT...26 3.1. System Architecture......26 3.2. System Constraints...:......27 3.3. lntegrated Developement Environment......29 4. DEVELOPEMENT...... 30 4.1. Environment... 30 4.1.1. Application's Directory Structure... 30 4.1.2. Source Code Directory Structure...32 4.1.3. Application Server Directory Structure... 32 4.1.4. Application's Logical Structure... 33 4.2. Application......34 4.2.1. Structure of the JavaServer Pages... 35 4.2.2. Structure of the Action Components...... 36 4.2.3. Structure of the Facade EJB Components...37 4.2.4. Structure of the Session EJB Components...3g 4.2.5. Structure of the Entity EJB Components...... 3g 4.2.6. Structure of the Data Classes......40 4.3. Database......40 5. CODING......41 5.1. Entity EJB......41 5.1.1. Finder method...42 5.1.2. Create and PostCreate methods.....42 5.1.3. Own Methods......43 5.1.4. Using Entity Beans... 43 5.1.5. Errors...44 5.2. Session EJB......45 5.2.1. Queries...,.. 45 5.2.2. Using Session Beans... 46 5.3. Facade EJB...,...47 5.3.1. Help c1asses...... 48 5.4. Data Classes......4g 5.5. WebWork Action Classes......4g

1. GENERAL The first pilot version of the Extranet Internet application was done for Valmet Automotive in 2001 by CCC lndustry Oy. lt was coded by Antero Peippo who is also involved in this project. He did the pilot version with Oracle Forms 6iwhich is a Java compatible client / server environment. The pilot version was found to be insufficient efficiency and it used too much bandwidth from the network. Therefore, alternative choices were needed to make the Extranet lighter and faster to use. 1.1. Background for this final thesis Since CCC lndustry did not have so many employees who have knowledge about lnternet technologies, I was hired in the beginning of 2002. They thought that my knowledge of Internet WebPages would come in handy later on. That was proven right from the beginning I discovered that I didn't actually know anything about J2EE technology. Before that I had used only HTML and PHP languages. A golden opportunity to get familiar with J2EE was offered to me when reevaluating possible techniques for this Extranet system. Some people in CCC had done a similar project with Java tools and they recommended it. So, since other techniques had some lacks compared to Java, we decided to learn this new technology. On the way to this idea about J2EE technology I saw the possibility to do my final thesis on this subject. 1.2. Customer's view When the customer was evaluating possible techniques and systems to realise their Extranet system I had a key role in presenting J2EE technology to them. I made a two-layer J2EE application that used their machines to present data from a database. This helped customer to see a demo version of the technique to be offered to them. The demo version was proven to be much faster and more efficient compared to pilot version of the Extranet. So, after a presentation and evaluation round they decided to take the J2EE technology as their Extranet base. From the customer point of view this thesis will provide them with the first version of an Internet application done with Java. They also want to make a solid base for new applications to come from. This Extranet currently consists of three parts at the moment with options for more parts. The base application is the portal. Then all the other applications -7 -

are attached to this portal. The customer decided to let us do the packing materialogistics and the portal is done by another software vendor. 1.3. Software Vendor's view From the vendor's point of view this was great opportunity to offer me a final thesis and get new software developing techniques into the company. lt also presented quite a risk for the company because not so many people had experience in these techniques at that time. Therefore it was taken into consideration that the project may exceed the planned quantity of work. 1.4. Literature From the very beginning of this project I have been reading a lot of material concerning Java ideology. There are many good books on the lnternet for one to read but here are some important ones: J2EE Design Patterns (http://java.sun.comidesignpatterns) E nterprise Java Bea n s ( http ://java. su n. com/ej b) J avase rver Pages ( http ://j ava. su n. co m/products/jsp) S ervlets ( http ://java. su n. co m/p rod ucts/servlets ) HTML standard ( http://www.w3.org/ma rku pl) One can also find good books from the localibrary to read about J2EE technology.

SOURCES 11l CCC Quality Manual, version 1.31 l2l J2EE Patterns, Model-View-Controller, http :i/java. s u n. com/bl uepri nts/patte rn s/mvc. htm l, Decem be r 2002 l3l PaKal Sovelluskuvaus, version: 0.3, date: 16.09.02, author: Petri Nieminen Valmet Automotive /4/ Ohjelmistosuunnitelma PaKal, version: O.92, CCC Industry Oy /5/ WWW Standardi, version 0.1, date: 05.08.02, Valmet Automotive /6i Kumppaniportaali Valmet Automotive, version 1.40, date 02.12.02, Affecto 17l Log4J, http://jakarta.apache.orgllog4jldocs/index.html, December 2002 l8l PaKal arkkitehtuurikuvaus, version 0.2, CCC Industry Oy l9l PaKal tekninen vaatimusmddrittely, version 0.3, date 27.11.2002, CCC lndustry Oy l10l Java 2 Enterprise Edition, http://java.sun.comljzeel, December 2OO2 I 11 Oracles website, http:i/otn.oracle.com/, Decemb er 20O2 l12l JZEE Design Patterns, http://java.sun.com/designpatterns/,december2o02 /13/ Enterprise JavaBeans, http://java. sun. com/ejb/, December 2002 14 I J av aserve r Pa ges, http ://java. s u n. co m/prod ucts/j sp/, Decem ber 2002 /15/ S e rvl ets, http ://java. su n. co m/prod ucts/se rvlets/, Dece m be r 2002 /16/ HTM L Standa rd, http://www.w3.org/ma rkup/, Decembe r 2002 I 17 I lntellij I dea, http ://www. i ntel I ij. co m I idea l, Dece m be r 2002 1 Bl JCreator, http ://www.jcreator.com/, December 2002 l19l Ant, http:/ijakarta.apache.org/anu, December 2002 I 20 XDoclet, http ://xdoclet. sou rcefo rge. neu, Decem ber 2002 I 21 W ebwo rk, http ://o pensym phony. com/webworl</, Dece mbe r 2OO2 l22l Log for Java, http://jakarta.apache.orgllog4jl, December 20O2-66-