What is Jersey?

Posted at 2009/06/01 10:57// Posted in 나만의 작업
구글에서 "Jersey"를 치면 제일 처음으로 Map에서 저지섬이 나오고 두번째 링크로는 역시 위키피디아의 저지섬이 나온다.
세번째 링크가 되어서야 내가 원하는 jersey 공식 홈페이지가 나온다. 

Jersey는 SUN에서 개발하는 REST 방식의 웹 어플리케이션을 지원하는 JAX-RS의 구현체의 이름이다.

Jersey is the open source (under dual CDDL+GPL license), production quality, JAX-RS (JSR 311) Reference Implementation for building RESTful Web services. But, it is also more than the Reference Implementation. Jersey provides an API so that developers may extend Jersey to suite their needs. The governance policy is the same as the GlassFish project. (출처 : https://jersey.dev.java.net/)


Jersey 1.0.3 버젼은 JAX-RS 1.0.을 구현하였고, 2009년 5월 현재는 JAX-RS 1.1을 구현한 Jersey 1.1.0-ea(ealry access)버젼 개발중이다.




'나만의 작업' 카테고리의 다른 글

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

댓글을 남겨주세요

Name *

Password *

Link (Your Homepage or Blog)

Comment

Secret

JAVA DB - Derby

Posted at 2007/05/12 05:38// Posted in 나만의 작업/DataBase
이번에 Derby에 대해 접해볼 기회가 생겨서 조금씩 알아가고 있는데,
왠지 깜찍(?)하다는 느낌이 듭니다.

이 글을 쓰는 목적은 순전~히 버리의 이기적인 내용정리라고 할까요~
이렇게 쓰면서 제 자신이 정리하고자 하는 목적입니다. 제가 이해가 잘못된곳도 있을지도 몰라요~

Derby는 2005년 말에 Apache DB sub project로 제작되었는데
Embed와 Network Server를 둘다 지원해주는 순수 자바로 제작된 DB입니다.

서버로 띄우거나 어플리케이션에 내장하는 것이 가능하기 때문에 따로 DB를 띄우지 않고도 자바 어플리케이션 작성하는 것이 가능합니다. 이것이 큰 장점~

이 아이는, JVM만 설치되어 있으면 인스톨없이 작동되고 프로그램짤때
jar파일만 추가시켜 주면 됩니다. java 5.0부터는 아예 포함하고 있구요.

What's New in Java SE 6 Beta 2 (Mustang) - Mustang에 새로 추가되었다고 설명하고있습니다.
3. Database (Top 10중 3번째에 글이 나와있네요)

For a great out-of-the-box development experience with database applications, the final Mustang development kit – though not the Java Runtime Environment (JRE) – will co-bundle the all-Java JDBC database, Java DB based on Apache Derby. Developers will get the updated JDBC 4.0, a well-used API that focuses on ease of use – although it contains many feature additions like special support for XML as an SQL datatype and better integration of Binary Large OBjects (BLOBs) and Character Large OBjects (CLOBs) into the APIs. Additional features that improve ease of use include removal of some JDBC boilerplate and some of the new annotations that make SQL strings embed better into your JDBC application – like decorating your getAllUsers() method with an @Query(sql="select * from user") annotation, and that being all you need.


더 자세한 설명은,

Apache Derby 소개

Network Server 모드는 흔히쓰는 client/server방식 JDBC와 비슷하니, 간단히 하고
접해보지 못한 Embedded Derby 정리하겠습니다.

Eclipse에서 Plugin을 이용하면 Eclipse내부에서 derby Network Server를 시작할수있다.(Network Server일 경우,)

방법
  1. Unzip the two Derby Eclipse plugins (derby_core_plugin_10.1.2.zip and derby_ui_plugin_1.1.0.zip) into your eclipse installation folder (ECLIPSE_ROOT). Detailed instructions are available here: http://db.apache.org/derby/integrate/plugin_howto.html#Installing+the+plug-ins
  2. In your ECLIPSE_ROOT/plugins folder, you should have a folder named org.apache.derby.core_10.1.2. Copy the file derbyclient.jar from that folder to your TOMCAT_ROOT/common/lib folder. This installs the Derby JDBC driver into Tomcat for use in a DataSource.

참고 Creating Database Web Applications with Eclipse


Embedded Derby란?

When an application accesses a Derby database using the Embedded Derby JDBC driver, the Derby engine does not run in a separate process, and there are no separate database processes to start up and shut down. Instead, the Derby database engine runs inside the same Java Virtual Machine (JVM) as the application.
So, Derby becomes part of the application just like any other jar file that the application uses.

Derby Embedded Architecture

Figure 1: Embedded Architecture



JDBC applications and Derby basics

1) Derby embedded basics
- JDBC driver
Class.forName("org.apache.derby.jdbc.EmbeddedDriver");

- Connection URL
Connection conn=DriverManager.getConnection("jdbc:derby:sampleDB명");

Developing with Apache Derby -- Hitting the Trifecta:
Database development with Apache Derby, Part 2
에서 발취한 내용

Learn

Get products and technologies

그외,

derby를 떠올리자면 Cloudscape를 빼놓을수 없으니,Cloudscape FAQ 에 derby에 대한 내용도 많이 있습니다.

Derby Reference Manual - http://db.apache.org/derby/docs/10.2/ref/ref-single.html

Tuning Derby - http://www.onjava.com/pub/a/onjava/2007/01/31/tuning-derby.html


헉, 날이 밝아버렸네요... 이제 자야겠습니다~
Tag DB, derby, java, Sun
  1. 2007/05/12 08:32 [Edit/Del] [Reply]
    1.6부터 포함됬던거 같은데 아닌가요? JRE에는 없고 JDK에 포함되어 있던거 같아요.
    • 2007/05/12 12:39 [Edit/Del]
      아하! 제가 착각하고 있었습니다~..지적 감사합니다^^
      What's New in Java SE 6 Beta2(Mustang)에 보니
      여기서 JavaDB를 소개하고있군요,,ㅎㅎ
  2. 2007/05/12 12:01 [Edit/Del] [Reply]
    자바 쪽은 J2SE/J2EE 1.4때 잠깐 하고 치워버려서 이게 뭔지 전혀 모르겠네요 ^^;;
    • 버리
      2007/05/12 12:42 [Edit/Del]
      ^^ 저도 역시 C/C++은 몰라서 너무 불편합니다.
      조만간 다른언어 공부도 해야하단걸 절실히 느끼고 있습니다.^^

댓글을 남겨주세요

Name *

Password *

Link (Your Homepage or Blog)

Comment

Secret