ๆญฏWriting_Enterprise_Applications_7_JunoYoon.PDF

Similar documents
ๆญฏWriting_Enterprise_Applications_2_JunoYoon.PDF

๊ต์œก2 ? ๊ทธ๋ฆผ

rmi_๋ฐ•์ค€์šฉ_final.PDF

Intro to Servlet, EJB, JSP, WS

MasoJava4_Dongbin.PDF

10.ppt

JMF2_์‹ฌ๋นˆ๊ตฌ.PDF

Interstage5 SOAP์„œ๋น„์Šค ์„ค์ • ๊ฐ€์ด๋“œ

๋ชฉ์ฐจ JEUS EJB Session Bean๊ฐ€์ด๋“œ stateful session bean stateful sample ๊ฐ€์ด๋“œ sample source ๊ฒฐ๊ณผํ™•์ธ http session์—

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

JMF3_์‹ฌ๋นˆ๊ตฌ.PDF

Spring Boot/JDBC JdbcTemplate/CRUD ์˜ˆ์ œ

J2EE Concepts

ๆญฏJavaExceptionHandling.PDF

No Slide Title

fundamentalOfCommandPattern_calmglow_pattern_jstorm_1.0_fโ€ฆ

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜

Chap7.PDF

@OneToOne(cascade = = "addr_id") private Addr addr; public Emp(String ename, Addr addr) { this.ename = ename; this.a

JavaGeneralProgramming.PDF

์‰ฝ๊ฒŒ ํ’€์–ด์“ด C ํ”„๋กœ๊ทธ๋ž˜๋ฐŠ

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜

แ„‰แ…ตแ†ซแ„…แ…ตแ†ทแ„‘แ…ณแ„…แ…ฉแ„€แ…ณแ„…แ…ขแ„†แ…ฅ_แ„แ…ณแ†ฏแ„…แ…ตแ†ซแ„แ…ฉแ„ƒแ…ณ.key

I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r

Chap12

chapter1,2.doc

FileMaker ODBC and JDBC Guide

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

DocsPin_Korean.pages

CD-RW_Advanced.PDF

๋ชฉ์ฐจ BUG DEQUEUE ์˜ WAIT TIME ์ด 1 ์ดˆ๋ฏธ๋งŒ์ธ๊ฒฝ์šฐ, ์„ค์ •ํ•œ์‹œ๊ฐ„๋งŒํผ๋Œ€๊ธฐํ•˜์ง€์•Š๋Š”๋ฌธ์ œ๊ฐ€์žˆ์Šต๋‹ˆ๋‹ค... 3 BUG [qp-select-pvo] group by ํ‘œํ˜„์‹์—์žˆ๋Š”์ปฌ๋Ÿผ์„์ฐธ์กฐํ•˜๋Š”์ง‘ํ•ฉ์—ฐ์‚ฐ์ด์กด์žฌํ•˜์ง€์•Š์œผ๋ฉด๊ฒฐ๊ด๊ฐ’์˜ค๋ฅ˜๊ฐ€๋ฐœ์ƒํ• ์ˆ˜์žˆ์Šต๋‹ˆ๋‹ค... 4

์ž๋ฐ”GUI์‹ค์ „ํ”„๋กœ๊ทธ๋ž˜๋ฐ2_์žฅ๋Œ€์›.PDF

FileMaker ODBC ๋ฐ JDBC ๊ฐ€์ด๋“œ

FileMaker 15 ODBC ๋ฐ JDBC ์„ค๋ช…์„œ

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜

Mobile Service > IAP > Android SDK [ ] IAP SDK TOAST SDK. IAP SDK. Android Studio IDE Android SDK Version (API Level 10). Name Reference V

Microsoft Word - Enterprise Java Beans.doc

02 C h a p t e r Java

Dialog Box ์‹คํ–‰ํŒŒ์ผ์„ Web์— ํฌํ•จ์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•

ETL_project_best_practice1.ppt

12-file.key

C# Programming Guide - Types

Interstage4 ์„ค์น˜๊ฐ€์ด๋“œ

untitled

NoSQL

Eclipse ์™€ Firefox ๋ฅผ์ด์šฉํ•œ Javascript ๊ฐœ๋ฐœ ๋ฐœํ‘œ์ž : ๋ฌธ๊ฒฝ๋Œ€ 11 ๋…„ 10 ์›” 26 ์ผ์ˆ˜์š”์ผ

09-interface.key

13์ฃผ-14์ฃผproc.PDF

Microsoft PowerPoint - 18-DataSource.ppt

FileMaker ODBC and JDBC Guide

Spring Data JPA Many To Many ์–‘๋ฐฉํ–ฅ ๊ด€๊ณ„ ์˜ˆ์ œ

1

๊ฐœ๋ฐœ๋ฌธ์„œ Oracle - Clob

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D D382E687770>

Orcad Capture 9.x

MySQL-Ch10

Microsoft PowerPoint - GUI _DB์—ฐ๋™.ppt [ํ˜ธํ™˜ ๋ชจ๋“œ]

KYO_SCCD.PDF

untitled

thesis


์ œ๋ชฉ์„ ์ž…๋ ฅํ•˜์„ธ์š”.

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

J2EE & Web Services iSeminar

์ž๋ฐ” ํ”„๋กœ๊ทธ๋ž˜๋ฐ

ilist.add(new Integer(1))๊ณผ ๊ฐ™์ด ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  ilist.add(1)๊ณผ ๊ฐ™์ด ์‚ฌ์šฉํ•œ ๊ฒƒ์€ ์ž๋ฐ” 5.0์— ์ถ”๊ฐ€๋œ ๊ธฐ๋ณธ ์ž๋ฃŒํ˜•๊ณผ ํ•ด๋‹น ๊ฐ์ฒด ์ž๋ฃŒ ํ˜•๊ณผ์˜ ์˜คํ† ๋ฐ•์‹ฑ/์–ธ๋ฐ•์‹ฑ ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•œ ๊ฒƒ์œผ๋กœ ์˜คํ† ๋ฐ•์‹ฑ์ด๋ž€ ์ž๋ฐ” ์ปดํŒŒ์ผ๋Ÿฌ๊ฐ€ ๊ฐ์ฒด๋ฅผ ์š”๊ตฌํ•˜๋Š” ๊ณณ์— ๊ธฐ๋ณธ ์ž๋ฃŒํ˜•

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT END USERS. Oracle programs, including any oper

ibmdw_rest_v1.0.ppt

MS-SQL SERVER ๋Œ€๋น„ ๊ธฐ๋Šฅ

5แ„Œแ…กแ†ผ.key

07 แ„Œแ…กแ„‡แ…กแ„‹แ…ด แ„ƒแ…กแ„‹แ…ฃแ†ผแ„’แ…กแ†ซ แ„แ…ณแ†ฏแ„…แ…ขแ„‰แ…ณ.key

3 S Q L A n t i p a t t e r n s Trees/intro/parent.sql CREATE TABLE Comments ( comment_id SERIAL PRIMARY KEY, parent_id BIGINT UNSIGNED, comment TEXT

Remote UI Guide

chapter4

mytalk

(Humphery Kim) RAD Studio : h=p://tech.devgear.co.kr/ : h=p://blog.hjf.pe.kr/ Facebook : h=p://d.com/hjfactory :

,,,,,, (41) ( e f f e c t ), ( c u r r e n t ) ( p o t e n t i a l difference),, ( r e s i s t a n c e ) 2,,,,,,,, (41), (42) (42) ( 41) (Ohm s law),

ch09

PRO1_09E [์ฝ๊ธฐ ์ „์šฉ]

untitled

API STORE ํ‚ค๋ฐœ๊ธ‰๋ฐ API ์‚ฌ์šฉ๊ฐ€์ด๋“œ Document Information ๋ฌธ์„œ๋ช… : API STORE ์–ธ์–ด๋ณ„ Client ์‚ฌ์šฉ๊ฐ€์ด๋“œ์ž‘์„ฑ์ž : ์ž‘์„ฑ์ผ : ์—…๋ฌด์˜์—ญ : ๋ฒ„์ „ : 1 st Draft. ์„œ๋ธŒ์‹œ์Šคํ…œ : ๋ฌธ์„œ๋ฒˆํ˜ธ : ๋‹จ๊ณ„ : Docum

์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ์ž๋ฐ” 2 21์ผ ์™„์„ฑ - ์ตœ์‹ ๊ฐœ์ •ํŒ

DW ๊ฐœ์š”.PDF

01-OOPConcepts(2).PDF

์ž๋ฐ”-11์žฅN'1-502

Microsoft PowerPoint - RMI.ppt

I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r

No Slide Title

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜

[ ๋ชฉ์ฐจ ] 5.1 ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šคํ”„๋กœ๊ทธ๋ž˜๋ฐ๊ฐœ๋… 5.2 T-SQL T-SQL ๋ฌธ๋ฒ• 5.3 JAVA ํ”„๋กœ๊ทธ๋ž˜๋ฐ 2

Java


Secure Programming Lecture1 : Introduction

Microsoft PowerPoint - 04-UDP Programming.ppt

IBM blue-and-white template

04์žฅ

Facebook API

6์ฃผ์ฐจ.key

๋‹จ๊ณ„

untitled

Transcription:

<JSTORM> Writing Enterprise Applications with Java 2 Platform, Enterprise Edition - part7 JSTORM http://wwwjstormpekr

Revision: <10> <2001/04/29> Document Information Document title: Writing Enterprise Applications with Java 2 Platform, Enterprise Edition - part7 Document file name: Revision number: <10> Issued by: Issue Date: <2001/04/29> Status: Writing_Enterprise_Applications_7_JunoYoon < > junoyoon@orgionet final Content Information Audience Abstract Reference Benchmark information BMP Writing Enterprise Applications with JavaTM Platform, Enterprise Edition By Monica Pawlan (http://developerjavasuncom/developer/online Training/J2EE/Intro/) JSTORM <2/2>

Revision: <10> <2001/04/29> Table of Contents Lesson 7 - JDBC technology BMP(Bean Managed Persistence)4 Bean 4 BonusBean 6 CalcBean JBonusBean 13 14 19 20 21 JSTORM <3/3>

Revision: <10> <2001/04/29> SQL Cloudscape, Bean CMP(Container Managed Persistence), CMP (override) BMP(Bean Managed Pers istence) BMP CMP SQL SQL Bean BMP Bean 1 BMP J2EE Bean Bean BonusBean Container Managed Bean BonusBean getbonus, getsocsec, bonus socsec Bean ejbcreate BMP JDBC SQL Bean CalcBean calcbean getrecord 2 JSTORM <4/4>

Revision: <10> <2001/04/29> BonusBean getbonus getsocsec 2 CalcBean BonusBean B ean setentitycontext:, EntityContext Bean EntityContext Bean, Context Bean setentitycontext setse ssioncontext ejbcreate: Bean Create Create (signature) ejbcreate ejbpostcreate: ejbcreate ejbcreate ejbpostcreate ejbpostcreate ejbpostcreate Bean Bean ejbremove: Bean J2EE unsetentitycontext: ejbremove Bean, unsetentitycontext Bean Bean unsetsessioncontext ejbfindbyprimarykey: Bean findbyprimaryk ey, Bean (Signature) ejbfind <type> ejbload ejbstore: set Bean (set) (get), ejbstore, ejbload finder ejbload Bean ejbactivate ejbpassivate:, Bean A ctivation( ) Passvate( ) Swap Bean Swapping JSTORM <5/5>

Revision: <10> <2001/04/29> ejbpassiv ate Bean Connection Close ejbactivate Open BonusBean Bean Management Persistence BonusBean Persistence Import InitialContext, DataSource Connection PreparedStatement SQL Request ResultSet query FinderException SQLException, package Beans; import javarmiremoteexception; import javaxejbcreateexception; import javaxejbentitybean; import javaxejbentitycontext; import javaxnaminginitialcontext; import javaxsqldatasource; import javasqlconnection; import javasqlpreparedstatement; import javasqlresultset; import javaxejbfinderexception; import javasqlsqlexception; java:comp/env/jdbc/bonusdb (resourse reference), Deploy Bean J2EE Cloudscape (CloudscapeDB) (alias) CloudscapeDB BONUS, jdbc/bonusd B jdbc/cloudscapedb public class BonusBean implements EntityBean { private EntityContext context; JSTORM <6/6>

Revision: <10> <2001/04/29> private Connection con; private String dbname = "java:comp/env/jdbc/bonusdb"; private InitialContext ic = null; private PreparedStatement ps = null; private double bonus; private String socsec; Systemoutprintln Systemoutprintln public double getbonus() { Systemoutprintln("getBonus"); return thisbonus; public String getsocsec() { Systemoutprintln("getSocSec"); return thissocsec; Systemoutprintln, ejbcreate ejbcreate Signature CreateException Remote- Exception SQLException ejbcreate SQL (SQL ) SQLException, RemoteException Primary key String Bonus Primary Key Bonus public String ejbcreate(double bonus, String socsec) throws RemoteException, CreateException, SQLException { thissocsec=socsec; JSTORM <7/7>

Revision: <10> <2001/04/29> thisbonus=bonus; Systemoutprintln("Create Method"); try { //Establish database connection ic = new InitialContext(); DataSource ds = (DataSource) iclookup(dbname); con = dsgetconnection(); //Use PreparedStatement to form SQL INSERT statement //to insert into BONUS table ps = conpreparestatement( "INSERT INTO BONUS VALUES (?,? ) "); //Set 1st PreparedStatement value marked by?, with //socsec and the 2nd value marked by? ) with bonus pssetstring(1, socsec); pssetdouble(2, bonus); psexecuteupdate(); catch (javaxnamingnamingexception ex) { exprintstacktrace(); finally { //Close database connection psclose(); conclose(); //Return primary key return socsec; ejbpostcreate ejbcreate Signature public void ejbpostcreate(double bonus, String socsec) throws RemoteException, CreateException, SQLException { Systemoutprintln("Post Create"); ejbfindbyprimarykey BonusBean CMP ejbfindbyprimarykey CMP Primary Key, Pri mary Key BonusBean BMP, JSTORM <8/8>

Revision: <10> <2001/04/29> SQLException CMP RemoteException FinderExcepti on Find Operation ejbfindbyprimarykey Primary Key Primary Key Primary Key ejbload bonus socsec BonusBean Primary Key Type String Bonus, Primart Key Bonus public String ejbfindbyprimarykey(string primarykey) throws RemoteException, FinderException, SQLException { Systemoutprintln("Find by primary key"); try { //Establish database connection ic = new InitialContext(); DataSource ds = (DataSource) iclookup(dbname); con = dsgetconnection(); //Use PreparedStatement to form SQL SELECT statement //to select from BONUS table ps = conpreparestatement( "SELECT socsec FROM BONUS WHERE socsec =? "); pssetstring(1, primarykey); //Use ResultSet to capture SELECT statement results ResultSet rs = psexecutequery(); //If ResultSet has a value, the find was successful, //and so initialize and return key if(rsnext()) { key = primarykey; else { Systemoutprintln("Find Error"); catch (javaxnamingnamingexception ex) { exprintstacktrace(); finally { //Close database connection psclose(); conclose(); //Return primary key return key; ejbload JSTORM <9/9>

Revision: <10> <2001/04/29> ejbfindbyprimarykey Bean public void ejbload() { Systemoutprintln("Load method"); try { //Establish database connection ic = new InitialContext(); DataSource ds = (DataSource) iclookup(dbname); con = dsgetconnection(); //Use PreparedStatement to form SQL SELECT statement //to select from BONUS table ps = conpreparestatement( "SELECT * FROM BONUS WHERE SOCSEC =? "); pssetstring(1, thissocsec); //Use ResultSet to capture SELECT statement results ResultSet rs = psexecutequery(); //If ResultSet has a value, the find was successful if(rsnext()){ thisbonus = rsgetdouble(2); else { Systemoutprintln("Load Error"); catch (javasqlsqlexception ex) { exprintstacktrace(); catch (javaxnamingnamingexception ex) { exprintstacktrace(); finally { try { //Close database connection psclose(); conclose(); catch (javasqlsqlexception ex) { exprintstacktrace(); ejbstore Bean (set) (get) Bean public void ejbstore() { systemoutprintln("store method"); try { JSTORM <10/10>

Revision: <10> <2001/04/29> //Establish database connection DataSource ds = (DataSource) iclookup(dbname); con = dsgetconnection(); //Use PreparedStatement to form SQL UPDATE statement //to update BONUS table ps = conpreparestatement( "UPDATE BONUS SET BONUS =? WHERE SOCSEC =? "); //Set 1st PreparedStatement value marked by? with //bonus and the 2nd value marked by? ) with socsec pssetdouble(1, bonus); pssetstring(2, socsec); int rowcount = psexecuteupdate(); catch (javaxnamingnamingexception ex) { exprintstacktrace(); catch (javasqlsqlexception ex) { exprintstacktrace(); finally { try { //Close database connection psclose(); conclose(); catch (javasqlsqlexception ex) { exprintstacktrace(); ejbremove Bean JavaBean BonusBean ejbremove ejbremoveejbremove socsec Primary Key (socsec), Bean public void ejbremove() throws RemoteException { Systemoutprintln("Remove method"); try { DataSource ds = (DataSource) iclookup(dbname); con = dsgetconnection(); ps = conpreparestatement( "DELETE FROM BONUS WHERE SOCSEC =? "); pssetstring(1, socsec); psexecuteupdate(); catch (javasqlsqlexception ex) { JSTORM <11/11>

Revision: <10> <2001/04/29> exprintstacktrace(); catch (Exception ex) { exprintstacktrace(); try { psclose(); conclose(); catch (javasqlsqlexception ex) { exprintstacktrace(); ejbactivate Bean, Bean Bean Temporary Bean, Bean EntityContext getprimarykey Bean Primary Key, Primary Key Bean public void ejbactivate() { Systemoutprintln("Activate method"); socsec = (String) contextgetprimarykey(); ejbpassivate Bean, Bean Bean Temporary Bean, Bean Bean Primary Key null public void ejbpassivate() { Systemoutprintln("Passivate method"); socsec = null; setentitycontext Bean Context ejbactivate Context getprimarykey Bean public void setentitycontext( javaxejbentitycontext ctx){ Systemoutprintln("setEntityContext me thod"); JSTORM <12/12>

Revision: <10> <2001/04/29> thiscontext = ctx; unsetentitycontext Bean ejbremove Context null unsetentitycontext Bean public void unsetentitycontext(){ Systemoutprintln("unsetEntityContext method"); ctx = null; CalcBean JBonusBean BonusBean SQL BonusBean CalcBeancalcbonus javasqlsqlexception public class CalcBean implements SessionBean { BonusHome homebonus; public Bonus calcbonus(int multiplier, double bonus, String socsec) throws RemoteException, SQLException, CreateException { Bonus thebonus = null; double calc = (multiplier*bonus); try { InitialContext ctx = new InitialContext(); Object objref = ctxlookup("bonus"); homebonus = (BonusHome) PortableRemoteObjectnarrow( objref, BonusHomeclass); catch (Exception NamingException) { NamingExceptionprintStackTrace(); //Store data in entity Bean thebonus=homebonuscreate(calc, socsec); return thebonus; JSTORM <13/13>

Revision: <10> <2001/04/29> JBonusBean CalcBean SQLException DuplicateKeyExcpetion CreateException catch (javaxejbcreateexception e) public double getbonusamt() { if(strmult! = null){ Integer integermult = new Integer(strMult); int multiplier = integermultintvalue(); try { double bonus = 10000; thecalculation = homecalccreate(); Bonus thebonus = thecalculationcalcbonus( multiplier, bonus, socsec); Bonus record = thecalculationgetrecord( socsec); bonusamt = recordgetbonus(); socsec = recordgetsocsec(); catch (javasqlsqlexception e) { thisbonusamt = 00; thissocsec = "000"; thismessage = egetmessage(); catch (javaxejbcreateexception e) { thisbonusamt = 00; thissocsec = "000"; thismessage = egetmessage(); catch (javarmiremoteexception e) { thisbonusamt = 00; thissocsec = "000"; thismessage = egetmessage(); genxml(); return thisbonusamt; else { thisbonusamt = 0; thismessage = "None "; return thisbonusamt; BMP, CloudscapeDB BONUS CMP, createtablesql cloudtablesh (Unix) JSTORM <14/14>

Revision: <10> <2001/04/29> cloudtablebat (Windows/NT) 2, createtablesql ~/J2EE/Beans cloudtablesh (Unix) cloudtablebat (Windows/NT) ~/J2EE, Beans, Unix: /cloudtablesh Windows/NT: \cloudtablebat createtablesql drop table bonus; create table bonus (socsec varchar(9) constraint pk_bonus primary key, bonus decimal(10,2)); exit; cloudtablebat rem cloudtablebat rem Creates BONUS table in CloudscapeDB rem rem Place this script in ~\J2EE rem To run: cd ~\J2EE\cloudTablesh rem rem Change this next line to point to *your* rem j2sdkee1 21 installation rem set J2EE_HOME=\home \monicap\j2ee\j2sdkee1 21 rem rem Everything below goes on one line java -DijconnectionCloudscapeDB= jdbc:rmi://localhost:1099/jdbc:cloudscape: CloudscapeDB\;create=true -Dcloudscapesystemhome= JSTORM <15/15>

Revision: <10> <2001/04/29> %J2EE_HOME%\cloudscape -classpath %J2EE_HOME%_ib\cloudscape\clientjar; %J2EE_HOME%_ib\cloudscape\ toolsjar; %J2EE_HOME%_ib\cloudscape\cloudscapejar; %J2EE_HOME%_ib\cloudscape\RmiJdbcjar; %J2EE_HOME%_ib\cloudscape_icensejar; %CLASSPATH% -ms16m -mx32m COMcloudscapetoolsij createtablesql cloudtablesh #! /bin/sh # # cloudtablesh # Creates BONUS table in CloudscapeDB # # Place this script in ~\J2EE # To run: cd ~\J2EE\cloudTablesh # # Change this next line to point to *your* # j2s dkee1 21 installation # J2EE_HOME=/home/monicap/J2EE/j2sdkee1 2 # # Everything below goes on one line java -DijconnectionCloudscapeDB=jdbc:rmi: //localhost:1099/jdbc:cloudscape:cloudscapedb\; create=true -Dcloudscapesystemhome= $J2EE_HOME/cloudscape -classpath $J2EE_HOME/lib/cloudscape/clientjar: $J2EE_HOME/lib/cloudscape/toolsjar: $J2EE_HOME/lib/cloudscape/cloudscapejar: $J2EE_HOME/lib/cloudscape/RmiJdbcjar: $J2EE_HOME/lib/cloudscape/licensejar: ${CLASSPATH -ms16m -mx32m COMcloudscapetoolsij createtablesql JAR Bean Bean JAR Bean 1 JAR, 2BeansJar JAR CalcBean Bean JAR ( ) BonusBean, JSTORM <16/16>

Revision: <10> <2001/04/29> 2 JAR Bean, BonusBean J AR JAR BonusBean JAR [EJB JAR]: [Add] ([Contents] ) Beans [Bonusclass] [Add] [BonusBeanclass] [Add] [BonusHomeclass] [Add] [Enterprise Bean JAR classes]: Beans/Bonusclass,Beans/BonusHomeclass Beans/BonusBeanclass [OK] [EJB JAR]: [Next] [General]: BeansBonusBean,BeansBonusHome, Be ansbonus BonusBean [Entity] [Next] [Entity Settings]: [Bean-managed persistence] Primary Key javalangstring Primary Key Private Primary Key [Next] JSTORM <17/17>

Revision: <10> <2001/04/29> [Environment Entries]: [Next] Bean ( ) [Enterprise Bean References]: [Next] [Resource References]: [Add] [Coded Name] 1 jdbc/bonusdb [Type] ja vaxsqldatasource [Authentication] Container [Next] [Security]: [Next] Bean Security Role [Transaction Management]: [Container-managed transactions] ( ) create,findbyprimarykey, getbonus getsocsec requ ired Commit, Enterprise JavaBeans Developer's Guid e Chapter 6 [Next] [Review Settings]: [Finish] [Inspecting] : 2BeansApp [JNDI names] CalcBean calcs BonusBean bonus, jdbc/bonusdb jdbc/cloud scape JSTORM <18/18>

Revision: <10> <2001/04/29> (Verifier) Verifier Bean compiler - Verify Save, Verify : 2BeansApp,[Tools] [Verifier] [OK] Verifier - 12 1,tests appweburi, Deploy WAR WAR war (extension), J2EE : [Tools] [Deploy Application] [Deploy BonusApp] J2EE [Return Client Jar], Bean JAR [Next] CalcBean JNDI calcs,bonusbean JNDI bonus, BonusDB JNDI jdbc/cloudscape JNDI Ret urn [Next] Context Root JSPRoot Return [Next] [Finish] JSTORM <19/19>

Revision: <10> <2001/04/29> [OK] Web 8000 bonusjsp http://localhost:8000/jsproot/bonusjsp Deploy JSP [Submit] Bonusjsp HTML, J2EE Cloudscape, Cannot find principal mapping information for data source with JNDI name jdbc/cloudscape J2EE ( ) setentitycontext method Create Method Post Create setentitycontext method Find by primary key Load method getbonus Store method Load method getsocsec Store method Find by primary key Load method getsocsec Store method Load method getbonus Store method <? xml version="1 0"? > <report> JSTORM <20/20>

Revision: <10> <2001/04/29> <bonuscalc ssnum="777777777" bonusamt="300 0" /> </report> Bean BMP http://javasuncom/j2ee/j2sdkee/techdocs/guides/ejb/html/entityfmhtml, http://javasuncom/j2ee/j2sdkee/techdocs/guides/ejb/html/databasefmhtml JSTORM <21/21>