?11? Oracle J2EE ?????JDeveloper - PowerPoint PPT Presentation

1 / 98
About This Presentation
Title:

?11? Oracle J2EE ?????JDeveloper

Description:

11 Oracle J2EE JDeveloper 11.1 Java2 J2EE 11.2 Oracle9i J2EE OC4J 11.3 Oracle9i Java BC4J ... – PowerPoint PPT presentation

Number of Views:109
Avg rating:3.0/5.0
Slides: 99
Provided by: Leo49
Category:

less

Transcript and Presenter's Notes

Title: ?11? Oracle J2EE ?????JDeveloper


1
?11? Oracle J2EE?????JDeveloper
2
1???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

4
11.1 Java2???(J2EE)
  • ??J2EE??? v
  • ??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

7
1?????????(?)
  • ???????????/????
  • ??????????????????
  • ?????????????????????
  • ????????,???????

8
1?????????(?)
  • ??/???(Client/Server, C/S)??????
  • ?????????????,??????
  • ??????????????????????,?????????,???????????????,?
    ??????????
  • ?????????????,?????????????????,????????
  • ???????????,????????????

9
??J2EE???
  • 1?????????
  • 2?Web?????? v
  • 3??????J2EE
  • 4????J2EE

10
2? Web??????(?)
  • ???Web?????????????

11
2? Web??????(?)
  • ???Web?????????????
  • WWW?????????
  • Browser-based ????? Internetworking(????)
  • ??????????????
  • ??????????UI??,??
  • ????????,?????,???????????
  • ??????????????CGI(C/C, VB, Perl??),ISAPI ,NSAPI

12
2? Web??????(?)
  • N????????
  • ??N?????,??????,????????Web???????????
    ?????????????,??????????????1?N?????,????????????
    ??

13
2? Web??????(?)
  • N?( N-tier )
  • WS Web Server
  • AS Application Server

14
2? Web??????(?)
  • N????????
  • ?1??N?,?????
  • ??????????,?????????
  • ???????????,???????????
  • ??????,??????????,?????????
  • ???????
  • ???????????????
  • ?????????(IIOP?IIOPS?HTTP?HTTPS?CGI?IS
    API?NSAPI),?????????,????,?????

15
2? Web??????(?)
  • ???????????
  • ????????????,????????????????
  • ???????????????????,??????????????,????
  • ????????????????????,??????????????????,??????????
    ?,?????

16
??J2EE???
  • 1?????????
  • 2?Web??????
  • 3??????J2EE v
  • 4????J2EE

17
3??????J2EE
  • ??????????????????????
  • ???
  • ???
  • ???????
  • ??Web
  • ???
  • ????????
  • ???
  • ???
  • ???
  • ??????
  • ???
  • ???
  • ???

18
3??????J2EE
  • ???????
  • ?????????????????????????????????????????????,??
    ????????????????????????????????
  • ?????????,???????????????,?Intel?GE?Wal-Mart????
    ??eBay???
  • ?????????????,????????????????????????????????????
    ????
  • ????????????????????????????

19
3??????J2EE
  • ????????????
  • ????????,??????????????,????????,???????,?????????
    ???,???????????,????????????????
  • ????????????????????,?????????????????,???????????
    ??????????????????????,?????????????????????,?????
    ????????

20
3??????J2EE
  • J2EE??????????????
  • ???????
  • ???????????????
  • ?????????????API(??????Application Programming
    Interface)
  • ???????????????

21
3??????J2EE
  • J2EE????????????
  • ???????
  • ?????
  • JSP(Java Server Pages)
  • EJB(Enterprise JavaBeans)
  • ??????
  • XML,JDBC,RMI-IIOP

22
??J2EE???
  • 1?????????
  • 2?Web??????
  • 3??????J2EE
  • 4????J2EE v

23
4????J2EE
  • Open and standard based platform for developing,
    deploying and managing n-tier, Web-enabled,
    server-centric enterprise applications
  • ???????????,??????????N??????Web?,?????????????

24
? ?
  • ??J2EE???
  • ??J2EE??? v

25
??J2EE???
  • 1?What is Java 2 Platform v
  • 2?J2EE?????
  • 3?J2EE?????????

26
1?What is Java 2 Platform
  • Java?????????????????
  • Java??????????????-OaK,???1991?Sun?????????,????
    ????????????????
  • 1994?Internet????,1995?NetScape???Java????????,???
    ?Java?????Applet??????????,Java?????

27
1?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?

28
1?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???

29
1?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?????????

31
2?J2EE?????
J2EE???????????????????,???????????????????
,???????????(EIS)?
32
2?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

34
3?J2EE?????????
  • J2EE??

