Professional Documents
Culture Documents
Capa Presentacin:
genera pantallas, crea cdigo formato.
Capa Lgica negocio: objetos aplicacin que generan, manipulan y organizan infomacin. Capa Datos: almacenes de datos: ficheros o bbdd. 2
Capa aplicacin:
Servidores que ejecutan aplicaciones: accede a datos, crea campos para HTML.
Capa Datos:
(Dibujo de architectura de Ebay)
Capa Web:
Apache Client host
Web Client: Iexplorer, FireFox
Aplicaciones JAVA. Servidor Lectura ficheros no eficiente. JAVA Aplicaciones multihilo Protocolo HTTPS e integradas en servidor-> bastante no eficiente. eficiente. 5
Output of Servlet
Fichero Workers.properties:
worker.worker1.type=ajp13 worker.worker1.host=host2.unavarra.es worker.worker1.port=8009
Worker1
Aplicacin /Appli2
Context Aplic
host2.unavarra.es
AJP
Tomcat JK Worker2 Apache
AJP
Output of Servlet
8
CLASE ACCESO DATOS CON MISMO INTERFACE, Implementacin usa JDBC. Datos en BBDD.
} public List getBooks() throws BooksNotFoundException { try { return rs=executeQuery("SELECT bd FROM Book bd ORDER BY bd.bookId").getResultList(); }
12
Client hosts
Plataforma LAMP.
Linux + Apache + Perl + MySQL:
Mod_perl (API) or perl.exe (CGI). MySQL library or client.
Server host MySQL daemon Client host Script Apache MySQL + Interpret
Internet
Java Virtual Machine
GET /ServletComprar(libro1)
Linux
Output of Wikka.php
Output of Wikka.php
15
GET /MSPservlet
Server2 host
RMI
Output of Metodo Output of Servlet Output
17
Sistema Operativo
Sistema Operativo
GET /MSPservlet