8c8a1716d3be3ad3f92c602ce27ffb62.ppt
- Количество слайдов: 30
וטכנולוגיות J 2 EE פתרונות Oracle Mr. Liran Zelkha, Chief Architect Liran. zelkha@alunasoft. com
Agenda • From client-server to N-tier – Middltier application needs • J 2 EE application architecture – – The Web user interface The Business tier Other services Where to put the business logic (Database/Application) • J 2 EE benefits – Cross platform – RAD development • The Way ahead: Services & SOA 2
Client/Server Applications • Around since the mid-80 s. • Client power. • RAD development (VB, Developer/2000, Power. Builder). • But: – Installations and maintenance (TCO) – Do not fit the “web paradigm” 3
N-Tier • More server oriented. • Application can be divided to tiers, each responsible for different aspect of the application: – Easier upgrading – Easier support • But: – Our requirements have increased – Where is our RAD? 4
Middletier Application Needs • All we were used to: – Functionality – User interface – RAD • And some more: – – – Security Performance Management Upgrade-ability Integration 5
J 2 EE Introduction • Built on top of Java. – Cross platform. – Industry support. – Large developers base. • Specification developed and maintained by JCP. – Check www. jcp. org for list of participants. 6
J 2 EE Current Status • Oracle, IBM, BEA and Jboss largest players. • Many enterprise software vendors use J 2 EE – SAP, Oracle, IBM, People. Soft. • Large number of customers. • Wide experience and acceptance. 7
J 2 EE Tiers F i r e w a l l / L o a d Ba l a nc e r Br o w s e r C l i e nt m a c hi ne Web Server Web Container EJB Container HTML GIF JPEG Servlet JSP EJB JDBC JCA JMS Web Server Web Container EJB Container Servlet JSP EJB JDBC JCA JMS HTML GIF JPEG Database 8
J 2 EE Scenario 1 3 Connection EJB Container Connection Web Container Connection C l i e nt m a c hi ne Web Server Database Datasource 4 2 Catalog. jsp 6 7 Book. EJB 8 5 Logo. gif HTTPSession http: //www. j 2 eedemo. com/catalog. jsp 9
The Web Tier • Use JSP for web development. • HTML pages with Java code embedded inside (much like ASP). • Many supporting technologies: – Session management, – I 18 N, – Security, – Much more. 10
Web Tier Ease Of Use • Frameworks for web development consolidated into JSF. • Pre defined components (trees, lists, templates) that can be purchased or downloaded for free. • Standard supported by all J 2 EE vendors. • Tools offer WYSIWYG and RAD. 11
Demo: Web Tier Ease Of Use
The Business Tier • Component based development. • Services provided by application server: – High availability, – Security, – Management, – More. 13
EJBs • Components for business logic (session EJBs), database access (entity EJBs) • Support for remote calls and web services • Application server provides run time services – transactions, security, more. 14
Other services • Messaging – JMS – standard API for all messaging platforms. • Integration – JCA – buy or develop connectors for legacy systems. • Management – JMX – easy to develop management components. 15
Demo: Business Tier
J 2 EE Benefits – Cross platform • Can work on any hardware/OS – Linux, Windows, UNIX and Mainframe. • Can work with any vendor – commercial (Oracle, IBM) or open source (Jboss, Apache) • Porting is easy. 17
J 2 EE Benefits – RAD • Setting up server is as easy as opening a ZIP file (Oracle, Jboss). • Development can be done using RAD tools (Jdeveloper, Eclipse). • Deployment is a mouse click away. 18
J 2 EE Benefits - Experience • Tons of books, articles, forums. • Design patterns and blue prints for easy development. • Many online and classic courses. 19
The Middle Tier future • Welcome to the world of: – Web services, – SOA, – Aspect Oriented Programming 20
Web Services • Components with HTTP access. • Can be used from any language. • Thoroughly supported in J 2 EE. • Can pass through firewalls. 21
SOA • Service Oriented Architecture. • Software architecture composed of standalone components. 22
Development Aids • AOP - Attribute Oriented Programming • XP • AOP – Aspect Oriented Programming • BPEL – Business Process Execution Language 23
AOP - Attribute Oriented Programming • J 2 EE components require meta -data: – Web. xml, ejb-jar. xml, application. xml – Proprietary files • External is an advantage? !? • Xdoclet can auto-create meta -data files 24
XP – e. Xtreme Programming • Automated testing: – Junit – JUnit. Perf – HTTPUnit – Cactus • Rapid build: – ANT 25
AOP - Aspect Oriented Programming • Many view J 2 EE containers as AOP containers – Write business logic – Server provides aspects of transactions, security, performance, etc. 26
Web Services Meet Business Processes Web Service 1 Web Service 4 Web Service 2 Web Service 5 Web Service 3 Web Service n 27
Example Problem Space itt edi red nse C c Cr eo k p h Cs Re Purchase Invoice Order Client Credit Service Consolidate Results PO Service In. R ve RIn ento es serry ve po ve nto ns ey r Inventory Service 28
Summary • J 2 EE has been here a while and it is here to stay. • Easy to use – unlike a couple of years ago. • Easy to teach – allot of experience going around. • Stable and inexpensive – competition brings the best in vendors. • Good luck… 29
Q & A QUESTIONS ANSWERS 30
8c8a1716d3be3ad3f92c602ce27ffb62.ppt