35
3?J2EE?????????
  • J2EE??????
  • J2EE??????????????????????????????????
  • ??J2EE?????????????EJB???Web??,???????????
  • ????
  • ??(component)??????????????
  • J2EE??
  • ????? ????????Applet
  • ????Web?? Java Servlet?JSP
  • ????????? Enterprise JavaBeans

36
3?J2EE?????????
  • J2EE??
  • ?????????????????,????????????????J2EE????????????
    ??, J2EE??????????????????,?????????????????????
  • ????????????????????,????????????????????
  • ????????,??????????J2EE API
  • ???J2EE?????????????????

37
3?J2EE?????????
  • J2EE????
  • ???????????java????
  • Applet???Applet????????
  • Web????Web??( JSP???Servlet??)
  • ???????EJB??

38
3?J2EE?????????
  • J2EE??????
  • ?????J2EE?????????J2EE???,??11.2???

39
3?J2EE?????????
  • J2EE??????
  • J2EE????J2EE???????,???EJB???Web???

40
3?J2EE?????????
J2EE????
41
3?J2EE?????????
42
3?J2EE?????????
  • J2EE?????

????
????
  • ???
  • ????
  • ???
  • ???
  • ???
  • ??????
  • ??
  • JSP, Servlet, Applet
  • ????
  • EJB
  • ??????
  • EJB

43
3?J2EE?????????
  • J2EE????13?
  • EJB? CORBA? RMI?JSP?
  • Java Servlet?JavaBean?JDBC
  • XML?JMS

44
3?J2EE?????????
  • EJB J2EE???
  • EJB (Enterprise JavaBeans)
  • EJB?????????,????Java???????????,??????????EJB????
  • ??EJB,Java?????????????????????,??????????????????
  • ??EJB???????????,??EJB??????EJB?JDBC???,??????????
    ??????????
  • EJB??????????????????????????,??EJB???????????????
    ????????????,????????????????,???????????????
  • EJB???????????????????????????

45
3?J2EE?????????
  • EJB J2EE???
  • EJB???
  • EJB?????????????????,?EJB????????????
    ?????????????????????? ??????

46
3?J2EE?????????
  • EJB J2EE???
  • EJB????
  • ??EJB????????????,????????????EJB???????????
    ????,???????????,?????(?CORBA??)??????EJB?????????
    ?JNDI??????TS?????????
  • EJB????
  • ??EJB???EJB,??EJB??????????,??????????
    ????????EJB???????,???????????????,????EJB???????
    ???????

47
3?J2EE?????????
  • J2EE????
  • EJB? CORBA? RMI?JSP?
  • Java Servlet?JavaBean?JDBC?XML?JMS

48
3?J2EE?????????
  • CORBA??????-ORB

49
3?J2EE?????????
  • CORBA??
  • CORBA(Common Object Request Broker
    Architecture)????????????,??????,???????
  • ????????,??????????????????????????????(???????)??
    ???????(??????)?????,????????????????,????????????
    ??????????
  • ??????????IDL(Interface Definition
    Language,??????),IDL??????????,???????????(???)???

50
3?J2EE?????????
  • J2EE????
  • EJB? CORBA? RMI?JSP?
  • Java Servlet?JavaBean?JDBC?XML?JMS

51
3?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??????,????????????????

52
3?J2EE?????????
  • J2EE????
  • EJB? CORBA? RMI?JSP?
  • Java Servlet?JavaBean?JDBC?XML?JMS

53
3?J2EE?????????
  • JSP??
  • JSP??????????,??Java?Servlet????????????????,?????
    ??Java Servlet?
  • JSP(Java Server Pages)???HTML????????Java?????????
    ???????????????Java??????,??????HTML?????????????
  • ??????,???,?Servlet????,????Servlet???API,???Serv
    let????
  • ?????JavaBeans????,???????????????

54
3?J2EE?????????
  • JSP?ASP???(?)
  • ??
  • ??????????????,?????????????
  • ????????HTML????????,???HTML ???????????,?????????
    ?????HTML???????????????,???????????????

55
3?J2EE?????????
  • JSP?ASP???(?)
  • ??
  • JSP??Sun???????,???JavaServlet????java???Web????,?
    ????????????????????????ASP?MS???????,???MS??????,
    ???????,????????
  • ASP??????? VBScript ???????,?JSP ????Java?
  • ASP ? JSP ???????????????????????????????????????
    ASP ?, VBScript ??? ASP ??????? JSP ?,??????
    Servlet ?? Java ?????,????????? JSP ????????????

56
3?J2EE?????????
  • J2EE????
  • EJB? CORBA? RMI?JSP?
  • Java Servlet?JavaBean?JDBC?XML?JMS

