'Web Service'에 해당되는 글 9건
Jersey의 JSON Support
Posted at 2009/06/08 13:57// Posted in 나만의 작업@Provider public class MyJAXBContextResolver implements ContextResolver<JAXBContext> { private JAXBContext context; private Class[] types = {StatusInfoBean.class, JobInfoBean.class}; public MyJAXBContextResolver() throws Exception { Map props = new HashMap<String, Object>(); props.put(JSONJAXBContext.JSON_NOTATION, JSONJAXBContext.JSONNotation.MAPPED); props.put(JSONJAXBContext.JSON_ROOT_UNWRAPPING, Boolean.TRUE); props.put(JSONJAXBContext.JSON_ARRAYS, new HashSet<String>(1){{add("jobs");}}); props.put(JSONJAXBContext.JSON_NON_STRINGS, new HashSet<String>(1){{add("pages"); add("tonerRemaining");}}); this.context = new JSONJAXBContext(types, props); } public JAXBContext getContext(Class<?> objectType) { return (types[0].equals(objectType)) ? context : null; } }
@Provider public class MyJAXBContextResolver implements ContextResolver<JAXBContext> { private JAXBContext context; private Class[] types = {StatusInfoBean.class, JobInfoBean.class}; public MyJAXBContextResolver() throws Exception { this.context = new JSONJAXBContext( JSONConfiguration.mapped() .rootUnwrapping(true) .arrays("jobs") .nonStrings("pages", "tonerRemaining") .build(), types); } public JAXBContext getContext(Class<?> objectType) { return (types[0].equals(objectType)) ? context : null; } }
'나만의 작업' 카테고리의 다른 글
| 한국 구글 검색 결과 페이지의 'HOT 토픽' (4) | 2009/11/27 |
|---|---|
| [Jersey] WebApplicationException and Mapping Exception to Responses (0) | 2009/07/30 |
| [Jersey] Building Responses (4) | 2009/07/21 |
| [Jersey] Representation and Java Types (0) | 2009/07/16 |
| Jersey의 JSON Support (2) | 2009/06/08 |
| Jersey의 Exception Handling (0) | 2009/06/05 |
| Jersey의 Return Type (0) | 2009/06/04 |
| Jersey의 MessageBodyReader/Writer (0) | 2009/06/03 |
| JAX-RS @Produces와 @Consumes (2) | 2009/06/02 |
-
[NC]...YellOw2009/06/10 21:10 [Edit/Del] [Reply]날이 점점 더워지고 있네요. 더위 조심하세요~~
-
2009/06/16 13:47 [Edit/Del]
버리야늘 이맘때쯤 걸리는 더위.. [NC]...YellOw님두 조심하세요~~
-
Jersey의 Exception Handling
Posted at 2009/06/05 14:02// Posted in 나만의 작업'나만의 작업' 카테고리의 다른 글
| [Jersey] WebApplicationException and Mapping Exception to Responses (0) | 2009/07/30 |
|---|---|
| [Jersey] Building Responses (4) | 2009/07/21 |
| [Jersey] Representation and Java Types (0) | 2009/07/16 |
| Jersey의 JSON Support (2) | 2009/06/08 |
| Jersey의 Exception Handling (0) | 2009/06/05 |
| Jersey의 Return Type (0) | 2009/06/04 |
| Jersey의 MessageBodyReader/Writer (0) | 2009/06/03 |
| JAX-RS @Produces와 @Consumes (2) | 2009/06/02 |
| JAX-RS의 구성 (0) | 2009/06/01 |
Jersey의 Return Type
Posted at 2009/06/04 10:36// Posted in 나만의 작업'나만의 작업' 카테고리의 다른 글
| [Jersey] Building Responses (4) | 2009/07/21 |
|---|---|
| [Jersey] Representation and Java Types (0) | 2009/07/16 |
| Jersey의 JSON Support (2) | 2009/06/08 |
| Jersey의 Exception Handling (0) | 2009/06/05 |
| Jersey의 Return Type (0) | 2009/06/04 |
| Jersey의 MessageBodyReader/Writer (0) | 2009/06/03 |
| JAX-RS @Produces와 @Consumes (2) | 2009/06/02 |
| JAX-RS의 구성 (0) | 2009/06/01 |
| What is Jersey? (0) | 2009/06/01 |
Jersey의 MessageBodyReader/Writer
Posted at 2009/06/03 10:19// Posted in 나만의 작업'나만의 작업' 카테고리의 다른 글
| [Jersey] Representation and Java Types (0) | 2009/07/16 |
|---|---|
| Jersey의 JSON Support (2) | 2009/06/08 |
| Jersey의 Exception Handling (0) | 2009/06/05 |
| Jersey의 Return Type (0) | 2009/06/04 |
| Jersey의 MessageBodyReader/Writer (0) | 2009/06/03 |
| JAX-RS @Produces와 @Consumes (2) | 2009/06/02 |
| JAX-RS의 구성 (0) | 2009/06/01 |
| What is Jersey? (0) | 2009/06/01 |
| What is JAX-RS? (0) | 2009/05/29 |
JAX-RS의 구성
Posted at 2009/06/01 13:34// Posted in 나만의 작업'나만의 작업' 카테고리의 다른 글
| Jersey의 Exception Handling (0) | 2009/06/05 |
|---|---|
| Jersey의 Return Type (0) | 2009/06/04 |
| Jersey의 MessageBodyReader/Writer (0) | 2009/06/03 |
| JAX-RS @Produces와 @Consumes (2) | 2009/06/02 |
| JAX-RS의 구성 (0) | 2009/06/01 |
| What is Jersey? (0) | 2009/06/01 |
| What is JAX-RS? (0) | 2009/05/29 |
| What is REST? (2) | 2009/05/27 |
| Thinkfree Office Live 한국어 서비스 시작 (2) | 2009/04/01 |
What is Jersey?
Posted at 2009/06/01 10:57// Posted in 나만의 작업'나만의 작업' 카테고리의 다른 글
| Jersey의 Return Type (0) | 2009/06/04 |
|---|---|
| Jersey의 MessageBodyReader/Writer (0) | 2009/06/03 |
| JAX-RS @Produces와 @Consumes (2) | 2009/06/02 |
| JAX-RS의 구성 (0) | 2009/06/01 |
| What is Jersey? (0) | 2009/06/01 |
| What is JAX-RS? (0) | 2009/05/29 |
| What is REST? (2) | 2009/05/27 |
| Thinkfree Office Live 한국어 서비스 시작 (2) | 2009/04/01 |
| 자바스크립트 로깅 라이브러리 Blackbird (2) | 2008/11/03 |
What is JAX-RS?
Posted at 2009/05/29 11:03// Posted in 나만의 작업
The JAX-RS API may be found online here.
The JAX-RS specification may be found online here.
javax.ws.rs
High-level interfaces and annotations used to create RESTful service resources.
javax.ws.rs.core
Low-level interfaces and annotations used to create RESTful service resources.
javax.ws.rs.ext
APIs that provide extensions to the types supported by the JAX-RS API.
'나만의 작업' 카테고리의 다른 글
| Jersey의 MessageBodyReader/Writer (0) | 2009/06/03 |
|---|---|
| JAX-RS @Produces와 @Consumes (2) | 2009/06/02 |
| JAX-RS의 구성 (0) | 2009/06/01 |
| What is Jersey? (0) | 2009/06/01 |
| What is JAX-RS? (0) | 2009/05/29 |
| What is REST? (2) | 2009/05/27 |
| Thinkfree Office Live 한국어 서비스 시작 (2) | 2009/04/01 |
| 자바스크립트 로깅 라이브러리 Blackbird (2) | 2008/11/03 |
| 윈도우용 launcy (0) | 2008/08/31 |
What is REST?
Posted at 2009/05/27 16:43// Posted in 나만의 작업'나만의 작업' 카테고리의 다른 글
| JAX-RS @Produces와 @Consumes (2) | 2009/06/02 |
|---|---|
| JAX-RS의 구성 (0) | 2009/06/01 |
| What is Jersey? (0) | 2009/06/01 |
| What is JAX-RS? (0) | 2009/05/29 |
| What is REST? (2) | 2009/05/27 |
| Thinkfree Office Live 한국어 서비스 시작 (2) | 2009/04/01 |
| 자바스크립트 로깅 라이브러리 Blackbird (2) | 2008/11/03 |
| 윈도우용 launcy (0) | 2008/08/31 |
| hello! blogger 대한민국 블로거 컨퍼런스 참가신청 (6) | 2008/03/05 |
SOA와 Web Service
Posted at 2007/03/25 21:41// Posted in 나만의 작업아직은 아키텍쳐에 관심이 많이는 없었지만 특별한 기회에 접하게 되었다.
SOA란 말, SOAP, REST, WEB SERVICE에 대해 세미나에서 듣기만 해보았고,
정확히 어떤 말인지 잘은 몰랐지만, 한번 정리해보려고 한다.
1) SOA의 기본 개념
표준화, 공용화, 재사용성 강화(One Build, Many Use)
Business Agility
SOA => Design Paradiam
SOA의 기대효과
Loosely Coupled, Re-Usable, Interoperable, composited.
2) Service란?
기업의 업무를 표현한 SW Component.
규약을 받은 후에 service consumer와 service provider사이에서 메세지 교환
서비스의 종류
- Business Service
- Intermediary Service
- Process Centric Service
- Application Service
- Public Enterprise Service
3) SOA 단계적 발전 모델
- Fundamental SOA
SOA 처음 적용시 사용을 많이 함.
Business Service + Application Service
서비스에 대한 조합. 전체를 시스템화
문제점 : service 크기가 증가함에 따라 연결이 매우 복잡해짐
- Networked SOA
- Process Oriented SOA
4) WEB SERVICE
Distributed Architecture, Message Oriented Architecture, HTTP(SMTP, FTP)
SOAP Web Services
XML기반, 상호 통신을 위한 표준 Message 형식
WSDL(Web Services Description Language)
XML기반, 서비스에 접근하는 방법을 제공
SOAP만을 위해 디자인되지는 않았음.
5) WS-*확장
구현이 어렵고 복잡하다.
Data양이 비대해짐
서비스 이용자에게도 접근성이 낮다.
6) REST
보안 Spec이 없다. 간단한 표준
SOAP은 같이 보안이나 안전한 메시지, 혹은 비즈니스 프로세스 자동화와 같은 문제들을 해결할 수 있다.
7) 결론
소비자에게 제공하기 위한 API를 쓸땐 REST,
기업간의 정보 제공은 SOAP을 쓸수 있도록 한가지에 치우칠수도 있지만 상호호환하며
사용할 수도 있을 것이다.
관련 URL
http://en.wikipedia.org/wiki/Service-oriented_architecture#Other_SOA_Concepts
http://webservices.xml.com/pub/a/ws/2003/09/30/soa.html
http://www.ibm.com/developerworks/kr/webservices/newto/
'나만의 작업' 카테고리의 다른 글
| firefox에서 원격 블로깅하기 (14) | 2007/04/15 |
|---|---|
| google에서의 flyburi를... (7) | 2007/04/12 |
| 스프링노트공간에 제 노트를 하나 마련했습니다. (12) | 2007/04/08 |
| 다음 - 애드클릭스 (21) | 2007/04/01 |
| SOA와 Web Service (6) | 2007/03/25 |
| 태터툴즈 1.1.2 갈아타기와 스킨바꾸던 중. (10) | 2007/03/15 |
| 블로그 편집기 어떤거 쓰시나요? (10) | 2007/03/15 |
| [프로그램] 웹서버 간단하게 설치하는 오토셋 (2) | 2007/03/09 |
| 프로젝트 환경 설정 (0) | 2007/03/05 |
-
2007/03/26 23:53 [Edit/Del] [Reply]웹서비스 공부하시나보네요 ^^
웹 서비스를 접할 기회가 없어서 내용이 엄청 생소하네요. 어려워 보이기도 하구요. -
-
2007/03/30 17:49 [Edit/Del] [Reply]나도 최근에 SOA 정리했는데...나도 글 올릴께 ~ 유미씨 평소에 정리하는 습관이 있었구나..정리 잘하네...
-
2007/04/01 03:35 [Edit/Del]전 머리가 나빠서 정리를 안하면 다 까먹어서
생존필수로 정리를 할수 밖에 없는데
위에 글은 좀 빼먹은것도 많고,,^^;;; ㅎㅎ
-
이올린에 북마크하기
이올린에 추천하기


