Aufgabenstellung. Aufgabenstellung

Size: px
Start display at page:

Download "Aufgabenstellung. Aufgabenstellung"

Transcription

1 Aufgabenstellung Konto: Kontonummer, Inhaber, PIN, Guthaben, Zinssatz, Kreditrahmen Funktionsumfang: 1. Bankangestellte: - Einrichten neuer Konten - Änderung Kreditrahmen und Verzinsung für ein Konto Aufgabenstellung 2. Bankangestellte und Bankterminalbenutzer: - Einzahlung eines Geldbetrages - Anzeige des Kontostandes (nötig: Kontonummer, Inhaber, PIN) - Abhebung (nötig: Kontonummer, Inhaber, PIN) - Überweisung (nötig: Quelle: Kontonummer, Inhaber, PIN; Ziel: Kontonummer, Inhaber) 1

2 => 3. EJBs: Aufgabenstellung - Entity-Bean: Konto - Stateless Session Bean: Bankangestellte - Stateful Session Bean: Bankterminalbenutzer //HomeInterface der EntityBean import javax.ejb.*; import javax.ejb.createexception; import javax.ejb.finderexception; public interface KontoHome extends EJBHome { public Konto create(int kontonr, String inhaber) throws CreateException, RemoteException; public Konto findbyprimarykey(kontopk pk) throws RemoteException, FinderException; 2

3 //RemoteInterface der EntityBean import javax.ejb.*; public interface Konto extends EJBObject { public String getinhaber() throws RemoteException; public int getpin() throws RemoteException; public void setpin(int pin) throws RemoteException; public double getguthaben() throws RemoteException; public void einzahlen(double betrag) throws RemoteException; public void abheben(double betrag) throws RemoteException, KreditrahmenUeberzogenException; public double getzinssatz() throws RemoteException; public void setzinssatz(double zs) throws RemoteException; public double getkreditrahmen() throws RemoteException; public void setkreditrahmen(double kr) throws RemoteException; //Die Beanklasse der EntityBean import java.rmi.*; import javax.ejb.*; public class KontoBean implements EntityBean { private EntityContext entitycontext; public int kontonr; public String inhaber; public int pin; public double guthaben; public double zinssatz; public double kreditrahmen; public KontoPK ejbcreate(int kontonr, String inhaber) throws CreateException { this.kontonr = kontonr; this.inhaber = inhaber; return null; public void ejbpostcreate(int kontonr, String inhaber){ 3

