Pós Ruy - 2 e 3 Camadas - Arquitetura em camadas

Preview:

DESCRIPTION

Slides da aula na faculdade Ruy Barbosa do curso de Componentes Web da disciplina Componentes de Software e Aplicações Web : 2 e 3 camadas.

Citation preview

arquitetura

camadasem

atribuir à http://cleversonsacramento.wordpress.com

para mais detalheshttp://creativecommons.org/licenses/by-nc-sa/3.0/

zyc/

cleversonsacramento.

ordpress.com

fonte da imagem: http://1.bp.blogspot.com

http://www.howtoforge.com/speedycgi_debian_etch

#!/usr/bin/perl

print "Content-type: text/html\n\n<h1>Hello World!</h1>\n";

# See if we are running under SpeedyCGI or not.

if (eval {require CGI::SpeedyCGI} && CGI::SpeedyCGI->i_am_speedy) {

print "<br>Running under speedy=", CGI::SpeedyCGI->i_am_speedy ? 'yes' : 'no', "\n";

}

cgi-bin

http://www.howtoforge.com/speedycgi_debian_etch

1993

1995

php

html

view java

viewhelper

http://java.sun.com/blueprints/corej2eepatterns/Patterns/ViewHelper.html

2010 JSF2 2009 Vaadin 2006 GWT 2004 JSF1 2004 Wicket 2000 Struts 1998 JSP 1996 ASP 1995 PHP 1995 JavaScript 1993 CGI1991 HTML

http

://ja

v a.s

un.c

o m/b

luep

rints

/co

r ej2

eep

att e

rns/

Pa t

tern

s /

viewview

helperdata

accessobject

transferobject

view

view

helper

data

accessobject

businessobject

transferobject

transferobject

view

view

helper

data

accessobject

businessobject

transferobject

transferobject

BOBC

Business

ServiceRN

NegocioDAO

Persistence

Manager

Controller

View MB

ManagedBean

Action

PageBeanPB

EAO

DTO

VOValueObject

Type

Entity

apresentaçãocamada de

presentationtier

periférica

trasformaburra

expõevalida

facilita

comunica

webservices

ajax

RESTfulservices

pdf rss

atom

servlet

jsf

xls

struts

jsphtml

css

imagem

webservices

negócio

camada de

businesstier

inteligênciavalida

garantenegóciodomínio

núcleo

pojoplain oldjava

object

persistênciacamada de

tierintegration

integraçãopersiste armazena

consultavalida

burra

transforma

periférica

hibernatejpa

jdoibatis

eclipselink

toplink

sqlxml

e-mail

webservice

clientarquivo

transferobjects

transportatransmite estruturado

recipienteburro

atravessa

pojojavabean

Apresen.

Serviço exposto

Apresen.

JSFHTMLCSSPDF

Java ScriptView Helper

Negócio

Regra de NegócioNúcleo

Livre de tecnologia

Persist.Client

Consumidor

Persist.DAO

JPAHibernateEJB-QL

SQL

visãogeral

(

mitos

MVC

arquiteturaem

camadas

Model

View

controller

viewview

helper data

accessobject

businessobject

transferobject

MV C

arquitetura cebola

?crud

create

retrieve

update

delete

)

queminvoca

quem?

negócio

apresentação

persistência

negócio

apresentação

persistência

fonte da imagem: http://1.bp.blogspot.com

módulocomponente

camada

componentesx módulos + y camadas

X

Recommended