Grails is Spring – Key Message.

자바와의 호환(같은 class로 컴파일)등이 장점. 당연히 Spring 2.5의 최신기능을 다 사용할 수 있다.

Plugin을 활용한 확장기능 – ex) Flex

G2One이 스프링소스에 인수되었기 때문에 이제 Groovy,Grails의 적용에 대해서 기업이 스프링소스의 지원을 받을 수 있다. 

2005년 여름 시작, 2008년 초 1.0 릴리즈. 70,000 downloads/mth. 최근 일년간 크게 인기 상승. 프로덕션 사이트에서 사용할 만큼 안정이 되었다는 뜻.

Grails의 철학

  • 이미 있는 성공한 기술을 적극 활용
  • CoC
  • Sensible Defaults

Grails는 SpringMVC의 고레벨의 추상화된 모델. 또한 Spring/Hibernate의 추상화. 스프링의 설정을 자동으로 생성&관리. 어떤 WAS에도 설치 가능.

 

SpringMVC/Grailsㅇ dispatch sequence는 똑같다. Grails View Resolver, Grails Controller…

Spring의 ViewResolver, View, DispatcherServlet, i18n, Multipart… 등을 그대로 사용.

 

GORM – Hibernate스타일의 ORM. – Grails Console을 이용해서 간단히 테스트 해볼 수 있다. (RoR Console과 비슷)

Dyamic Finder. Criteria. Cache. Lock Strategy 등 지원. – 거의 Hibernate의 기능을 최대한 활용하는 듯.

 

GSP(View)를 사용할 때 groovy로 만든 간단한 custom tag를 쉽게 적용할 수 있다.

 

Plugins – conventions, register bean def 등의 다양한 기능을 추가해서 사용할 수 있다. GrailsApp과 ApplicationContext 양쪽에 적용가능. 플러긴을 이용해서 런타임 중에 스프링의 특정 부분에 대한 설정을 추가할 수 있다.

 

데모 Twitter 만들기

Acegi plugin을 설치하면 기본 인증과 관련된 코드가 자동생성된다. Principal Info를 Acegi를 통해서 간단히 가져아서 사용 가능(PrincipalInfo.username). Domain Model에 constraint를 같이 설정할 수 있다. RoR비슷. <g:formRemote .. > – Ajax Form 기능을 간단히 만들 수 있다.

Searchable plugin을 설치하면 검색-목록 스타일의 기능을 간단히 만들 수 있다. 초간단.

스프링의 어떤 설정이라도 추가할 수 있다. (ex. Cache bean 등록후 GORM find metod에서 사용하기)

ActiveMQ plugin을 이용해서 JMS – Message Driven POJO 개발도 가능(JmsTemplate을 바로 사용가능). 스프링에서 되는 것중 안되는 것이 없다. 오호.

REST style의 publishing 기능. (withFormat { .. html, xml, rss …}) – feed plugin 이용해서 rss등의 포맷지원.

Quartz plugin – Job개발을 간단하게.

Mail plugin – def mailService라고 추가만 하면 바로 메일 전송기능 바로 이용가능.

 

정리

Grails is not just a web framework, Grails is  a platform!

왠만한 유명한 것은 plugin으로 다 되어있다.

  • Test : seleium, fitnesse, code coverage.
  • UI : Flex, GWT, GrailsUI(YahooUI)
  • Security: SpringSecureity, JSecurity, OPenID.
  • 기타 등등

 

Grails 1.1 – maven support, testing framework의 내장, Scaffolding, Better plugins & GORM. 현재 베타.

Groovy&Grails – 12권의 책이 벌써 나와있다.

 

데모와 다양한 플러그인을 보니 매우 인상적이다. 이전에 스프링을 단지 백그라운드에 사용했다고 느꼈던 것과 달리, 스프링과 거의 자연스럽게 융합되어있는 듯한 인상이다. 스프링 개발자라면 손 쉽게 기능을 활용할 수 있다는 것이 제일 큰 장점이다. 모든 복잡한 로우레벨의 프레임워크를 직접 구현하지 않고, 이용한 것이 성공의 비결이다. 스프링소스의 본격적인 지원에 힘입어서 조만간 큰 인기를 끌 수도 있지 않을까 기대가 된다. JVM과 그 위에서 동작하는 안정적인 엔터프라이즈 프레임워크의 신뢰도 덕분에 도입이 많아질 수도 있을 듯.

RoR로 개발되어서 성능으로 최근 고전하고 있다는 Twitter가 만약 Grails로 되어있다면 어쟀을까 궁금해진다.