57
3?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?

58
3?J2EE?????????
  • Java Servlet?JSP???
  • ??
  • ??????Java???,??????Java?????(????????OO
    ),?????Java???API?
  • ????????JSP????JSP?????Servlet????????
  • ???J2EE????????????,???????????

59
3?J2EE?????????
  • Java Servlet?JSP???
  • ??
  • ???????Servlets??????Web?????Java????JSP???,?????
    ?????
  • ???????Servlet??????????????,?JSP?????????????????
    ?
  • ??JSP????????????????????????

60
3?J2EE?????????
  • J2EE????
  • EJB? CORBA? RMI?JSP?
  • Java Servlet?JavaBean?JDBC?XML?JMS

61
3?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???????????
    ??,???????????????????????

62
3?J2EE?????????
  • J2EE????
  • EJB? CORBA? RMI?JSP?
  • Java Servlet?JavaBean?JDBC?XML?JMS

63
3?J2EE?????????
  • JDBC??
  • JDBC(Java Database Connectivity)???API,???????????
    ??Java??,????????????????????????????
  • JDBC???????????????
  • JDBC API???????????????????,?ODBC??,JDBC??????????
    ????
  • JDBC???????????????JDBC?????????JDBC??????????,???
    ?????????????????????????,???????????????

64
3?J2EE?????????
  • J2EE????
  • EJB? CORBA? RMI?JSP?
  • Java Servlet?JavaBean?JDBC?XML?JMS

65
3?J2EE?????????
  • XML??
  • XML(Extensible Markup Language)??????????????????,
    ?????????????????
  • XML????Java??????,????Java?????????????????Java?XM
    L???,??????????????????????
  • J2EE?????????XML,?????????XML?????????,?????XML???
    ???????????????????

66
3?J2EE?????????
  • J2EE????
  • EJB? CORBA? RMI?JSP?
  • Java Servlet?JavaBean?JDBC?XML?JMS?

67
3?J2EE?????????
  • JMS??
  • JMS(Java ????,Java Message
    Service)????? Java???,???????????????????? Java
    ????,????????????(??/??????)????JMS
    API????????????? ? JMS??????????????????

68
3?J2EE?????????
  • ??????

??????? - ??????? - ????????????????
-????????????,?????????????????
????????????,?????????????????
69
3?J2EE?????????
  • ??????

??????? -?????,?????????????
-????,????????????,????? ?????????????,???????????
????? -???????????????
-????,????????,???????,??Messaging
System???????????
70
3?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?
71
3?J2EE?????????
  • J2EE???????????
  • EJB? CORBA? RMI?JSP?
  • Java Servlet?JavaBean?JDBC?XML?JMS?
  • ???????????????????
  • CORBA? RMI?XML?JMS?

72
? ?
  • ??J2EE??? v
  • ??J2EE??? v

73
??
  • ????J2EE???AS

74
??!
75
11.2 Oracle9i?J2EE???OC4J
  • ????? Oracle9iAS ??J2EE??OC4J,????JSP?Servlet?Ent
    erprise JavaBeans?Web??????J2EE??
  • ????Oracle???Oracle9i JDeveloper??????J2EE??????
    ???????
  • ????????Java?????? ,Oracle??????????Java????????
    ????????????????

76
  • ?Java?????
  • SQLJOracle

???
77
11.3 Oracle9i Java????(BC4J)
  • BC4J??????????????,??????????SQL??Java??
  • BC4J???????????????,?????????????????????
  • ??BC4J?????????,???????????Java???????

78
BC4J????
79
BC4J???
  • BC4J???????3???
  • 1. ?????????
  • 2. ?????????
  • 3. ???????

80
1.?????????
  • ??(Entity)
  • ??(Attribute)
  • ??(Association)
  • ?(Domain)
  • ??(Property)

81
2. ?????????
  • ????(View Objects)
  • ?SQL???????????????????
  • ????(View Links)
  • ?????????????

82
3. ???????
  • ?(package)
  • ????
  • ???????????BC4J?????????

???
83
11.4 JDeveloper
  • ????????
  • ?????
  • ???????????
  • 100 Java ????
  • Oracle9i Java????
  • ??????????????
  • Java Servlet?JSP????Java Swing????????????????????

84
11.4 JDeveloper
  • 11.4.1 ????BC4J?????
  • 11.4.2 BC4J JSP????

???
85
11.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???????
  • ? ???????????,???????????????

???
89
11.4.2 BC4J JSP????
  • 1.BC4J JSP??????

90
2.??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????

91
3. ??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??.??????
Write a Comment
User Comments (0)
About PowerShow.com