클라이언트와 서버의 통신 어떻게 구현하여야 할까.
물론, Java Socket으로 통신을 한다. 그리고 그 중간에 어떤 내용이 왔다갔다 할지 정해야 했다.
강의에 의하면, 바로 TransferObject!!! -를 Serialization!!!(직렬화) 해서 내용을 주고받는 거라고 배웠다.
TO가 무엇이고 Serialization은 또 무엇인가... 여기서 부터 꼬리가 만들어지기 시작하였다...
: TO는 an arbitrary serializable Java object이다.
TO전략 - Updatable TO Strategy
: In this strategy, the Transfer Object not only carries the values from the BusinessObject to the client, but also can carry the changes required by the client back to the business object.
TO전략 - Multiple TO Strategy
: when the business object is implemented as a session bean, typically applying the Session Facade pattern, the bean may interact with numerous other business components to provide the service. The session bean produces its Transfer Object from different sources. Similarly, when the BusinessObject is implemented as a coarse-grained entity bean, typically applying the Composite Entity pattern, the entity bean will have complex relationships with a number of dependent objects.
: A domain model in problem solving and software engineeringcan be thought of as a conceptual model of a domain of interest (often referred to as a problem domain) which describes the various entities, their attributes, roles and relationships, plus the constraints that govern the integrity of the model elements comprising that problem domain.
※ Domain Model vs. DTO : http://toby.epril.com/?p=99
※ Domain Model vs DTO : http://babtingdev.tistory.com/51
※ Rich Domain Model : http://aeternum.egloos.com/2628475
※ 객체지향적인 도메인 레이어 구축하기 : http://aeternum.egloos.com/2860209
: 데이터베이스에서 관리되어 영속성이 유지되는 데이터
※ In EJB 3.0 (Java EE 5) those Entity Beans have been replaced by Java Persistence API entities.
: Java programming language framework managing relational data in applications using Java Platform, Standard Edition and Java Platform, Enterprise Edition
Contrary to JPA Entities, which represent persistent data maintained in a database, a Session Bean implements a business task and is hosted by an EJB container.
A session bean performs operations, such as calculations or database access, for the client. Although a session bean can be transactional, it is not recoverable should a system crash occur. Session bean objects either can be stateless or can maintain conversational state across methods and transactions. If a session bean maintains state, then the EJB container manages this state if the object must be removed from memory. However, the session bean object itself must manage its own persistent data.
: Entity beans are not intended to represent every persistent object in the object model. Entity beans are better suited for coarse-grained persistent business objects.
Corse-grained & Fine-grained?
: Plain Old Java Object
※ What is POJO? : http://bytes.com/topic/java/answers/621133-what-pojo
※ Difference between JavaBean & POJO? : http://www.theserverside.com/discussions/thread.tss?thread_id=35146
Transfer Object Assembler?
: Use a Transfer Object Assembler to build the required model or submodel. The Transfer Object Assembler uses Transfer Objects to retrieve data from various business objects and other objects that define the model or part of the model.
: Enterprise beans encapsulate business logic and business data and expose their interfaces, and thus the complexity of the distributed services, to the client tier.
J2EE Core Pattern
|eclipse kepler, svn, maven으로 웹개발 환경 구축하기 (0)||2014.06.01|
|스프링공부 - BeanFactory, ApplicationContext (0)||2013.11.09|
|스프링공부 - IoC, DI (#1) (0)||2013.11.07|
|페이스북 캔버스 앱 만들기 (Java, JSP) #2 - 앱 허가 (10)||2011.11.26|
|페이스북 캔버스 앱 만들기 (Java, JSP) #1 - 앱 등록하기 (10)||2011.11.26|
|마지막 수업 #6 - 톰캣 서버 성능 (0)||2011.11.15|
|마지막 수업 #4 - SVN (2)||2011.11.07|
|마지막 수업 #3 - XML (SOAP, REST) (0)||2011.10.29|
|마지막 수업 #2 - J2EE 패턴 (0)||2011.10.29|
|마지막 수업 #1 - 팀 (0)||2011.10.28|
|web 2.0 summit 2010 _ mark zuckerberg (0)||2011.10.23|