Related posts:

  1. Grails is Spring
  2. S1A 2008 셋째날 정리
  3. S1A 2008 둘째날 SpringSecurity 2.5
  4. SpringOneAmerica 2008 첫날
  5. S1A 2008 넷째날 정리
  6. S1A 2008 셋째날 – Spring JavaConfig
  7. SpringOneAmerica 2008 그리고 SpringSource Webinar
  8. S1A 2008 사진모음
  9. S1A 2008 둘째날 정리
  10. SpringOne 2008 (1) – OSGi
  11. 유쾌한 이슈처리 재촉 메일
  12. Ruby on Maven
  13. 뷰와 뷰(View), 뷰 이름, JSP뷰 (템플릿)
  14. Maven 의존관계 수렁에 빠지다

Facebook comments:

to “S1A 2008 둘째날 – Grails”

  1. This is actually serious, You’re a particularly professional blogger. I have signed up with your feed furthermore watch for enjoying all of your incredible write-ups. In addition, I’ve got shared your webpage with our social networks.

  2. we like to honor a lot of other world wide web web pages around the internet, even if they arent linked to us, by linking to them. Beneath are some webpages really worth checking out

  3. the time to study or go to the subject material or internet sites we’ve linked to below the

  4. always a significant fan of linking to bloggers that I adore but dont get a good deal of link appreciate from

  5. always a big fan of linking to bloggers that I like but do not get a lot of link like from

  6. troubles and we recommend leaving a few of them ! Probably more australia clenbuterol

  7. Sites of interest we’ve a link to

  8. here are some links to web sites that we link to simply because we think they are really worth visiting

  9. PSN code. Obviously, if you get to a single Sony PSN Card…

  10. I am so grateful for your post.Really looking forward to read more. Really Great.

  11. usually posts some very interesting stuff like this. If youre new to this site

  12. Here are a number of the internet sites we suggest for our visitors

  13. I cannot thank you enough for the blog.Thanks Again. Really Great.

  14. the time to study or take a look at the content or websites we’ve linked to below the

  15. Here are several of the web-sites we recommend for our visitors

  16. we came across a cool internet site that you could delight in. Take a search in the event you want

  17. the time to read or visit the subject material or internet sites we have linked to beneath the

  18. Say, you got a nice blog article.Thanks Again. Really Great.

  19. Really appreciate you sharing this article.Much thanks again. Will read on…

  20. please visit the web pages we follow, which includes this a single, because it represents our picks from the web

  21. Here is a great Weblog You might Discover Exciting that we Encourage You

  22. check below, are some entirely unrelated internet sites to ours, nonetheless, they’re most trustworthy sources that we use

  23. Here are a number of the web pages we recommend for our visitors

  24. Hey, thanks for the blog.Really thank you! Really Great.

  25. although websites we backlink to below are considerably not related to ours, we really feel they’re truly really worth a go as a result of, so have a look

  26. very few sites that happen to become in depth below, from our point of view are undoubtedly effectively really worth checking out

  27. please visit the sites we adhere to, like this one particular, as it represents our picks through the web

  28. Appreciate you sharing, great blog post.Really looking forward to read more. Want more.

  29. I cannot thank you enough for the blog.Really looking forward to read more. Really Great.

  30. Really informative blog article.Really thank you! Cool.

  31. Here are a few of the web sites we advocate for our visitors

  32. Enjoyed every bit of your blog.Much thanks again. Awesome.

  33. Really enjoyed this post.Really thank you! Really Great.

  34. I think this is a real great post.Really thank you! Awesome.

  35. the time to read or check out the content material or web pages we’ve linked to below the

  36. Every as soon as in a whilst we pick out blogs that we study. Listed below are the latest internet sites that we select

  37. Thanks a lot for the blog post.Much thanks again. Great.

  38. very handful of websites that take place to be detailed below, from our point of view are undoubtedly properly worth checking out

  39. here are some hyperlinks to internet sites that we link to for the reason that we consider they are worth visiting

  40. here are some links to web sites that we link to because we feel they’re worth visiting

  41. VtY0Gs Please forgive my English.You completed various good points there. I did a search on the subject matter and found the majority of people will consent with your blog.

  42. very couple of internet websites that occur to become comprehensive beneath, from our point of view are undoubtedly very well really worth checking out

  43. I cannot thank you enough for the blog.Really looking forward to read more. Fantastic.

  44. although websites we backlink to beneath are considerably not associated to ours, we really feel they are really worth a go by way of, so possess a look

  45. The facts mentioned within the report are several of the ideal obtainable

  46. just beneath, are many entirely not related web-sites to ours, nevertheless, they are surely worth going over

  47. uDtPj1 jdjpsepljgsn, [url=http://mkdcaxnrqjop.com/]mkdcaxnrqjop[/url], [link=http://jaggtlpithol.com/]jaggtlpithol[/link], http://uqjfbqfmlumo.com/

  48. that may be the end of this article. Here youll obtain some sites that we assume you will value, just click the links over

  49. Wonderful story, reckoned we could combine some unrelated information, nonetheless seriously worth taking a appear, whoa did a single learn about Mid East has got additional problerms also

  50. Great article.Much thanks again. Really Cool.

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2017 Toby's Epril Suffusion theme by Sayontan Sinha