출처: http://hbesthee.tistory.com/45
'database > web' 카테고리의 다른 글
XA 와 Non-XA (0) | 2011.09.21 |
---|---|
SOAP 와 REST (0) | 2011.09.21 |
[HTML5] 시맨틱 태그 (0) | 2011.09.10 |
Http Status Code Definitions (0) | 2011.09.08 |
jsonp를 이용한 크로스도메인 해결 (0) | 2011.09.02 |
XA 와 Non-XA (0) | 2011.09.21 |
---|---|
SOAP 와 REST (0) | 2011.09.21 |
[HTML5] 시맨틱 태그 (0) | 2011.09.10 |
Http Status Code Definitions (0) | 2011.09.08 |
jsonp를 이용한 크로스도메인 해결 (0) | 2011.09.02 |
그럼 XA DataSource가 무엇인지를 설명하면 되는데, XA는 2PC(2 phase commit)을 통한 분산 트렌젝션 처리를 위한 X-Open에서 명시한 표준입니다. 예를 들어 Oracle데이타베이스와 IBM DB2 데이타베이스간에 2단계검증을 통한 2PC를 보장하여 트렌젝션을 보장시켜주는 것이지요. 비단 데이타베이스에 국한되지 않습니다. WAS의 트렌젝션 서비스를 통해 TUXEDO(via WTC)와 Oracle 데이타베이스, IBM MQ와 Sybase DB등 이기종 Resource Manager간에 트렌젝션이 보장되는 것이지요. 트렌젝션이 보장된다 함은 각각이 모두 commit되었을 때만이 전체가 commit되며 하나라도 rollback되면 모두가 rollback되어야 한다는 것을 의미합니다. 그럼 언제 XA DataSource를 사용하고, 언제 Non-XA DataSource(ConnectionPoolDataSource)를 사용해야 할까요? 현재 등록된 하나 이상의 (혹은 이기종) 데이타베이스간에 2pc 트렌젝션이 보장되어야 할 때 XA DataSource를 사용하시면 되고, 설령 하나 이상이 데이타베이스를 접근하더라도, 굳이 트렌젝션이 보장되어할 필요성이 없다면 Non-XA DataSource로 등록하여 사용하시면 됩니다. 일반적으로 XA DataSource는 데이타를 정합성 및 2pc를 위해 file lock이나, 그 외의 적절한 메카니즘(예를 들어 WAS가 다운되더라도 2pc는 보장되어야 하며, 갑작스런 down시에도 적절한 트렌젝션 리커버리를 위한 메카니즘)을 보장하기위한 기능이 들어있기에 Non-XA에 비해 성능이 느립니다. 따라서, 2PC를 사용할 경우의 최대의 관건은 가능한 빨리 리소스에 대한 commit/rollback과 자원의 반납등이 중요하며, 성능의 확장성과 반대방향(?)이므로 충분한 고려를 필요로 합니다. NOTE: 웹스피어의 경우 같은 데이타베이스를 향하는 데이타소스일지라도, 등록된 데이타소스의 이름, 아이디 및 프라퍼티가 모두 동일해야 2PC로 승격되지 않습니다.
HTTP Content-Type 정리 (0) | 2011.12.05 |
---|---|
SOAP 와 REST (0) | 2011.09.21 |
[HTML5] 시맨틱 태그 (0) | 2011.09.10 |
Http Status Code Definitions (0) | 2011.09.08 |
jsonp를 이용한 크로스도메인 해결 (0) | 2011.09.02 |
SOAP(Simple Object Access Protocol)은 일반적으로 널리 알려진 HTTP, HTTPS, SMTP 등을 사용하여 XML 기반의 메시지를 컴퓨터 네트워크 상에서 교환하는 형태의 프로토콜이다. SOAP은 웹 서비스(Web Service)에서 기본적인 메시지를 전달하는 기반이 된다. SOAP에는 몇가지 형태의 메시지 패턴이 있지만, 보통의 경우 원격 프로시져 호출(Remote Procedure Call:RPC) 패턴으로, 네트워크 노드(클라이언트)에서 다른 쪽 노드(서버)쪽으로 메시지를 요청 하고, 서버는 메시지를 즉시 응답하게 된다. SOAP는 XML-RPC와 WDDX에서 envelope/header/body로 이루어진 구조와 전송(transport)와 상호 중립성(interaction neutrality)의 개념을 가져왔다.
SOAP은 XML을 근간으로 헤더와 바디를 조합하는 디자인 패턴으로 설계되어 있다. 「헤더」는 선택사항으로 반복이나 보안 및 트랜젝션을 정보로 하는 메타 정보를 가지고 있다. 「바디」부분은 주요한 정보인 정보를 가지고 있다.<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <getProductDetails xmlns="http://warehouse.example.com/ws"> <productId>827635</productId> </getProductDetails> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
REST(Representational State Transfer)는 월드 와이드 웹과 같은 분산 하이퍼미디어 시스템을 위한 소프트웨어 아키텍처의 한 형식이다. 이 용어는 로이 필딩(Roy Fielding)의 2000년 박사학위 논문에서 소개되었다. 그는 하이퍼텍스트 전송 프로토콜(HTTP)의 주요 저자들 가운데 한 사람이다. 그 뒤로 이 개념은 네트워킹 문화에 널리 퍼졌다.
엄격한 의미로 REST는 네트워크 아키텍처 원리의 모음이다. 여기서 네트워크 아키텍처 원리란 리소스를 정의하고 리소스에 대한 주소를 지정하는 방법에 대한 개괄을 말한다. 간단한 의미로는, 도메인 지향 데이터를 HTTP위에서 SOAP이나 쿠키를 통한 세션 트랙킹 같은 부가적인 전송 레이어 없이, 전송하기 위한 아주 간단한 인터페이스를 말한다. 이 두 가지의 의미는 당연히 겹치는 부분과 충돌되는 부분이 있다. 필딩의 REST 아키텍처 형식을 따르면 HTTP 프로토콜을 사용하지 않은 채로 또 월드 와이드 웹에서 전송하지 않고도 아주 커다란 소프트웨어 시스템을 설계하는것도 가능하다. 또한, 리모트 프로시저 콜을 이용하는 대신에 간단한 XML과 HTTP 인터페이스(REST 원리에 부합하지는 않지만)를 이용해 설계하는 것도 가능하다. 현실 세계에서의 REST 용어에 대한 이러한 두 가지 의미는 기술 토론에서 종종 혼란을 야기한다.
필딩의 REST 원리를 따르는 시스템은 종종 RESTful이란 용어로 지칭된다. 열정적인 REST 옹호자들은 스스로를 RESTafrians 이라고 부른다.
HTTP Content-Type 정리 (0) | 2011.12.05 |
---|---|
XA 와 Non-XA (0) | 2011.09.21 |
[HTML5] 시맨틱 태그 (0) | 2011.09.10 |
Http Status Code Definitions (0) | 2011.09.08 |
jsonp를 이용한 크로스도메인 해결 (0) | 2011.09.02 |
|
|
HTML5 is not just about making existing markup shorter (although it does a fair amount of that). It also defines new semantic elements.
<section>
section
element represents a generic document or application section. A section, in this context, is a thematic grouping of content, typically with a heading. Examples of sections would be chapters, the tabbed pages in a tabbed dialog box, or the numbered sections of a thesis. A Web site's home page could be split into sections for an introduction, news items, contact information.<nav>
nav
element represents a section of a page that links to other pages or to parts within the page: a section with navigation links. Not all groups of links on a page need to be in a nav
element — only sections that consist of major navigation blocks are appropriate for the nav
element. In particular, it is common for footers to have a short list of links to common pages of a site, such as the terms of service, the home page, and a copyright page. The footer
element alone is sufficient for such cases, without a nav
element.<article>
article
element represents a component of a page that consists of a self-contained composition in a document, page, application, or site and that is intended to be independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a Web log entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.<aside>
aside
element represents a section of a page that consists of content that is tangentially related to the content around the aside
element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography. The element can be used for typographical effects like pull quotes or sidebars, for advertising, for groups of nav
elements, and for other content that is considered separate from the main content of the page.<hgroup>
hgroup
element represents the heading of a section. The element is used to group a set of h1
–h6
elements when the heading has multiple levels, such as subheadings, alternative titles, or taglines.<header>
header
element represents a group of introductory or navigational aids. A header
element is intended to usually contain the section’s heading (an h1
–h6
element or an hgroup
element), but this is not required. Theheader
element can also be used to wrap a section’s table of contents, a search form, or any relevant logos.<footer>
footer
element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like. Footers don’t necessarily have to appear at the end of a section, though they usually do. When the footer
element contains entire sections, they represent appendices, indexes, long colophons, verbose license agreements, and other such content.<time>
time
element represents either a time on a 24 hour clock, or a precise date in the proleptic Gregorian calendar, optionally with a time and a time-zone offset.<mark>
mark
element represents a run of text in one document marked or highlighted for reference purposes.XA 와 Non-XA (0) | 2011.09.21 |
---|---|
SOAP 와 REST (0) | 2011.09.21 |
Http Status Code Definitions (0) | 2011.09.08 |
jsonp를 이용한 크로스도메인 해결 (0) | 2011.09.02 |
RESTful Web Services Developer's Guide (0) | 2011.08.25 |
SOAP 와 REST (0) | 2011.09.21 |
---|---|
[HTML5] 시맨틱 태그 (0) | 2011.09.10 |
jsonp를 이용한 크로스도메인 해결 (0) | 2011.09.02 |
RESTful Web Services Developer's Guide (0) | 2011.08.25 |
asadmin for GlassFish v3 (0) | 2011.08.25 |
SOAP 와 REST (0) | 2011.09.21 |
---|---|
[HTML5] 시맨틱 태그 (0) | 2011.09.10 |
Http Status Code Definitions (0) | 2011.09.08 |
RESTful Web Services Developer's Guide (0) | 2011.08.25 |
asadmin for GlassFish v3 (0) | 2011.08.25 |
SOAP 와 REST (0) | 2011.09.21 |
---|---|
[HTML5] 시맨틱 태그 (0) | 2011.09.10 |
Http Status Code Definitions (0) | 2011.09.08 |
jsonp를 이용한 크로스도메인 해결 (0) | 2011.09.02 |
asadmin for GlassFish v3 (0) | 2011.08.25 |
SOAP 와 REST (0) | 2011.09.21 |
---|---|
[HTML5] 시맨틱 태그 (0) | 2011.09.10 |
Http Status Code Definitions (0) | 2011.09.08 |
jsonp를 이용한 크로스도메인 해결 (0) | 2011.09.02 |
RESTful Web Services Developer's Guide (0) | 2011.08.25 |