4 public double getguthaben(){ return guthaben; public String getinhaber(){ return inhaber; public void setpin(int pin){ this.pin = pin; public int getpin(){ return pin; public void setzinssatz(double zs){ this.zinssatz = zs; public double getzinssatz(){ return zinssatz; public void setkreditrahmen(double kr){ this.kreditrahmen = kr; public double getkreditrahmen(){ return kreditrahmen; public void einzahlen(double betrag) { guthaben = guthaben + betrag; public void abheben(double betrag) throws KreditrahmenUeberzogenException{ if ((guthaben - betrag) >= (- kreditrahmen)){ guthaben = guthaben - betrag; return; throw new KreditrahmenUeberzogenException(); public void ejbactivate() { 4

5 public void ejbload() { public void ejbpassivate() { public void ejbremove() throws RemoveException { public void ejbstore() { public void setentitycontext(entitycontext context) { entitycontext = context; public void unsetentitycontext() { entitycontext = null; // Die primary-key-klasse import java.io.serializable; public class KontoPK implements Serializable{ public int kontonr; public KontoPK() { public KontoPK(int kontonr) { this.kontonr = kontonr; public int hashcode(){ return kontonr; public boolean equals(object obj){ if(obj instanceof KontoPK){ return (kontonr == ((KontoPK)obj).kontoNr); return false; 5

6 //HomeInterface der stateless Session Bean public interface KontenverwaltungHome extends javax.ejb.ejbhome { Kontenverwaltung create() throws java.rmi.remoteexception, javax.ejb.createexception; // RemoteInterface der stateless session Bean public interface Kontenverwaltung extends javax.ejb.ejbobject { void neueskonto(int kontonr, String inhaber) throws RemoteException, javax.naming.namingexception, javax.ejb.createexception, KeinKontoException; void setkreditrahmen(konto konto, double kr) throws RemoteException, KeinKontoException; void setzinssatz(konto konto, double zs) throws RemoteException, KeinKontoException; void einzahlen(konto konto, double betrag) throws RemoteException, KeinKontoException; double getguthaben(konto konto) throws RemoteException, KeinKontoException; void abheben(konto konto, double betrag) throws KreditrahmenUeberzogenException, RemoteException, KeinKontoException; void ueberweisen(konto quellkonto, Konto zielkonto, double betrag) throws KreditrahmenUeberzogenException, RemoteException, KeinKontoException; 6

7 //Beanclass des stateless Session Beans public class KontenverwaltungBean implements javax.ejb.sessionbean { private javax.ejb.sessioncontext _context; public void setsessioncontext (javax.ejb.sessioncontext context) { _context=context; public void ueberweisen(konto quellkonto, Konto zielkonto, double betrag) throws KreditrahmenUeberzogenException, RemoteException, KeinKontoException{ if( quellkonto == null ){ throw new KeinKontoException(); if( zielkonto == null ){ throw new KeinKontoException(); quellkonto.abheben(betrag); zielkonto.einzahlen(betrag); //HomeInterface der stateful SessionBean public interface KundenterminalHome extends javax.ejb.ejbhome { Kundenterminal create(int kontonr) throws javax.ejb.createexception,javax.ejb.finderexception, javax.naming.namingexception, RemoteException; 7

8 //RemoteInterface der stateful SessionBean public interface Kundenterminal extends javax.ejb.ejbobject { void einzahlen(double betrag) throws InhaberNoetigException, RemoteException, KeinKontoException; double getguthaben() throws InhaberNoetigException, RemoteException, PinNoetigException, KeinKontoException; void abheben(double betrag) throws InhaberNoetigException, RemoteException, PinNoetigException, KreditrahmenUeberzogenException, KeinKontoException; void ueberweisen(int zielknr, String zielinhaber, double betrag) throws javax.ejb.finderexception, RemoteException, javax.naming.namingexception, InhaberNoetigException, PinNoetigException, KeinKontoException, KreditrahmenUeberzogenException; void setpin(int pin) throws RemoteException, FalscheAngabeException; void setinhaber(string inhaber) throws RemoteException, FalscheAngabeException; //BeanKlasse der stateful SessionBean public class KundenterminalBean implements javax.ejb.sessionbean { private javax.ejb.sessioncontext _context; private Konto aktkonto; private boolean binhaber = false; private boolean bpin = false; public void setinhaber(string inhaber) throws RemoteException, FalscheAngabeException{ if(aktkonto.getinhaber().equals(inhaber)){ this.binhaber = true; return; throw new FalscheAngabeException(); 8

9 public void setpin(int pin) throws RemoteException, FalscheAngabeException{ if(aktkonto.getpin() == pin){ this.bpin = true; return; throw new FalscheAngabeException(); public void einzahlen(double betrag) throws InhaberNoetigException, RemoteException, KeinKontoException{ if(aktkonto == null){ throw new KeinKontoException(); if(!binhaber){ throw new InhaberNoetigException(); aktkonto.einzahlen(betrag); public double getguthaben() throws InhaberNoetigException, RemoteException, PinNoetigException, KeinKontoException{ if(aktkonto == null){ throw new KeinKontoException(); if(!binhaber){ throw new InhaberNoetigException(); if(!bpin){ throw new PinNoetigException(); return aktkonto.getguthaben(); 9

Introduction to Entity Beans

Introduction to Entity Beans Introduction to Entity Beans An example: part 1-the server La struttura dei files packages Client.class jndi.properties packages Jboss ejb.jar.java ejb-jar.xml jboss.sml 1 1 structure of the jar file In

More information

Java E-Commerce Martin Cooke, 2002 1

Java E-Commerce Martin Cooke, 2002 1 Java E-Commerce Martin Cooke, 2002 1 Enterprise Java Beans: an introduction Today s lecture Why is enterprise computing so complex? Component models and containers Session beans Entity beans Why is enterprise

More information

How To Write A Bean In Java (Java) 2.5.1.2 (Java 2.4.2) (Java.Net) (Javax) 2 (Java Bean) ( Java Bean) 2-4.5

How To Write A Bean In Java (Java) 2.5.1.2 (Java 2.4.2) (Java.Net) (Javax) 2 (Java Bean) ( Java Bean) 2-4.5 JavaBeans Distributed Object Systems 9 Javabeans/EJB Piet van Oostrum Oct 9, 2008 Java Component technology: Components are self-contained, reusable software units that can be visually composed into composite

More information

Enterprise JavaBeans Fundamentals

Enterprise JavaBeans Fundamentals Enterprise JavaBeans Fundamentals Presented by developerworks, your source for great tutorials Table of Contents If you're viewing this document online, you can click any of the topics below to link directly

More information

Lösungsvorschläge zum Übungsblatt 13: Fortgeschrittene Aspekte objektorientierter Programmierung (WS 2005/06)

Lösungsvorschläge zum Übungsblatt 13: Fortgeschrittene Aspekte objektorientierter Programmierung (WS 2005/06) Prof. Dr. A. Poetzsch-Heffter Dipl.-Inform. N. Rauch Technische Universität Kaiserslautern Fachbereich Informatik AG Softwaretechnik http://softech.informatik.uni-kl.de/fasoop Lösungsvorschläge zum Übungsblatt

More information

Software Development using MacroMedia s JRun

Software Development using MacroMedia s JRun Software Development using MacroMedia s JRun B.Ramamurthy 6/10/2005 BR 1 Objectives To study the components and working of an enterprise java bean (EJB). Understand the features offered by Jrun4 environment.

More information

Automatic generation of distributed dynamic applications in a thin client environment

Automatic generation of distributed dynamic applications in a thin client environment CODEN: LUTEDX ( TETS-5469 ) / 1-77 / (2002)&local 26 Master thesis Automatic generation of distributed dynamic applications in a thin client environment by Klas Ehnrot and Tobias Södergren February, 2003

More information

EJB 3.0 and IIOP.NET. Table of contents. Stefan Jäger / stefanjaeger@bluewin.ch 2007-10-10

EJB 3.0 and IIOP.NET. Table of contents. Stefan Jäger / stefanjaeger@bluewin.ch 2007-10-10 Stefan Jäger / stefanjaeger@bluewin.ch EJB 3.0 and IIOP.NET 2007-10-10 Table of contents 1. Introduction... 2 2. Building the EJB Sessionbean... 3 3. External Standard Java Client... 4 4. Java Client with

More information

WebOTX Application Server

WebOTX Application Server lication Server November, 2015 NEC Corporation, Cloud Platform Division, Group Index 1. lication Server features Features for operability improvement Features for reliability improvement Features for

More information

Java OGSI Hosting Environment Design A Portable Grid Service Container Framework

Java OGSI Hosting Environment Design A Portable Grid Service Container Framework Java OGSI Hosting Environment Design A Portable Grid Service Container Framework Thomas Sandholm, Steve Tuecke, Jarek Gawor, Rob Seed sandholm@mcs.anl.gov, tuecke@mcs.anl.gov, gawor@mcs.anl.gov, seed@mcs.anl.gov

More information

Objectives. Software Development using MacroMedia s JRun. Enterprise Application Model. Topics for Discussion

Objectives. Software Development using MacroMedia s JRun. Enterprise Application Model. Topics for Discussion Software Development using MacroMedia s JRun B.Ramamurthy Objectives To study the components and working of an enterprise java bean (EJB). Understand the features offered by Jrun4 environment. To be able

More information

CGI Vs. Java - Which is Better For Marketing

CGI Vs. Java - Which is Better For Marketing STUDIA UNIV. BABEŞ BOLYAI, INFORMATICA, Volume XLVI, Number 2, 21 AN EFFICIENCY COMPARISON OF DIFFERENT JAVA TECHNOLOGIES FLORIAN MIRCEA BOIAN Abstract. Java and related technologies are very used for

More information

J2EE Web Development. Agenda. Application servers. What is J2EE? Main component types Application Scenarios J2EE APIs and Services.

J2EE Web Development. Agenda. Application servers. What is J2EE? Main component types Application Scenarios J2EE APIs and Services. J2EE Web Development Agenda Application servers What is J2EE? Main component types Application Scenarios J2EE APIs and Services Examples 1 1. Application Servers In the beginning, there was darkness and

More information

Java EE 5, 6 et les EJBs 3.1

Java EE 5, 6 et les EJBs 3.1 Java EE 5, 6 et les EJBs 3.1 Antonio Goncalves Tours JUG le 11/06/08 1 Agenda Présentation Java EE 5 Java EE 5 vs J2EE 1.4 Java EE 6 EJB 3.1 Encore plus facile Nouvelles fonctionnalités Questions Agenda

More information

The Evolution to Components. Components and the J2EE Platform. What is a Component? Properties of a Server-side Component

The Evolution to Components. Components and the J2EE Platform. What is a Component? Properties of a Server-side Component The Evolution to Components Components and the J2EE Platform Object-Orientation Orientation C++, Eiffel, OOA/D Structured Programming Pascal, Ada, COBOL, RPG structured methodologies Component-based Dev.

More information

MDA Overview OMG. Enterprise Architect UML 2 Case Tool by Sparx Systems http://www.sparxsystems.com. by Sparx Systems

MDA Overview OMG. Enterprise Architect UML 2 Case Tool by Sparx Systems http://www.sparxsystems.com. by Sparx Systems OMG MDA Overview by Sparx Systems All material Sparx Systems 2007 Sparx Systems 2007 Page:1 Trademarks Object Management Group, OMG, CORBA, Model Driven Architecture, MDA, Unified Modeling Language, UML,

More information

Anno Accademico 2004/2005. Sperimentazione di Ingegneria del Software II. Giovanna Petrone J2EE. Laboratorio

Anno Accademico 2004/2005. Sperimentazione di Ingegneria del Software II. Giovanna Petrone J2EE. Laboratorio Anno Accademico 2004/2005 Sperimentazione di Ingegneria del Software II Giovanna Petrone J2EE Laboratorio When to Use Enterprise Beans The application must be scalable Transactions must ensure data integrity

More information

C:\Documents and Settings\Gijs\Desktop\src\client\Client.java dinsdag 3 november 2009 10:50

C:\Documents and Settings\Gijs\Desktop\src\client\Client.java dinsdag 3 november 2009 10:50 C:\Documents and Settings\Gijs\Desktop\src\client\Client.java dinsdag 3 november 2009 10:50 package client; import hotel.bookingconstraints; import hotel.bookingexception; import hotel.costumersessionremote;

More information

! "# $%&'( ) * ).) "%&' 1* ( %&' ! "%&'2 (! ""$ 1! ""3($

! # $%&'( ) * ).) %&' 1* ( %&' ! %&'2 (! $ 1! 3($ ! "# $%&'( ) * +,'-( ).) /"0'" 1 %&' 1* ( %&' "%&'! "%&'2 (! ""$ 1! ""3($ 2 ', '%&' 2 , 3, 4( 4 %&'( 2(! ""$ -5%&'* -2%&'(* ) * %&' 2! ""$ -*! " 4 , - %&' 3( #5! " 5, '56! "* * 4(%&'(! ""$ 3(#! " 42/7'89.:&!

More information

Component Middleware. Sophie Chabridon. INT - INF Department - Distributed Systems team 2006

Component Middleware. Sophie Chabridon. INT - INF Department - Distributed Systems team 2006 Sophie Chabridon INT - INF Department - Distributed Systems team 2006 Outline 1. Introduction................................................................... 3 2. Overview of EJB Technology.................................................

More information

Java 2 Platform, Enterprise Edition (J2EE) Bruno Souza Java Technologist, Sun Microsystems, Inc.

Java 2 Platform, Enterprise Edition (J2EE) Bruno Souza Java Technologist, Sun Microsystems, Inc. Java 2 Platform, Enterprise Edition (J2EE) Bruno Souza Java Technologist, Sun Microsystems, Inc. J1-680, Hapner/Shannon 1 Contents The Java 2 Platform, Enterprise Edition (J2EE) J2EE Environment APM and

More information

Load Balancing in Cluster

Load Balancing in Cluster 8 Chapter 8 33 Pramati Cluster provides a pluggable load balancer architecture. Different load balancing algorithms can be used by the cluster. By default, Pramati Server ships with a Weighted Round Robin

More information

When the transport layer tries to establish a connection with the server, it is blocked by the firewall. When this happens, the RMI transport layer

When the transport layer tries to establish a connection with the server, it is blocked by the firewall. When this happens, the RMI transport layer Firewall Issues Firewalls are inevitably encountered by any networked enterprise application that has to operate beyond the sheltering confines of an Intranet Typically, firewalls block all network traffic,

More information

EJB & J2EE. Component Technology with thanks to Jim Dowling. Components. Problems with Previous Paradigms. What EJB Accomplishes

EJB & J2EE. Component Technology with thanks to Jim Dowling. Components. Problems with Previous Paradigms. What EJB Accomplishes University of Dublin Trinity College EJB & J2EE Component Technology with thanks to Jim Dowling The Need for Component-Based Technologies The following distributed computing development paradigms have

More information

ExempleRMI.java. // Fichier de defintion des droits et proprietes // System.setProperty("java.security.policy","../server.java.

ExempleRMI.java. // Fichier de defintion des droits et proprietes // System.setProperty(java.security.policy,../server.java. ExempleRMI.java import java.lang.*; import java.rmi.registry.*; import java.rmi.server.*; import java.io.*; import java.util.*; ExempleRMI.java import pkgexemple.*; public class ExempleRMI public static

More information

Licensed for viewing only. Printing is prohibited. For hard copies, please purchase from www.agileskills.org

Licensed for viewing only. Printing is prohibited. For hard copies, please purchase from www.agileskills.org Unit Test 301 CHAPTER 12Unit Test Unit test Suppose that you are writing a CourseCatalog class to record the information of some courses: class CourseCatalog { CourseCatalog() { void add(course course)

More information

Remote Method Invocation

Remote Method Invocation Remote Method Invocation The network is the computer Consider the following program organization: method call SomeClass AnotherClass returned object computer 1 computer 2 If the network is the computer,

More information

Java 2 Platform, Enterprise Edition (J2EE): Enabling Technologies for EAI

Java 2 Platform, Enterprise Edition (J2EE): Enabling Technologies for EAI Java 2 Platform, Enterprise Edition (J2EE): Enabling Technologies for EAI Tony Ng, Staff Engineer Rahul Sharma, Senior Staff Engineer Sun Microsystems Inc. 1 J2EE Overview Tony Ng, Staff Engineer Sun Microsystems

More information

Author: Sascha Wolski Sebastian Hennebrueder http://www.laliluna.de/tutorials.html Tutorials for Struts, EJB, xdoclet and eclipse.

Author: Sascha Wolski Sebastian Hennebrueder http://www.laliluna.de/tutorials.html Tutorials for Struts, EJB, xdoclet and eclipse. JUnit Testing JUnit is a simple Java testing framework to write tests for you Java application. This tutorial gives you an overview of the features of JUnit and shows a little example how you can write

More information

Service Data and Notifications

Service Data and Notifications Service Data and Notifications Steffen Pingel Fakultät für Elektrotechnik und Informatik Universität Stuttgart Hauptseminar Grid Computing 16.12.2003 Überlick Service Data Notifications Fazit Service Data

More information

O Reilly Java Enterprise Best Practices

O Reilly Java Enterprise Best Practices Table of Contents Preface... Audience... Organization... Conventions Used in This Book... How to Contact Us... Acknowledgments... Chapter 1. Introduction to Java Enterprise Best Practices... 1.1 How Does

More information

We are not repeating all the basics here. Have a look at the basic EJB tutorials before you start this tutorial.

We are not repeating all the basics here. Have a look at the basic EJB tutorials before you start this tutorial. Creating Finder for EJB 2 with xdoclet Generals Author: Sascha Wolski http://www.laliluna.de/tutorials.html Tutorials für Struts, JSF, EJB, xdoclet und eclipse. Date: December, 06 th 2004 Software: EJB

More information

How To Test A Load Test On A Java Testnet 2.5 (For A Testnet) On A Test Server On A Microsoft Web Server On An Ipad Or Ipad (For An Ipa) On Your Computer Or Ipa

How To Test A Load Test On A Java Testnet 2.5 (For A Testnet) On A Test Server On A Microsoft Web Server On An Ipad Or Ipad (For An Ipa) On Your Computer Or Ipa 1 of 11 7/26/2007 3:36 PM Published on dev2dev (http://dev2dev.bea.com/) http://dev2dev.bea.com/pub/a/2006/08/jmeter-performance-testing.html See this if you're having trouble printing code examples Using

More information

Health Care Claims System Prototype

Health Care Claims System Prototype SGT WHITE PAPER Health Care Claims System Prototype MongoDB and Hadoop 2015 SGT, Inc. All Rights Reserved 7701 Greenbelt Road, Suite 400, Greenbelt, MD 20770 Tel: (301) 614-8600 Fax: (301) 614-8601 www.sgt-inc.com

More information

How To Write A Validator In Java 1.1.1

How To Write A Validator In Java 1.1.1 Bean Validation 1.1 What's cooking? 05.04.2013 Gunnar Morling JBoss, by Red Hat Bean Validation 1.1 JSR 349 Final Approval Ballot nächste Woche! Vollständig offen Issue-Tracker Mailingliste GitHub: Spezifikation

More information

Hans-Georg Eer, FH München Betriebssysteme I, WS 2006/07 5. Synchronisation (1) Folie 3

Hans-Georg Eer, FH München Betriebssysteme I, WS 2006/07 5. Synchronisation (1) Folie 3 Sep 19 14:20:18 amd64 sshd[20494]: Accepted rsa for esser from ::ffff:87.234.201.207 port 61557 Sep 19 14:27:41 amd64 syslog-ng[7653]: STATS: dropped 0 Sep 20 01:00:01 amd64 /usr/sbin/cron[29278]: (root)

More information

Tobias Flohre codecentric AG. Ein Standard für die Batch- Entwicklung JSR-352

Tobias Flohre codecentric AG. Ein Standard für die Batch- Entwicklung JSR-352 Tobias Flohre Ein Standard für die Batch- Entwicklung JSR-352 Tobias Flohre Düsseldorf @TobiasFlohre www.github.com/tobiasflohre blog.codecentric.de/en/author/tobias.flohre tobias.flohre@codecentric.dewww.codecentric.de

More information

7. Excursus: Business Information Systems Darmstadt University of Applied Sciences, Department of Computer Science Dr. Markus Voß (Accso GmbH)

7. Excursus: Business Information Systems Darmstadt University of Applied Sciences, Department of Computer Science Dr. Markus Voß (Accso GmbH) SOA Service Oriented Architecture 7. Excursus: Business Information Systems Darmstadt University of Applied Sciences, Department of Computer Science Dr. Markus Voß (Accso GmbH) Today s topic 1. Introduction

More information

Password-based authentication

Password-based authentication Lecture topics Authentication and authorization for EJBs Password-based authentication The most popular authentication technology Storing passwords is a problem On the server machines Could encrypt them,

More information

public class Autenticador { private static final ThreadLocal<UsuarioInterface> threadusuario = new ThreadLocal<UsuarioInterface>();

public class Autenticador { private static final ThreadLocal<UsuarioInterface> threadusuario = new ThreadLocal<UsuarioInterface>(); JBook Shadowing - Oracle Source folder: src/main/java Main package: br.com.infowaypi.jbook. Actual package: autenticacao Java file: Autenticador.java package br.com.infowaypi.jbook.autenticacao; public

More information

DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen

DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen Aufgabe 1 RMI - TimeService public interface TimeServerInterface extends Remote { public String gettime() throws RemoteException; import java.util.date;

More information

First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science

First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science First Java Programs V. Paúl Pauca Department of Computer Science Wake Forest University CSC 111D Fall, 2015 Hello World revisited / 8/23/15 The f i r s t o b l i g a t o r y Java program @author Paul Pauca

More information

A Flexible Security Architecture for the EJB Framework

A Flexible Security Architecture for the EJB Framework A Flexible Security Architecture for the EJB Framework Frank Kohmann¹, Michael Weber², Achim Botz¹ ¹ TPS Labs AG, Balanstr 49, D-81541 München {frank.kohmann achim.botz}@tps-labs.com ² Abteilung Verteilte

More information

Lecture 7: Java RMI. CS178: Programming Parallel and Distributed Systems. February 14, 2001 Steven P. Reiss

Lecture 7: Java RMI. CS178: Programming Parallel and Distributed Systems. February 14, 2001 Steven P. Reiss Lecture 7: Java RMI CS178: Programming Parallel and Distributed Systems February 14, 2001 Steven P. Reiss I. Overview A. Last time we started looking at multiple process programming 1. How to do interprocess

More information

Programmation RMI Sécurisée

Programmation RMI Sécurisée Programmation RMI Sécurisée 5 janvier 2012 D après http ://blogs.oracle.com/lmalventosa/entry/using_the_ssl_tls_based. A Code RMI de Base A.1 Les fichiers Hello.java public i n t e r f a c e Hello extends

More information

OTN Developer Day Enterprise Java. Hands on Lab Manual JPA 2.0 and Object Relational Mapping Basics

OTN Developer Day Enterprise Java. Hands on Lab Manual JPA 2.0 and Object Relational Mapping Basics OTN Developer Day Enterprise Java Hands on Lab Manual JPA 2.0 and Object Relational Mapping Basics I want to improve the performance of my application... Can I copy Java code to an HTML Extension? I coded

More information

CS 111 Classes I 1. Software Organization View to this point:

CS 111 Classes I 1. Software Organization View to this point: CS 111 Classes I 1 Software Organization View to this point: Data Objects and primitive types Primitive types operators (+, /,,*, %). int, float, double, char, boolean Memory location holds the data Objects

More information

Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007

Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007 Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007 The Java Type System By now, you have seen a fair amount of Java. Time to study in more depth the foundations of the language,

More information

Module 13 Implementing Java EE Web Services with JAX-WS

Module 13 Implementing Java EE Web Services with JAX-WS Module 13 Implementing Java EE Web Services with JAX-WS Objectives Describe endpoints supported by Java EE 5 Describe the requirements of the JAX-WS servlet endpoints Describe the requirements of JAX-WS

More information

Problem 1. CS 61b Summer 2005 Homework #2 Due July 5th at the beginning of class

Problem 1. CS 61b Summer 2005 Homework #2 Due July 5th at the beginning of class CS 61b Summer 2005 Homework #2 Due July 5th at the beginning of class This homework is to be done individually. You may, of course, ask your fellow classmates for help if you have trouble editing files,

More information

Apéndice B Clases Remotas OpenGIS

Apéndice B Clases Remotas OpenGIS // Remote Server Class GeometryOpenGisImpl.java import java.rmi.*; import java.sql.*; import java.util.*; public class GeometryOpenGisImpl extends implements GeometryOpenGis{ java.rmi.server.unicastremoteobject

More information

Java Programming Language

Java Programming Language Lecture 1 Part II Java Programming Language Additional Features and Constructs Topics in Quantitative Finance: Numerical Solutions of Partial Differential Equations Instructor: Iraj Kani Subclasses and

More information

Developing an EJB3 Application. on WebSphere 6.1. using RAD 7.5

Developing an EJB3 Application. on WebSphere 6.1. using RAD 7.5 Developing an EJB3 Application on WebSphere 6.1 using RAD 7.5 Introduction This tutorial introduces how to create a simple EJB 3 application using Rational Application Developver 7.5( RAD7.5 for short

More information

Chapter 3. How To Calculate Present Values. Principles of Corporate Finance. Slides by Matthew Will. Richard A. Brealey Stewart C.

Chapter 3. How To Calculate Present Values. Principles of Corporate Finance. Slides by Matthew Will. Richard A. Brealey Stewart C. Principles of Corporate Finance Seventh Edition Richard A. Brealey Stewart C. Myers Chapter 3 How To Calculate Present Values Slides by Matthew Will - 2 Topics Covered Valuing Long-Lived Assets PV Calculation

More information

Chapter 13 - Inheritance

Chapter 13 - Inheritance Goals Chapter 13 - Inheritance To learn about inheritance To understand how to inherit and override superclass methods To be able to invoke superclass constructors To learn about protected and package

More information

Outline. Computer Science 331. Stack ADT. Definition of a Stack ADT. Stacks. Parenthesis Matching. Mike Jacobson

Outline. Computer Science 331. Stack ADT. Definition of a Stack ADT. Stacks. Parenthesis Matching. Mike Jacobson Outline Computer Science 1 Stacks Mike Jacobson Department of Computer Science University of Calgary Lecture #12 1 2 Applications Array-Based Linked List-Based 4 Additional Information Mike Jacobson (University

More information

Oracle WebLogic Server

Oracle WebLogic Server Oracle WebLogic Server Monitoring and Managing with the Java EE Management APIs 10g Release 3 (10.3) July 2008 Oracle WebLogic Server Monitoring and Managing with the Java EE Management APIs, 10g Release

More information

J2EE-Application Server

J2EE-Application Server J2EE-Application Server (inkl windows-8) Installation-Guide F:\_Daten\Hochschule Zurich\Web-Technologie\ApplicationServerSetUp.docx Last Update: 19.3.2014, Walter Rothlin Seite 1 Table of Contents Java

More information

UNIT TESTING. Written by Patrick Kua Oracle Australian Development Centre Oracle Corporation

UNIT TESTING. Written by Patrick Kua Oracle Australian Development Centre Oracle Corporation UNIT TESTING Written by Patrick Kua Oracle Australian Development Centre Oracle Corporation TABLE OF CONTENTS 1 Overview..1 1.1 Document Purpose..1 1.2 Target Audience1 1.3 References.1 2 Testing..2 2.1

More information

Java Remote Method Invocation Specification

Java Remote Method Invocation Specification Java Remote Method Invocation Specification Java Remote Method Invocation (RMI) is a distributed object model for the Java programming language that retains the semantics of the Java platform s object

More information

Overview of Web Services API

Overview of Web Services API 1 CHAPTER The Cisco IP Interoperability and Collaboration System (IPICS) 4.5(x) application programming interface (API) provides a web services-based API that enables the management and control of various

More information

Improving Software Quality with Static Analysis and Annotations for Software Defect Detection

Improving Software Quality with Static Analysis and Annotations for Software Defect Detection Improving Software Quality with Static Analysis and Annotations for Software Defect Detection William Pugh Professor, Univ. of Maryland http://www.cs.umd.edu/~pugh TS-2007 About Me Professor at Univ. of

More information

How To Run A Test File Extension On A Rexx 4.1.1 (Unix) 4.2.1 On A Microsoft Linux 4.3.2 (Amd64) (Orchestra) (For Windows) (

How To Run A Test File Extension On A Rexx 4.1.1 (Unix) 4.2.1 On A Microsoft Linux 4.3.2 (Amd64) (Orchestra) (For Windows) ( Institut für Betriebswirtschaftslehre und Wirtschaftsinformatik Configuring Rexx Interpreter Instances from NetRexx/Java The 2012 International Rexx Symposium Rony G. Flatscher Wirtschaftsuniversität Wien

More information

Chapter 2 Introduction to Java programming

Chapter 2 Introduction to Java programming Chapter 2 Introduction to Java programming 1 Keywords boolean if interface class true char else package volatile false byte final switch while throws float private case return native void protected break

More information

Monitoring Pramati EJB Server

Monitoring Pramati EJB Server Monitoring Pramati EJB Server 17 Overview The EJB Server manages the execution of enterprise applications that run on the J2EE server. The JAR modules deployed on the Server are supported by the EJB container.

More information

Remote Method Invocation (RMI)

Remote Method Invocation (RMI) Remote Method Invocation (RMI) Remote Method Invocation (RMI) allows us to get a reference to an object on a remote host and use it as if it were on our virtual machine. We can invoke methods on the remote

More information

Project 4 DB A Simple database program

Project 4 DB A Simple database program Project 4 DB A Simple database program Due Date April (Friday) Before Starting the Project Read this entire project description before starting Learning Objectives After completing this project you should

More information

Creating a J2EE-Based Car Rental Application

Creating a J2EE-Based Car Rental Application Creating a J2EE-Based Car Rental Application SAP NetWeaver 04 Copyright Copyright 2004 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose

More information

Java Interview Questions and Answers

Java Interview Questions and Answers 1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independence? Platform independence means that we can write and compile the java

More information

Java Server Pages combined with servlets in action. Generals. Java Servlets

Java Server Pages combined with servlets in action. Generals. Java Servlets Java Server Pages combined with servlets in action We want to create a small web application (library), that illustrates the usage of JavaServer Pages combined with Java Servlets. We use the JavaServer

More information

Management and Monitoring of a J2EE Server and Applications Using JMX. Reinhold Kautzleben, Gregor Frey Speaker Title, SAP AG

Management and Monitoring of a J2EE Server and Applications Using JMX. Reinhold Kautzleben, Gregor Frey Speaker Title, SAP AG Management and Monitoring of a J2EE Server and Applications Using JMX Reinhold Kautzleben, Gregor Frey Speaker Title, SAP AG How much JMX is required to be in J2EE? JMX 1.2 belongs to the list of required

More information

Remote Method Invocation in JAVA

Remote Method Invocation in JAVA Remote Method Invocation in JAVA Philippe Laroque Philippe.Laroque@dept-info.u-cergy.fr $Id: rmi.lyx,v 1.2 2003/10/23 07:10:46 root Exp $ Abstract This small document describes the mechanisms involved

More information

Application Programming Interface

Application Programming Interface Application Programming Interface Java Card Platform, Version 2.2.1 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, California 95054 U.S.A. 650-960-1300 October 21, 2003 Java Card Specification

More information

2. Installieren des MySQL Workbench (Version 5.2.43) 3. Unter Database > Manage Connection folgende Werte eintragen

2. Installieren des MySQL Workbench (Version 5.2.43) 3. Unter Database > Manage Connection folgende Werte eintragen 1. Setup 1. Mit dieser Anleitung (http://www.unimarburg.de/fb12/sys/services/svc_more_html#svc_sql) eine Datenbank einrichten. 2. Installieren des MySQL Workbench (Version 5.2.43) 3. Unter Database > Manage

More information

Informatik II. // ActionListener hinzufügen btnconvert.addactionlistener(this); super.setdefaultcloseoperation(jframe.

Informatik II. // ActionListener hinzufügen btnconvert.addactionlistener(this); super.setdefaultcloseoperation(jframe. Universität Augsburg, Institut für Informatik Sommersemester 2006 Prof. Dr. Werner Kießling 20. Juli. 2006 M. Endres, A. Huhn, T. Preisinger Lösungsblatt 11 Aufgabe 1: Währungsrechner CurrencyConverter.java

More information

Pemrograman Dasar. Basic Elements Of Java

Pemrograman Dasar. Basic Elements Of Java Pemrograman Dasar Basic Elements Of Java Compiling and Running a Java Application 2 Portable Java Application 3 Java Platform Platform: hardware or software environment in which a program runs. Oracle

More information

Java. Java. e=mc 2. composition

Java. Java. e=mc 2. composition 2 Java Java e=mc 2 composition 17 18 method Extreme Programming Bo Diddley 2-1 2-1 50 1998 19 π ª º pattern XML XML hash table key/value XML 20 EJB CMP SQL ASP VBScript Microsoft ASP ASP.NET JavaScript

More information

File I/O - Chapter 10. Many Stream Classes. Text Files vs Binary Files

File I/O - Chapter 10. Many Stream Classes. Text Files vs Binary Files File I/O - Chapter 10 A Java stream is a sequence of bytes. An InputStream can read from a file the console (System.in) a network socket an array of bytes in memory a StringBuffer a pipe, which is an OutputStream

More information

J2EE Development with Rational XDE and IBM WebSphere Studio Application Developer

J2EE Development with Rational XDE and IBM WebSphere Studio Application Developer J2EE Development with Rational XDE and IBM WebSphere Studio Application Developer Version 2.2 Khawar Z. Ahmed Rational Software Corporation White Paper TP197A, 6/02 Table of Contents Introduction...1 Overview

More information

Classes and Objects in Java Constructors. In creating objects of the type Fraction, we have used statements similar to the following:

Classes and Objects in Java Constructors. In creating objects of the type Fraction, we have used statements similar to the following: In creating objects of the type, we have used statements similar to the following: f = new (); The parentheses in the expression () makes it look like a method, yet we never created such a method in our

More information

Studienarbeit-Nr. 1799. Verwaltung von Benutzerprofilen mit Enterprise Java Beans. Clemens Dorda

Studienarbeit-Nr. 1799. Verwaltung von Benutzerprofilen mit Enterprise Java Beans. Clemens Dorda Prüfer: Prof. Dr.-Ing. habil. Bernhard Mitschang Betreuer: Dr. Jürgen Sellentin Beginn am: 01. November 2000 Beendet am: 28. Februar 2001 CR-Nummer: D.3.3, H.3.4, H.3.5 Studienarbeit-Nr. 1799 Verwaltung

More information

http://algs4.cs.princeton.edu dictionary find definition word definition book index find relevant pages term list of page numbers

http://algs4.cs.princeton.edu dictionary find definition word definition book index find relevant pages term list of page numbers ROBERT SEDGEWICK KEVI WAYE F O U R T H E D I T I O ROBERT SEDGEWICK KEVI WAYE ROBERT SEDGEWICK KEVI WAYE Symbol tables Symbol table applications Key-value pair abstraction. Insert a value with specified.

More information

Quick Reference AP Computer Science A

Quick Reference AP Computer Science A Quick Reference AP Computer Science A 2011 The College Board. Visit the College Board on the Web: www.collegeboard.org. Content of Appendixes Appendix A......................................... Java Quick

More information

Drools Developer's Cookbook

Drools Developer's Cookbook PUBLISHING I community experience distilled Drools Developer's Cookbook Lucas Amador Chapter No. 2 "Expert: Behind the Rules" In this package, you will find: A Biography of the author of the book A preview

More information

GENERATION OF EPC BASED SIMULATION MODELS. EURO 2012 Vilnius, Lithuania

GENERATION OF EPC BASED SIMULATION MODELS. EURO 2012 Vilnius, Lithuania GENERATION OF EPC BASED SIMULATION MODELS Prof. Dr. Christian Müller Department of Management and Business Computing Technical University of Applied Sciences Wildau Bahnhofstrasse, D-15745 Wildau, Germany

More information

API Endpoint Methods NAME DESCRIPTION GET /api/v4/analytics/dashboard/ POST /api/v4/analytics/dashboard/ GET /api/v4/analytics/dashboard/{id}/ PUT

API Endpoint Methods NAME DESCRIPTION GET /api/v4/analytics/dashboard/ POST /api/v4/analytics/dashboard/ GET /api/v4/analytics/dashboard/{id}/ PUT Last on 2015-09-17. Dashboard A Dashboard is a grouping of analytics Widgets associated with a particular User. API Endpoint /api/v4/analytics/dashboard/ Methods NAME DESCRIPTION GET /api/v4/analytics/dashboard/

More information

CSE 1020 Introduction to Computer Science I A sample nal exam

CSE 1020 Introduction to Computer Science I A sample nal exam 1 1 (8 marks) CSE 1020 Introduction to Computer Science I A sample nal exam For each of the following pairs of objects, determine whether they are related by aggregation or inheritance. Explain your answers.

More information

Hadoop Configuration and First Examples

Hadoop Configuration and First Examples Hadoop Configuration and First Examples Big Data 2015 Hadoop Configuration In the bash_profile export all needed environment variables Hadoop Configuration Allow remote login Hadoop Configuration Download

More information

The Psychology of Subjects-Oriented Programming

The Psychology of Subjects-Oriented Programming A comparison of aspect oriented software development techniques for distributed applications Hamid Mcheick 1, Hafedh Mili 2, Salah Sadou 3, Amel El-Kharraz 2 1 Département d informatique et de mathématique,

More information

Estrutura com iterador-1

Estrutura com iterador-1 Estrutura com iterador-1 public class MyContainer Object [ ] items; int size; public Object get( int idx )... public boolean add( Object x )... public MyContainerIterator iterator( ) return new MyContainerIterator(this);

More information

Developing WCM based WebSphere Portal application using IBM Rational Application Developer

Developing WCM based WebSphere Portal application using IBM Rational Application Developer Developing WCM based WebSphere Portal application using IBM Rational Application Developer Table of Content Abstract...3 Sample Use case...3 Prerequisite...3 Developing the portlet project...4 Connecting

More information

Realizing Enterprise Integration Patterns in WebSphere

Realizing Enterprise Integration Patterns in WebSphere Universität Stuttgart Fakultät Informatik, Elektrotechnik und Informationstechnik Realizing Enterprise Integration Patterns in WebSphere Thorsten Scheibler, Frank Leymann Report 2005/09 October 20, 2005

More information

Writing new FindBugs detectors

Writing new FindBugs detectors Writing new FindBugs detectors Why? You may find bug patterns in your own code How? Inspect bytecode There are many ways to implement a FindBugs detector Often, simple techniques (e.g., sequential scan)

More information

Use Cases Projektplanung Domain Model Übersichtsdiagramm Thurn & Taxis Spieler

Use Cases Projektplanung Domain Model Übersichtsdiagramm Thurn & Taxis Spieler Übersichtsdiagramm Thurn & Taxis Spielzug Postillion «include» Strecke abschliessen «include» «include» «include» Spielzug Postmeister Spielzug Wagner «extend» «extend» «extend» Spiel einrichten Spielzug

More information

cs2010: algorithms and data structures

cs2010: algorithms and data structures cs2010: algorithms and data structures Lecture 11: Symbol Table ADT. Vasileios Koutavas 28 Oct 2015 School of Computer Science and Statistics Trinity College Dublin Algorithms ROBERT SEDGEWICK KEVIN WAYNE

More information

AdFalcon Android SDK 2.1.4 Developer's Guide. AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group

AdFalcon Android SDK 2.1.4 Developer's Guide. AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group AdFalcon Android SDK 214 Developer's Guide AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group Table of Contents 1 Introduction 3 Supported Android version 3 2 Project Configurations 4 Step

More information

Java EE 6 New features in practice Part 3

Java EE 6 New features in practice Part 3 Java EE 6 New features in practice Part 3 Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. License for use and distribution

More information

Foundations of Model-Driven Software Engineering

Foundations of Model-Driven Software Engineering Model-Driven Software Engineering Foundations of Model-Driven Software Engineering Dr. Jochen Küster (jku@zurich.ibm.com) Contents Introduction to Models and Modeling Concepts of Model-Driven Software

More information

ECE 122. Engineering Problem Solving with Java

ECE 122. Engineering Problem Solving with Java ECE 122 Engineering Problem Solving with Java Introduction to Electrical and Computer Engineering II Lecture 1 Course Overview Welcome! What is this class about? Java programming somewhat software somewhat

More information

Agilité des applications Java EE 6

Agilité des applications Java EE 6 Agilité des applications Java EE 6 Guillaume Sauthier, Bull, OW2 TC Chairman guillaume.sauthier@ow2.org Agenda Java EE 6 Main goals Agile? Web Profile What's inside? Benefits Java EE 6 > Main goals Ease

More information