Professional Documents
Culture Documents
Mc ch
Gii thiu tng quan v cng ngh J2EE. Bit cc thnh phn J2EE
J2EE l g?
Challenges Portability Diverse Environments Time-to-market Core Competence Assembly Integration Key Technologies J2SE J2EE JMS Servlet JSP Connector XML Data Binding XSLT Products App Servers Web Servers Components Databases Object to DB tools
J2EE l g?
Nn tng cng ngh chun v m cho vic:
Pht trin, trin khai, v qun l Cc ng dng ln da vo cc thnh phn, qun l tp trung, dng web, n tng.
Workgroup Server
High-End Server
Personal Profile
JVM
Java EE 4 APIs
J2SE 1.4 (improved) JAX-RPC (new) Web Service for J2EE J2EE Management J2EE Deployment JMX 1.1 JMS 1.1 JTA 1.0 Servlet 2.4 JSP 2.0 EJB 2.1 JAXR Connector 1.5 JASS JAXP 1.2 JavaMail 1.3 JAF 1.0
Java EE 5
JAX-WS 2.0 & JSR 181 Java Persistence EJB 3.0 JAXB 2.0 JavaSever Faces 1.2 new to Platform JSP 2.1 Unification w/ JSF 1.2 StAX Pull Parser new to Platform
Servlet l g?
Cc i tng Java m n k tha chc nng ca HTTPServer To ni dung ng. Mt s thay th tt CGI, NSAPI, ISAPI, ..
Hiu qu c lp Platform v server. Qun l Session Da trn ngn ng Java
Servlet v CGI
Request CGI1 Request CGI2 Request CGI1 Request Servlet1 Request Servlet2 JVM Request Servlet1 Servlet2 Child for CGI1
JSP l g?
Cho php tch bit x l nghip v vi vic trnh by giao din.
Trnh by dng HTML hoc XML. X l nghip v trnh by dng Java Bean hoc custom tag. C th duy tr v ci tin d dng.
M rng thng qua custom tag. Xy dng da trn cng ngh Servlet.
Java Beans
Enterprise JavaBeans
Stateless
Stateful
Trc khi c Connector, mi ng dng server phi cung cp b iu khin thuc tnh cho mi EIS.
m (# of App servers) x n (# of EIS's) Adaptors
Vi kin trc connector, cng mt adaptor c th thc hin vi nhiu container J2EE.
1 (common to all App servers) x n (# of EIS's) Adaptors
m
App Server1 App Server2 App Server3 App Server
n
SAP
EIS2
EIS3
EIS4
JAAS: Authentication
Gn framework cho vic chng thc
Userid/password Smartcard Kerberos Biometric
JNDI
Giao din dch v Naming v Directory. Tin li cho ng dng J2EE xc nh ti nguyn v cc i tng.
ng dng s dng tn tham chiu n ti nguyn qua JNDI. Tn tng trng v tham chiu i tng pah c cu hnh bi qun tr khi ng dng c trin khai.
JDBC
Cung cp th vin lp trnh java cho c s d liu quan h.
S dng SQL
Qun l J2EE
Mt platform cho php quan l J2EE server. JMX
Management Tools
JMX
JMX API into the J2EE 1.4 platform Dynamic Deployment
JMX defacto
B2C Applications
Web Services
Wireless Applications
Application Server
Web Tier
EJB Tier
JDBC
JAF
JAF
J2SE
RMI
RMI/IIOP
J2SE
JDBC
JNDI
JMS
J2SE
Database
JDBC
JNDI
JMS
JTA
JNDI
JMS
JTA
JavaMail
JavaMail
Browser
Web Server
EJB Server
Stand-alone
3-tng
HTML client, JSP/Servlets, JDBC
3-tng
EJB standalone applications, EJB, JDBC/Connector
B2B
S dng JMS hoc thng nghip da vo XML.
Cu trc th mc
Th mc gc lu dng file *.war
build.xml src: source cc thnh phn dng servlets v JavaBeans web: cc trang JSP, trang HTML, cc nh. Hello2
V d: hello2
URL v Alias
URL
http://[host]:[port]/[request path]?[query string]
URN-Alias
http://localhost:8080/hello1/greeting?username=Monica
Cu hi