Title: ?11? Oracle J2EE ?????JDeveloper
1?11? Oracle J2EE?????JDeveloper
21???J2EE?????J2EE????????Oracle9i?J2EE??
2?Oracle9i?J2EE??? Oracle9i Application Server
Containers for J2EE (OC4J) ?Oracle9i
Java????(Business Components for Java ,BC4J)???
3???Oracle9i J2EE?????????JDeveloper
4?????BC4J??J2EE???????
3? ?
- 11.1 Java2???(J2EE)
- 11.2 Oracle9i?J2EE???OC4J
- 11.3 Oracle9i Java????(BC4J)
- 11.4 JDeveloper
411.1 Java2???(J2EE)
5 ? ? ? ?
- ??????????????
- ?????,?PC???????????????????,???
???? - ?????????
- ???????????
- ???????????
- ???????????????
- ?? ?? ?? N?
1
2
3
1
2
3
1
2
3
1
2
3
4
6??J2EE???
- 1????????? v
- 2?Web??????
- 3??????J2EE
- 4????J2EE
71?????????(?)
- ??????????????????
- ?????????????????????
- ????????,???????
81?????????(?)
- ??/???(Client/Server, C/S)??????
- ?????????????,??????
- ??????????????????????,?????????,???????????????,?
?????????? - ?????????????,?????????????????,????????
- ???????????,????????????
9??J2EE???
- 1?????????
- 2?Web?????? v
- 3??????J2EE
- 4????J2EE
102? Web??????(?)
112? Web??????(?)
- WWW?????????
- Browser-based ????? Internetworking(????)
- ??????????????
- ??????????UI??,??
- ????????,?????,???????????
- ??????????????CGI(C/C, VB, Perl??),ISAPI ,NSAPI
122? Web??????(?)
- ??N?????,??????,????????Web???????????
?????????????,??????????????1?N?????,????????????
??
132? Web??????(?)
- N?( N-tier )
- WS Web Server
- AS Application Server
142? Web??????(?)
- ?1??N?,?????
- ??????????,?????????
- ???????????,???????????
- ??????,??????????,?????????
- ???????
- ???????????????
- ?????????(IIOP?IIOPS?HTTP?HTTPS?CGI?IS
API?NSAPI),?????????,????,?????
152? Web??????(?)
- ????????????,????????????????
- ???????????????????,??????????????,????
- ????????????????????,??????????????????,??????????
?,?????
16??J2EE???
- 1?????????
- 2?Web??????
- 3??????J2EE v
- 4????J2EE
173??????J2EE
- ??????????????????????
- ???
- ???
- ???????
- ??Web
- ???
- ????????
- ???
- ???
- ???
- ??????
- ???
- ???
- ???
183??????J2EE
- ???????
- ?????????????????????????????????????????????,??
???????????????????????????????? - ?????????,???????????????,?Intel?GE?Wal-Mart????
??eBay??? - ?????????????,????????????????????????????????????
???? - ????????????????????????????
193??????J2EE
- ????????????
- ????????,??????????????,????????,???????,?????????
???,???????????,???????????????? - ????????????????????,?????????????????,???????????
??????????????????????,?????????????????????,?????
????????
203??????J2EE
- J2EE??????????????
- ???????
- ???????????????
- ?????????????API(??????Application Programming
Interface) - ???????????????
213??????J2EE
- J2EE????????????
- ???????
- ?????
- JSP(Java Server Pages)
- EJB(Enterprise JavaBeans)
- ??????
- XML,JDBC,RMI-IIOP
22??J2EE???
- 1?????????
- 2?Web??????
- 3??????J2EE
- 4????J2EE v
234????J2EE
- Open and standard based platform for developing,
deploying and managing n-tier, Web-enabled,
server-centric enterprise applications - ???????????,??????????N??????Web?,?????????????
24? ?
25??J2EE???
- 1?What is Java 2 Platform v
- 2?J2EE?????
- 3?J2EE?????????
-
261?What is Java 2 Platform
- Java?????????????????
- Java??????????????-OaK,???1991?Sun?????????,????
???????????????? - 1994?Internet????,1995?NetScape???Java????????,???
?Java?????Applet??????????,Java?????
271?What is Java 2 Platform
- Java?????????????????
- Sun??1996?1???JDK(Java Development
Kits)1.0,1997?2???JDK1.1,Java????????? - 1998?12???JDK1.2,?Java 2 ??,??1999?6????????????
- ??J2SE??????1.4?
281?What is Java 2 Platform
- ?????Java???????
- J2ME - Java 2 Micro Edition????????????Java??(???
???PDA??????)? - J2SE - Java 2 Standard Edition????????????????Jav
a??? - J2EE - Java 2 Enterprise Edition?????????????Java
???J2EE???J2SE???
291?What is Java 2 Platform
- J2EE??
- J2EE?SUN??????????????????????????????????????????
??????? - ???????????????????????????,???????????????,??????
???????????(?Servlet???Servlet?????,EJB???EJB?????
),??????????????,??????????? - ????????????????????,?????????????????
30??J2EE???
- 1?What is Java 2 Platform
- 2?J2EE????? v
- 3?J2EE?????????
-
312?J2EE?????
J2EE???????????????????,???????????????????
,???????????(EIS)?
322?J2EE?????
- ???(Client Tier)??????????,??????GUI??????????
- ???(Middle Tier)??????????,?????????Web?????????
???????????????,??????????????,???????????? - ???????(Enterprise Information System,EIS
)??????,???????????????????,??????EIS??
33??J2EE???
- 1?What is Java 2 Platform
- 2?J2EE?????
- 3?J2EE????????? v
-
343?J2EE?????????
353?J2EE?????????
- J2EE??????
- J2EE??????????????????????????????????
- ??J2EE?????????????EJB???Web??,???????????
- ????
- ??(component)??????????????
- J2EE??
- ????? ????????Applet
- ????Web?? Java Servlet?JSP
- ????????? Enterprise JavaBeans
363?J2EE?????????
- J2EE??
- ?????????????????,????????????????J2EE????????????
??, J2EE??????????????????,????????????????????? - ????????????????????,????????????????????
- ????????,??????????J2EE API
- ???J2EE?????????????????
373?J2EE?????????
- J2EE????
- ???????????java????
- Applet???Applet????????
- Web????Web??( JSP???Servlet??)
- ???????EJB??
383?J2EE?????????
- J2EE??????
- ?????J2EE?????????J2EE???,??11.2???
393?J2EE?????????
- J2EE??????
- J2EE????J2EE???????,???EJB???Web???
403?J2EE?????????
J2EE????
413?J2EE?????????
423?J2EE?????????
????
????
- ???
- ????
- ???
- ???
- ???
- ??????
- ??
- JSP, Servlet, Applet
- ????
- EJB
- ??????
- EJB
433?J2EE?????????
- J2EE????13?
- EJB? CORBA? RMI?JSP?
- Java Servlet?JavaBean?JDBC
- XML?JMS
443?J2EE?????????
- EJB J2EE???
- EJB (Enterprise JavaBeans)
- EJB?????????,????Java???????????,??????????EJB????
- ??EJB,Java?????????????????????,??????????????????
- ??EJB???????????,??EJB??????EJB?JDBC???,??????????
?????????? - EJB??????????????????????????,??EJB???????????????
????????????,????????????????,??????????????? - EJB???????????????????????????
453?J2EE?????????
- EJB J2EE???
- EJB???
- EJB?????????????????,?EJB????????????
?????????????????????? ??????
463?J2EE?????????
- EJB J2EE???
- EJB????
- ??EJB????????????,????????????EJB???????????
????,???????????,?????(?CORBA??)??????EJB?????????
?JNDI??????TS????????? - EJB????
- ??EJB???EJB,??EJB??????????,??????????
????????EJB???????,???????????????,????EJB???????
???????
473?J2EE?????????
- J2EE????
- EJB? CORBA? RMI?JSP?
- Java Servlet?JavaBean?JDBC?XML?JMS
483?J2EE?????????
493?J2EE?????????
- CORBA??
- CORBA(Common Object Request Broker
Architecture)????????????,??????,??????? - ????????,??????????????????????????????(???????)??
???????(??????)?????,????????????????,????????????
?????????? - ??????????IDL(Interface Definition
Language,??????),IDL??????????,???????????(???)???
503?J2EE?????????
- J2EE????
- EJB? CORBA? RMI?JSP?
- Java Servlet?JavaBean?JDBC?XML?JMS
513?J2EE?????????
- RMI??
- RMI(Remote Method Invoke)????EJB?????????,????????
???,RMI????????????,?????????????????????????? - RMI?CORBA??
- ?????????????,Java RMI????????????Java????(?,?Java
RMI?,??????Java??,????IDL) - ??,CORBA????????,?Java RMI???Java????
- ??,CORBA??????,????????????????????,??????????????
??,??????CORBA????????????,??????????Java???,??Jav
a RMI????????????????????????Java???,??Java
RMI????????????? - ??,IIOP(Internet Inter-ORB Protocol,Internet??ORB?
?)?????Java RMI?CORBA??????,????????????????
523?J2EE?????????
- J2EE????
- EJB? CORBA? RMI?JSP?
- Java Servlet?JavaBean?JDBC?XML?JMS
533?J2EE?????????
- JSP??
- JSP??????????,??Java?Servlet????????????????,?????
??Java Servlet? - JSP(Java Server Pages)???HTML????????Java?????????
???????????????Java??????,??????HTML????????????? - ??????,???,?Servlet????,????Servlet???API,???Serv
let???? - ?????JavaBeans????,???????????????
543?J2EE?????????
- JSP?ASP???(?)
- ??
- ??????????????,?????????????
- ????????HTML????????,???HTML ???????????,?????????
?????HTML???????????????,???????????????
553?J2EE?????????
- JSP?ASP???(?)
- ??
- JSP??Sun???????,???JavaServlet????java???Web????,?
????????????????????????ASP?MS???????,???MS??????,
???????,???????? - ASP??????? VBScript ???????,?JSP ????Java?
- ASP ? JSP ???????????????????????????????????????
ASP ?, VBScript ??? ASP ??????? JSP ?,??????
Servlet ?? Java ?????,????????? JSP ????????????
563?J2EE?????????
- J2EE????
- EJB? CORBA? RMI?JSP?
- Java Servlet?JavaBean?JDBC?XML?JMS
573?J2EE?????????
- Java Servlet??
- Servlets(Server Applet)??????Web?????Java???,??
??Web??????? - Servlet?????Web????????,???????Java???,????????Jav
a API?,????????????JDBC API? - Servlets????Java??????????Web????????(?CGI,ISAPI?
),?????Java?????(????????OO)? - ????Servlets?Servlet API???????????????????,??Serv
lets?????????,?????CGI???????????????? - Servlets?????HTTP??????????,??????Sevlets?HTTP
Servlets?
583?J2EE?????????
- Java Servlet?JSP???
- ??
- ??????Java???,??????Java?????(????????OO
),?????Java???API? - ????????JSP????JSP?????Servlet????????
- ???J2EE????????????,???????????
593?J2EE?????????
- Java Servlet?JSP???
- ??
- ???????Servlets??????Web?????Java????JSP???,?????
????? - ???????Servlet??????????????,?JSP?????????????????
? - ??JSP????????????????????????
603?J2EE?????????
- J2EE????
- EJB? CORBA? RMI?JSP?
- Java Servlet?JavaBean?JDBC?XML?JMS
613?J2EE?????????
- JavaBean??
- JavaBean???Java?????,?????Microsoft?COM???
- JavaBean??Java???(Java Virtual Machine)??,??JavaBe
an??????JDK1.1???????? - ?Java???,??JavaBean??????Java?????,??JavaBean?????
???????????? - ???????,???????JavaBean???????????,???????????????
??????? - JavaBean?????????????,?AWT(Abstract window
Toolkit, ???????)???????JSP???,JavaBean???????????
??,???????????????????????
623?J2EE?????????
- J2EE????
- EJB? CORBA? RMI?JSP?
- Java Servlet?JavaBean?JDBC?XML?JMS
633?J2EE?????????
- JDBC??
- JDBC(Java Database Connectivity)???API,???????????
??Java??,???????????????????????????? - JDBC???????????????
- JDBC API???????????????????,?ODBC??,JDBC??????????
???? - JDBC???????????????JDBC?????????JDBC??????????,???
?????????????????????????,???????????????
643?J2EE?????????
- J2EE????
- EJB? CORBA? RMI?JSP?
- Java Servlet?JavaBean?JDBC?XML?JMS
653?J2EE?????????
- XML??
- XML(Extensible Markup Language)??????????????????,
????????????????? - XML????Java??????,????Java?????????????????Java?XM
L???,?????????????????????? - J2EE?????????XML,?????????XML?????????,?????XML???
???????????????????
663?J2EE?????????
- J2EE????
- EJB? CORBA? RMI?JSP?
- Java Servlet?JavaBean?JDBC?XML?JMS?
673?J2EE?????????
- JMS??
- JMS(Java ????,Java Message
Service)????? Java???,???????????????????? Java
????,????????????(??/??????)????JMS
API????????????? ? JMS??????????????????
683?J2EE?????????
??????? - ??????? - ????????????????
-????????????,?????????????????
????????????,?????????????????
693?J2EE?????????
??????? -?????,?????????????
-????,????????????,????? ?????????????,???????????
????? -???????????????
-????,????????,???????,??Messaging
System???????????
703?J2EE?????????
- J2EE??????
- EJB? CORBA? RMI?JSP?JavaServlet?
JavaBean?JDBC? - XML?JMS?
?????????????API JNDI(Java Naming and
Directory Interface)?
JMAPI(Java Management API)? JTS/JTA(Java
Transaction Service/API)? Java Security
API?
713?J2EE?????????
- J2EE???????????
- EJB? CORBA? RMI?JSP?
- Java Servlet?JavaBean?JDBC?XML?JMS?
- ???????????????????
- CORBA? RMI?XML?JMS?
72? ?
73??
74??!
7511.2 Oracle9i?J2EE???OC4J
- ????? Oracle9iAS ??J2EE??OC4J,????JSP?Servlet?Ent
erprise JavaBeans?Web??????J2EE?? - ????Oracle???Oracle9i JDeveloper??????J2EE??????
??????? - ????????Java?????? ,Oracle??????????Java????????
????????????????
76???
7711.3 Oracle9i Java????(BC4J)
- BC4J??????????????,??????????SQL??Java??
- BC4J???????????????,?????????????????????
- ??BC4J?????????,???????????Java???????
78BC4J????
79BC4J???
- BC4J???????3???
- 1. ?????????
- 2. ?????????
- 3. ???????
801.?????????
- ??(Entity)
- ??(Attribute)
- ??(Association)
- ?(Domain)
- ??(Property)
812. ?????????
- ????(View Objects)
- ?SQL???????????????????
- ????(View Links)
- ?????????????
-
823. ???????
- ?(package)
- ????
- ???????????BC4J?????????
???
8311.4 JDeveloper
- ????????
- ?????
- ???????????
- 100 Java ????
- Oracle9i Java????
- ??????????????
- Java Servlet?JSP????Java Swing????????????????????
8411.4 JDeveloper
- 11.4.1 ????BC4J?????
- 11.4.2 BC4J JSP????
???
8511.4.1 ????BC4J?????
- ???BC4J???????????????
- ?????????????
- ??????????
- ????????
- ??????????
86??BC4J??????????????
87??BC4J??????????
- 1. ????????????????
- 2. ?????Oracle JDBC???
- 3. ??????BC4J??
- 4. XML???Java??
- 5. ????????
88??????BC4J??
- (1)???????Mybc4jWS.jws,???????????Mybc4jPR.jpr
- (2)??Business Components?,??Mybc4jPR.jpr,??New
Business Components Package,??????BC4J???? - ? ???????????????Entity Objects mapped to
database schema objects????? - ? ???????????????????Oracle9i???????JDBCConnectio
n1,?????SCOTT,??tiger??????? - ? ???????????,???????????????
???
8911.4.2 BC4J JSP????
902.??JSP????
- (1) ??BC4J JSP??? MyJSP.jpr???????BC4J JSP?? .
Categories???JSP Business Components?? ,
Items???Complete JSP Application?? - (2) BC4J JSP??
- ????????
- ???????????
- ????????????JSP??
- ??????????????JSP??????
- (3) ??BC4J JSP??HTML???GIF????????JSP????
913. ??BC4J JSP??
- (1)???OC4J
- ? ???OC4J??????J2EE????,??????Oracle9i
JDeveloper?J2EE???? ? - OC4J????J2EE?? ?,????oc4j_extended.zip????????????
,???DOS????????? - CD\ltoc4j_install-dirgt\j2ee\home
- java jar oc4j.jar install
- OC4J?? ?
- CD\ltOracle9i JDeveloper_rootgt/j2ee/home
- java jar oc4j.jar install
92(1)???OC4J
- ? ??OC4J
- ????????Java -jar oc4j.jar
- ?????????java-jar oc4j.jar-config/mypath/server.x
ml - ? ??OC4J
- Java -jar admin.jar ormi //localhost admin
ltpasswordgt -shutdown force - ? ??OC4J
- ??IE??Netscape???,??????http//localhost8888/
93(2)??OC4J??
- ? ??OC4J
- ? ??Web??OC4J
- ???Web??????
94(3)??OC4J JSP??
- BC4J JSP???????,??????????MyJSP.jpr?????,??main.ht
ml???Run main.html??OC4J JSP??,??????11.9??
95??EmpView1?????Browse?????,???????11.10??
?11.10 EmpView1??????
96??Edit??,??????11.11??
?11.11 EmpView1????????
97?Empno(???)???7369,??Search??,???????11.12??
?11.12 EmpView1????????
98??FkDeptnoLink??????????,??????11.13??
???
?11.13??.??????