Lösungsvorschläge zum Übungsblatt 13: Fortgeschrittene Aspekte objektorientierter Programmierung (WS 2005/06)
|
|
- Kelley Ball
- 8 years ago
- Views:
Transcription
1 Prof. Dr. A. Poetzsch-Heffter Dipl.-Inform. N. Rauch Technische Universität Kaiserslautern Fachbereich Informatik AG Softwaretechnik Lösungsvorschläge zum Übungsblatt 13: Fortgeschrittene Aspekte objektorientierter Programmierung (WS 2005/06) Aufgabe 1 EJB Remote Interface: Stellt die Methoden der Bean zur Verwendung durch Clients bereit. / Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. package samples.ejb.stateless.simple.ejb; Remote interface for the GreeterEJB. The remote interface defines all possible business methods for the bean. These are the methods going to be invoked remotely by clients, once they have a reference to the remote interface. Clients (GreeterServlet, in this case), generally take the help of JNDI to lookup the bean s home interface (GreeterHome, in this case) and then use the home interface to obtain references to the bean s remote interface (Greeter, in this case). public interface Greeter extends javax.ejb.ejbobject { Returns a returns a greeting as a throws a RemoteException. public String getgreeting() throws java.rmi.remoteexception; Home Interface: Erlaubt den Clients, Zugriff auf eine Bean zu bekommen (durch das Remote Interface). / Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. package samples.ejb.stateless.simple.ejb; Home interface for the GreeterEJB. Clients generally use home interface to obtain references to the bean s remote interface. public interface GreeterHome extends javax.ejb.ejbhome { Gets a reference to the remote interface to the Greeter throws CreateException and RemoteException. public Greeter create() throws java.rmi.remoteexception, javax.ejb.createexception;
2 Implementierung: Der Code der Enterprise Java Bean selbst. / Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. package samples.ejb.stateless.simple.ejb; import java.util.; import java.io.; A simple stateless bean for the HelloWorld application. This bean implements one business method as declared by the remote interface. public class GreeterEJB implements javax.ejb.sessionbean { private javax.ejb.sessioncontext m_ctx = null; Sets the session context. Required by EJB ctx A SessionContext object. public void setsessioncontext(javax.ejb.sessioncontext ctx) { m_ctx = ctx; Creates a bean. Required by EJB throws CreateException. public void ejbcreate() throws javax.ejb.ejbexception, javax.ejb.createexception { System.out.println("ejbCreate() on obj " + this); Removes the bean. Required by EJB spec. public void ejbremove() { System.out.println("ejbRemove() on obj " + this); Loads the state of the bean from secondary storage. Required by EJB spec. public void ejbactivate() { System.out.println("ejbActivate() on obj " + this); Serializes the state of the bean to secondary storage. Required by EJB spec. public void ejbpassivate() { System.out.println("ejbPassivate() on obj " + this); Required by EJB spec. public void Greeter() { 2
3 Returns a greeting, based on the time of the returns a greeting as a string. public String getgreeting() { String message = null; Calendar calendar = new GregorianCalendar(); int currenthour = calendar.get(calendar.hour_of_day); if(currenthour < 12) message = "morning"; else { if( (currenthour >= 12) && (calendar.get(calendar.hour_of_day) < 18)) message = "afternoon"; else message = "evening"; return message; Client: Ein Beispielclient (hier ein HTTP-Servlet). Zuerst beschafft sich der Client eine Referenz auf das home interface der Bean, dann erzeugt er eine Referenz auf das remote interface der Bean. Anschließend kann er auf die Methoden (= Geschäftslogik) der Bean zugreifen. / Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. package samples.ejb.stateless.simple.servlet; import java.io.; import java.util.; import javax.servlet.; import javax.naming.; import javax.servlet.http.; import javax.rmi.portableremoteobject; import javax.ejb.; import samples.ejb.stateless.simple.ejb.; This servlet is responsible for throwing the html pages for the HelloWorld application. public class GreeterServlet extends HttpServlet { The doget method of the servlet. Handles all http GET request. Required by the servlet throws ServletException and IOException. public void doget (HttpServletRequest request,httpservletresponse response) throws ServletException, IOException { javax.ejb.handle beanhandle; Greeter mygreeterbean; GreeterHome mygreeterhome; Greeter mygreeterremote; InitialContext initcontext = null; Hashtable env = new java.util.hashtable(1); ResourceBundle rb = ResourceBundle.getBundle("LocalStrings", Locale.getDefault()); System.out.println("\n"+rb.getString("greeting_servlet")+ "..."); System.out.println(rb.getString("retrieving_jndi")); try { initcontext = new javax.naming.initialcontext(); 3
4 catch (Exception e) { System.out.println(rb.getString("exception")+": " + e.tostring()); try { System.out.println(rb.getString("looking_up")); String JNDIName = "java:comp/env/ejb/greeter"; System.out.println(rb.getString("looking")+": " + JNDIName); Object objref = initcontext.lookup(jndiname); mygreeterhome = (GreeterHome)PortableRemoteObject.narrow(objref, GreeterHome.class); catch(exception e) { System.out.println(rb.getString("greeter_bean")+" - " + rb.getstring("is_registered")+"?: " + e.tostring()); try { System.out.println(rb.getString("creating")); mygreeterremote = mygreeterhome.create(); catch(createexception e) { System.out.println(rb.getString("could_not")+": "+ e.tostring()); System.out.println(rb.getString("getting")); String themessage = mygreeterremote.getgreeting(); System.out.println(rb.getString("got")+": " + themessage); System.out.println(rb.getString("storing")); request.setattribute("message", themessage); System.out.println(rb.getString("dispatching")); response.setcontenttype("text/html"); RequestDispatcher dispatcher; dispatcher = getservletcontext().getrequestdispatcher ("/GreeterView.jsp"); dispatcher.include(request, response); The dopost method of the servlet. Handles all http POST request. Required by the servlet throws ServletException and IOException. public void dopost (HttpServletRequest request,httpservletresponse response) throws ServletException, IOException { doget(request,response); Returns the servlet info as a returns the servlet info as a String. public String getservletinfo() { ResourceBundle rb = ResourceBundle.getBundle("LocalStrings", Locale.getDefault()); return rb.getstring("call")+"."; Die wichtigsten Auszüge aus dem Buildfile: 4
5 <!-- Tagets to build and deploy sample application --> <target name="init" depends="init_common" /> <target name="compile" depends="compile_common" /> <target name="jar" depends="init,create_ejbjar_common"/> <target name="core" depends="compile,jar" /> <!-- Taken from common makefile --> <target name="init_common" depends="build_cpath"> <!-- define these properties if samples dont define --> <property name="classpath.prefix" value="."/>... <!-- Classpath and environment --> <target name="build_cpath" unless="appserver.cpath"> <path id="sample_classpath_jars"> <fileset dir="${com.sun.aas.installroot/lib" includes=".jar" /> <fileset dir="${com.sun.aas.webserviceslib" includes=".jar"/> <fileset dir="${com.sun.aas.imqlib" includes=".jar"/> <fileset dir="${com.sun.aas.javaroot/lib" includes="tools.jar"/> </path> <pathconvert pathsep=":" property="appserver.cpath" refid="sample_classpath_jars"/> <!-- Compile all classes. --> <target name="compile_common" depends="init_common"> <mkdir dir="${build.classesdir"/> <echo message="compiling source files into ${build.classesdir" /> <javac srcdir="${src" destdir="${build.classesdir" classpath="${build.classpath"/> <!-- Assemble EJB JAR module. --> <target name="check_ejbjarfile"> <available file="${build.classesdir/${jar.pkg/" type="dir" property="ejbjarfiles.present"/> <target name="add_sharejar_to_ejb_jar" if="sharejar.done"> <jar destfile="${assemble.ejbjar/${ejbjar" update="true"> <zipfileset dir="../${sample.name${sharejar-dir-suffix/${assemble.sharejar" includes="${sharejar"/> <target name="add_shareclasses_to_ejb_jar" if="sharejar.done"> <jar destfile="${assemble.ejbjar/${ejbjar" update="true"> <zipfileset dir="../${sample.name${sharejar-dir-suffix/${build/classes/" includes=".class" excludes="servlet/"/> <target name="add_wsdlfiles_to_ejb_jar" if="iswebserviceclient"> 5
6 <jar destfile="${assemble.ejbjar/${ejbjar" update="true"> <zipfileset dir="../${sample.name${ejbjar-dir-suffix/${src.conf" includes="${wsdlfile" prefix="meta-inf/wsdl/"/> <zipfileset dir="../${sample.name${ejbjar-dir-suffix/${build/shared" includes="mapping.xml" prefix="shared/"/> <target name="add_classes_to_ejb_jar"> <jar destfile="${assemble.ejbjar/${ejbjar" update="true"> <zipfileset dir="${build.classesdir/" includes=".class" excludes="servlet/, client/"/> <metainf dir="${jardd.dir" includes="${jardd"/> <target name="mkdir_ejbjar_common"> <mkdir dir="${assemble.ejbjar"/> <target name="create_ejbjar_common" depends="clean_ejbjar_common,mkdir_ejbjar_common,compile_common,add_classes_to_ejb_jar, add_shareclasses_to_ejb_jar,add_wsdlfiles_to_ejb_jar"> <property name="ejbjar.done" value="true"/> <target name="clean_ejbjar_common"> <delete dir="${assemble.ejbjar"/> </project> Deployment Descriptors: <?xml version = "1.0" encoding = "UTF-8"?> <!-- Copyright Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. --> <ejb-jar xmlns = " version = "2.1" xmlns:xsi = " <display-name>greeterjar</display-name> <enterprise-beans> <session> <display-name>thegreeter</display-name> <ejb-name>thegreeter</ejb-name> <home>samples.ejb.stateless.simple.ejb.greeterhome</home> <remote>samples.ejb.stateless.simple.ejb.greeter</remote> <ejb-class>samples.ejb.stateless.simple.ejb.greeterejb</ejb-class> <session-type>stateless</session-type> <transaction-type>bean</transaction-type> <security-identity> <use-caller-identity/> </security-identity> </session> </enterprise-beans> </ejb-jar> <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 EJB 2.1//EN" "h <!-- Copyright Sun Microsystems, Inc. Use is subject to license terms. --> All rights reserved. 6
7 <sun-ejb-jar> <enterprise-beans> <unique-id>1</unique-id> <ejb> <ejb-name>thegreeter</ejb-name> <jndi-name>greeter</jndi-name> </ejb> </enterprise-beans> </sun-ejb-jar> 7
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 informationSoftware 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 informationJava 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 informationWeb Container Components Servlet JSP Tag Libraries
Web Application Development, Best Practices by Jeff Zhuk, JavaSchool.com ITS, Inc. dean@javaschool.com Web Container Components Servlet JSP Tag Libraries Servlet Standard Java class to handle an HTTP request
More informationIntroduction 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 informationAufgabenstellung. Aufgabenstellung
Aufgabenstellung Konto: Kontonummer, Inhaber, PIN, Guthaben, Zinssatz, Kreditrahmen Funktionsumfang: 1. Bankangestellte: - Einrichten neuer Konten - Änderung Kreditrahmen und Verzinsung für ein Konto Aufgabenstellung
More informationEJB 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 informationAutomatic 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 informationCreating Java EE Applications and Servlets with IntelliJ IDEA
Creating Java EE Applications and Servlets with IntelliJ IDEA In this tutorial you will: 1. Create IntelliJ IDEA project for Java EE application 2. Create Servlet 3. Deploy the application to JBoss server
More informationJava Servlet and JSP Programming. Structure and Deployment China Jiliang University
Java Web Programming in Java Java Servlet and JSP Programming Structure and Deployment China Jiliang University Servlet/JSP Exercise - Rules On the following pages you will find the rules and conventions
More informationACM Crossroads Student Magazine The ACM's First Electronic Publication
Page 1 of 8 ACM Crossroads Student Magazine The ACM's First Electronic Publication Crossroads Home Join the ACM! Search Crossroads crossroads@acm.org ACM / Crossroads / Columns / Connector / An Introduction
More information2. Follow the installation directions and install the server on ccc
Installing a Web Server 1. Install a sample web server, which supports Servlets/JSPs. A light weight web server is Apache Tomcat server. You can get the server from http://tomcat.apache.org/ 2. Follow
More informationObjectives. 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 informationServlets. Based on Notes by Dave Hollinger & Ethan Cerami Also, the Online Java Tutorial by Sun
Servlets Based on Notes by Dave Hollinger & Ethan Cerami Also, the Online Java Tutorial by Sun 1 What is a Servlet? A Servlet is a Java program that extends the capabilities of servers. Inherently multi-threaded.
More informationHow 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 informationWeb Application Programmer's Guide
Web Application Programmer's Guide JOnAS Team ( Florent BENOIT) - March 2009 - Copyright OW2 consortium 2008-2009 This work is licensed under the Creative Commons Attribution-ShareAlike License. To view
More informationHello World Portlet Rendered with JSP for WebSphere Portal Version 4.1
1 of 11 16.10.2002 11:41 Hello World Portlet Rendered with JSP for WebSphere Portal Version 4.1 Table of Contents Creating the directory structure Creating the Java code Compiling the code Creating the
More informationAn introduction to web programming with Java
Chapter 1 An introduction to web programming with Java Objectives Knowledge Objectives (continued) The first page of a shopping cart application The second page of a shopping cart application Components
More informationJava 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 informationServices. Custom Tag Libraries. Today. Web Development. Role-Based. Development. Code Reuse. Tag Libraries Custom Tags. Tag Lifecycle.
JSP, and JSP, and 1 JSP, and Custom Lecture #6 2008 2 JSP, and JSP, and interfaces viewed as user interfaces methodologies derived from software development done in roles and teams role assignments based
More information2.8. Session management
2.8. Session management Juan M. Gimeno, Josep M. Ribó January, 2008 Session management. Contents Motivation Hidden fields URL rewriting Cookies Session management with the Servlet/JSP API Examples Scopes
More informationEJB & 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 informationWeb Application Architecture (based J2EE 1.4 Tutorial)
Web Application Architecture (based J2EE 1.4 Tutorial) 1 Disclaimer & Acknowledgments Even though Sang Shin is a full-time employee of Sun Microsystems, the contents here are created as his own personal
More informationHow 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 informationControlling Web Application Behavior
2006 Marty Hall Controlling Web Application Behavior The Deployment Descriptor: web.xml JSP, Servlet, Struts, JSF, AJAX, & Java 5 Training: http://courses.coreservlets.com J2EE Books from Sun Press: http://www.coreservlets.com
More informationCHAPTER 9: SERVLET AND JSP FILTERS
Taken from More Servlets and JavaServer Pages by Marty Hall. Published by Prentice Hall PTR. For personal use only; do not redistribute. For a complete online version of the book, please see http://pdf.moreservlets.com/.
More informationJava 2 Web Developer Certification Study Guide Natalie Levi
SYBEX Sample Chapter Java 2 Web Developer Certification Study Guide Natalie Levi Chapter 8: Thread-Safe Servlets Copyright 2002 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights
More informationIntroduction to J2EE Web Technologies
Introduction to J2EE Web Technologies Kyle Brown Senior Technical Staff Member IBM WebSphere Services RTP, NC brownkyl@us.ibm.com Overview What is J2EE? What are Servlets? What are JSP's? How do you use
More informationMDA 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 informationThe Collaborative Information Portal and NASA s Mars Rover Mission
The Collaborative Information Portal and NASA s Mars Rover Mission Bildquelle: Ronald Mak, University of California, Santa Cruz Joan Walton, NASA Ames Research Center Qualitative Anfoderungen Message-Service
More informationJava 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 informationJ2EE-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 informationWork with XI 3.0 Java Proxies
How-to Guide SAP NetWeaver 04 How To Work with XI 3.0 Java Proxies Version 2.00 May 2006 Applicable Releases: SAP NetWeaver 04 SAP Exchange Infrastructure 3.0 Copyright 2006 SAP AG. All rights reserved.
More informationJava 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 informationEnterprise 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 informationJava EE Introduction, Content. Component Architecture: Why and How Java EE: Enterprise Java
Java EE Introduction, Content Component Architecture: Why and How Java EE: Enterprise Java The Three-Tier Model The three -tier architecture allows to maintain state information, to improve performance,
More informationSSC - Web applications and development Introduction and Java Servlet (II)
SSC - Web applications and development Introduction and Java Servlet (II) Shan He School for Computational Science University of Birmingham Module 06-19321: SSC Outline Outline of Topics Servlet Configuration
More information7 Web Databases. Access to Web Databases: Servlets, Applets. Java Server Pages PHP, PEAR. Languages: Java, PHP, Python,...
7 Web Databases Access to Web Databases: Servlets, Applets Java Server Pages PHP, PEAR Languages: Java, PHP, Python,... Prof. Dr. Dietmar Seipel 837 7.1 Access to Web Databases by Servlets Java Servlets
More informationHow to program Java Card3.0 platforms?
How to program Java Card3.0 platforms? Samia Bouzefrane CEDRIC Laboratory Conservatoire National des Arts et Métiers samia.bouzefrane@cnam.fr http://cedric.cnam.fr/~bouzefra Smart University Nice, Sophia
More informationWeb Programming: Announcements. Sara Sprenkle August 3, 2006. August 3, 2006. Assignment 6 due today Project 2 due next Wednesday Review XML
Web Programming: Java Servlets and JSPs Sara Sprenkle Announcements Assignment 6 due today Project 2 due next Wednesday Review XML Sara Sprenkle - CISC370 2 1 Web Programming Client Network Server Web
More informationWebOTX 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 informationServlet 3.0. Alexis Moussine-Pouchkine. mercredi 13 avril 2011
Servlet 3.0 Alexis Moussine-Pouchkine 1 Overview Java Servlet 3.0 API JSR 315 20 members Good mix of representation from major Java EE vendors, web container developers and web framework authors 2 Overview
More informationService 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 informationAnnouncements. Comments on project proposals will go out by email in next couple of days...
Announcements Comments on project proposals will go out by email in next couple of days... 3-Tier Using TP Monitor client application TP monitor interface (API, presentation, authentication) transaction
More informationCONTROLLING WEB APPLICATION BEHAVIOR WITH
CONTROLLING WEB APPLICATION BEHAVIOR WITH WEB.XML Chapter Topics in This Chapter Customizing URLs Turning off default URLs Initializing servlets and JSP pages Preloading servlets and JSP pages Declaring
More informationSupplement IV.E: Tutorial for Tomcat. For Introduction to Java Programming By Y. Daniel Liang
Supplement IV.E: Tutorial for Tomcat For Introduction to Java Programming By Y. Daniel Liang This supplement covers the following topics: Obtaining and Installing Tomcat Starting and Stopping Tomcat Choosing
More informationNetBeans IDE Field Guide
NetBeans IDE Field Guide Copyright 2005 Sun Microsystems, Inc. All rights reserved. Table of Contents Extending J2EE Applications with Web Services...1 Consuming Existing Web Services...2 Implementing
More informationCourse Name: Course in JSP Course Code: P5
Course Name: Course in JSP Course Code: P5 Address: Sh No BSH 1,2,3 Almedia residency, Xetia Waddo Duler Mapusa Goa E-mail Id: ITKP@3i-infotech.com Tel: (0832) 2465556 (0832) 6454066 Course Code: P5 3i
More informationHow to use JavaMail to send email
Chapter 15 How to use JavaMail to send email Objectives Applied Knowledge How email works Sending client Mail client software Receiving client Mail client software SMTP Sending server Mail server software
More informationJava Servlet 3.0. Rajiv Mordani Spec Lead
Java Servlet 3.0 Rajiv Mordani Spec Lead 1 Overview JCP Java Servlet 3.0 API JSR 315 20 members > Good mix of representation from major Java EE vendors, web container developers and web framework authors
More informationJSP Java Server Pages
JSP - Java Server Pages JSP Java Server Pages JSP - Java Server Pages Characteristics: A way to create dynamic web pages, Server side processing, Based on Java Technology, Large library base Platform independence
More informationINTRODUCTION TO WEB TECHNOLOGY
UNIT-I Introduction to Web Technologies: Introduction to web servers like Apache1.1, IIS, XAMPP (Bundle Server), WAMP Server(Bundle Server), handling HTTP Request and Response, installation of above servers
More informationJ2EE 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 informationPiotr Nowicki's Homepage. Java EE 6 SCWCD Mock Exam. "Simplicity is the ultimate sophistication." Important!
Piotr Nowicki's Homepage "Simplicity is the ultimate sophistication." Java EE 6 SCWCD Mock Exam Posted on March 27, 2011 by Piotr 47 Replies Edit This test might help to test your knowledge before taking
More informationSoftware Development. COMP220/COMP285 Seb Coope Introducing Ant
Software Development COMP220/COMP285 Seb Coope Introducing Ant These slides are mainly based on Java Development with Ant - E. Hatcher & S.Loughran. Manning Publications, 2003 Introducing Ant Ant is Java
More informationDeveloping 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 informationAgenda. Summary of Previous Session. Application Servers G22.3033-011. Session 3 - Main Theme Page-Based Application Servers (Part II)
Application Servers G22.3033-011 Session 3 - Main Theme Page-Based Application Servers (Part II) Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical
More informationEnterprise Applications
Module 11 At the end of this module you will be able to: 9 Describe the differences between EJB types 9 Deploy EJBs 9 Define an Enterprise Application 9 Dxplain the directory structure of an Enterprise
More informationThe Duke s Bank Application
32 The Duke s Bank Application THIS chapter describes the Duke s Bank application, an online banking application. Duke s Bank has two clients: a J2EE application client used by administrators to manage
More informationJava 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 informationCh-03 Web Applications
Ch-03 Web Applications 1. What is ServletContext? a. ServletContext is an interface that defines a set of methods that helps us to communicate with the servlet container. There is one context per "web
More informationLoad 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 informationModule 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 informationOracle 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 informationWeb Applications. For live Java training, please see training courses at
2009 Marty Hall Using and Deploying Web Applications Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/
More informationJava 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 informationPure server-side Web Applications with Java, JSP. Application Servers: the Essential Tool of Server-Side Programming. Install and Check Tomcat
Pure server-side Web Applications with Java, JSP Discussion of networklevel http requests and responses Using the Java programming language (Java servlets and JSPs) Key lesson: The role of application
More informationJava Web Programming. Student Workbook
Student Workbook Java Web Programming Mike Naseef, Jamie Romero, and Rick Sussenbach Published by ITCourseware, LLC., 7245 South Havana Street, Suite 100, Centennial, CO 80112 Editors: Danielle Hopkins
More informationDTS Web Developers Guide
Apelon, Inc. Suite 202, 100 Danbury Road Ridgefield, CT 06877 Phone: (203) 431-2530 Fax: (203) 431-2523 www.apelon.com Apelon Distributed Terminology System (DTS) DTS Web Developers Guide Table of Contents
More informationCGI 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 informationTutorial c-treeace Web Service Using Java
Tutorial c-treeace Web Service Using Java Tutorial c-treeace Web Service Using Java Copyright 1992-2012 FairCom Corporation All rights reserved. No part of this publication may be stored in a retrieval
More informationEnabling Grids for E-sciencE. Web services tools. David Fergusson. www.eu-egee.org INFSO-RI-508833
Web services tools David Fergusson www.eu-egee.org Web services tools Java based ANT JWSDP/J2EE/Java Beans Axis Tomcat C based.net gsoap Perl based SOAP::Lite SOAP::Lite Collection of Perl modules which
More informationImplementing the Shop with EJB
Exercise 2 Implementing the Shop with EJB 2.1 Overview This exercise is a hands-on exercise in Enterprise JavaBeans (EJB). The exercise is as similar as possible to the other exercises (in other technologies).
More informationPrinciples and Techniques of DBMS 5 Servlet
Principles and Techniques of DBMS 5 Servlet Haopeng Chen REliable, INtelligentand Scalable Systems Group (REINS) Shanghai Jiao Tong University Shanghai, China http://reins.se.sjtu.edu.cn/~chenhp e- mail:
More informationComponent 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 informationWeb Programming II JSP (Java Server Pages) ASP request processing. The Problem. The Problem. Enterprise Application Development using J2EE
Enterprise Application Development using J2EE Shmulik London Lecture #6 Web Programming II JSP (Java Server Pages) How we approached it in the old days (ASP) Multiplication Table Multiplication
More informationJSP. Common patterns
JSP Common patterns Common JSP patterns Page-centric (client-server) CLIENT JSP or Servlet CLIENT Enterprise JavaBeans SERVER DB Common JSP patterns Page-centric 1 (client-server) Page View request response
More informationPassword-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 informationwww.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk
CS506 Web Design and Development Solved Online Quiz No. 01 Which of the following is a general purpose container? JFrame Dialog JPanel JApplet Which of the following package needs to be import while handling
More informationJava Servlet Tutorial. Java Servlet Tutorial
Java Servlet Tutorial i Java Servlet Tutorial Java Servlet Tutorial ii Contents 1 Introduction 1 1.1 Servlet Process.................................................... 1 1.2 Merits.........................................................
More informationJBoss SOAP Web Services User Guide. Version: 3.3.0.M5
JBoss SOAP Web Services User Guide Version: 3.3.0.M5 1. JBoss SOAP Web Services Runtime and Tools support Overview... 1 1.1. Key Features of JBossWS... 1 2. Creating a Simple Web Service... 3 2.1. Generation...
More informationJava EE 6 Ce qui vous attends
13 janvier 2009 Ce qui vous attends Antonio Goncalves Architecte Freelance «EJBs are dead...» Rod Johnson «Long live EJBs!» Antonio Goncalves Antonio Goncalves Software Architect Former BEA Consultant
More informationHow To Understand The Architecture Of Java 2Ee, J2Ee, And J2E (Java) In A Wordpress Blog Post
Understanding Architecture and Framework of J2EE using Web Application Devadrita Dey Sarkar,Anavi jaiswal, Ankur Saxena Amity University,UTTAR PRADESH Sector-125, Noida, UP-201303, India Abstract: This
More informationCSc31800: Internet Programming, CS-CCNY, Spring 2004 Jinzhong Niu May 9, 2004. Java Servlets
CSc31800: Internet Programming, CS-CCNY, Spring 2004 Jinzhong Niu May 9, 2004 Java Servlets I have presented a Java servlet example before to give you a sense of what a servlet looks like. From the example,
More informationIBM Rational Rapid Developer Components & Web Services
A Technical How-to Guide for Creating Components and Web Services in Rational Rapid Developer June, 2003 Rev. 1.00 IBM Rational Rapid Developer Glenn A. Webster Staff Technical Writer Executive Summary
More informationEssentials of the Java(TM) Programming Language, Part 1
Essentials of the Java(TM) Programming Language, Part 1 http://developer.java.sun.com/developer...ining/programming/basicjava1/index.html Training Index Essentials of the Java TM Programming Language:
More information15-415 Database Applications Recitation 10. Project 3: CMUQFlix CMUQ s Movies Recommendation System
15-415 Database Applications Recitation 10 Project 3: CMUQFlix CMUQ s Movies Recommendation System Project Objective 1. Set up a front-end website with PostgreSQL back-end 2. Allow users to login, like
More informationManual. Programmer's Guide for Java API
2013-02-01 1 (15) Programmer's Guide for Java API Description This document describes how to develop Content Gateway services with Java API. TS1209243890 1.0 Company information TeliaSonera Finland Oyj
More informationBrekeke PBX Web Service
Brekeke PBX Web Service User Guide Brekeke Software, Inc. Version Brekeke PBX Web Service User Guide Revised October 16, 2006 Copyright This document is copyrighted by Brekeke Software, Inc. Copyright
More informationBAPI. Business Application Programming Interface. Compiled by Y R Nagesh 1
BAPI Business Application Programming Interface Compiled by Y R Nagesh 1 What is BAPI A Business Application Programming Interface is a precisely defined interface providing access process and data in
More informationPowerTier Web Development Tools 4
4 PowerTier Web Development Tools 4 This chapter describes the process of developing J2EE applications with Web components, and introduces the PowerTier tools you use at each stage of the development process.
More informationGeronimo Quartz Plugins
Table of Contents 1. Introduction 1 1.1. Target Use Cases.. 1 1.2. Not Target Use Cases.. 2 2. About the Geronimo Quartz Plugins. 2 3. Installing the Geronimo Quartz Plugins 2 4. Usage Examples 3 4.1.
More informationGlassfish, JAVA EE, Servlets, JSP, EJB
Glassfish, JAVA EE, Servlets, JSP, EJB Java platform A Java platform comprises the JVM together with supporting class libraries. Java 2 Standard Edition (J2SE) (1999) provides core libraries for data structures,
More informationINSIDE SERVLETS. Server-Side Programming for the Java Platform. An Imprint of Addison Wesley Longman, Inc.
INSIDE SERVLETS Server-Side Programming for the Java Platform Dustin R. Callaway TT ADDISON-WESLEY An Imprint of Addison Wesley Longman, Inc. Reading, Massachusetts Harlow, England Menlo Park, California
More informationServlet and JSP Filters
2009 Marty Hall Servlet and JSP Filters Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/
More informationJava Server Pages and Java Beans
Java Server Pages and Java Beans Java server pages (JSP) and Java beans work together to create a web application. Java server pages are html pages that also contain regular Java code, which is included
More informationSession Tracking Customized Java EE Training: http://courses.coreservlets.com/
2012 Marty Hall Session Tracking Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/csajsp2.html 2 Customized Java EE Training: http://courses.coreservlets.com/
More informationWebSphere and Message Driven Beans
WebSphere and Message Driven Beans 1 Messaging Messaging is a method of communication between software components or among applications. A messaging system is a peer-to-peer facility: A messaging client
More informationPenetration from application down to OS
April 8, 2009 Penetration from application down to OS Getting OS access using IBM Websphere Application Server vulnerabilities Digitаl Security Research Group (DSecRG) Stanislav Svistunovich research@dsecrg.com
More informationWeb Service Development Using CXF. - Praveen Kumar Jayaram
Web Service Development Using CXF - Praveen Kumar Jayaram Introduction to WS Web Service define a standard way of integrating systems using XML, SOAP, WSDL and UDDI open standards over an internet protocol
More information