GAE(Google App Engine)의 지원언어로 드디어 자바가 등장했다. 기존에 지원되던 파이썬에 비해서 자바가 가지는 장점은 단지 자바언어에 제한되지 않고 자바플랫폼(JVM)에서 동작하는 다른 언어들도 지원 가능하다는 점이다. 따라서 Ruby(JRuby), Groovy, Scala, Javascript(Rhino) 등으로 만든 애플리케이션도 GAE/J에서 개발 및 배포가 가능하다.

스프링소스에서는 잽싸게 GAE가 Groovy를 지원한다고 홍보하면서 개발방법과 예제를 보여주는 블로그 글을 올렸고, JRuby의 Ola BIni도 JRUBY ON RAILS ON GOOGLE APP ENGINE 라는 글에서 (J)Ruby on Rails 애플리케이션을 GAE에서 사용하는 방법을 설명하고 있다. 백그라운드 자바기술(아마도 하이버네이트?)에 매여있는 Grails가 아직 GAE지원을 못하고 있는 것에 비해서 가벼운 JRuby on Rails는 ActiveRecord를 대신할 간단한 GAE DataStore wrapper를 이용해서 일단 동작하는 것은 가능한가 보다.

GAE/J는 JDK6의 대부분의 기능을 지원(사실은 허용)한다. 가장 궁금했던 구글의 초대형 데이터 서비스를 이용하는 데이타처리 부분은 JDO2와 JPA1을 통해서 지원한다. RDB가 아니니 JDBC는 안될 것이라고 예상하긴 했지만, JDO2의 등장은 조금 의외였다. JDO2가 JPA1보다 좀 더 유연한 데이터저장소를 다룰 수 있기 때문에 아마도 선택한 것이 아닌가 싶은데, 아무튼 제대로 빛도 못보고 JPA에 밀려 퇴출되었던 JDO의 재등장이 매우 흥미롭다. 구글의 데이터 처리 기능과 연동하는 JDO/JPA의 구현 엔진은 DataNucleus라는 오픈소스 JDO/JPA구현을 활용했다고 한다.

아직 earlylook(베타)이니 안정화되고 본격적으로 활용되려면 적지 않은 시간이 필요할 듯 싶다. 구글에는 Joshua Bloch을 비롯한 자바의 탑 클래스 엔지니어들이 대거 포진하고 있으니 뭐 알아서 잘 준비하고 있겠지.

 

일단 스프링 애플리케이션이 동작하는가가 내 최대의 관심사이므로 간단한 샘플을 만들어서 GAE/J에 배포해봤다. GAE/J 플러그인 다운받고 한 5분만에 완성해서 올린 것이니 뭐 샘플이라고 하기도 민망하지만.

GAE/J 프로젝트 템플릿에서 만들어준 서블릿에서 직접 ApplicationContext를 하나 만들어서 빈을 가져와 실행하는 간단한 것이다. Spring3.0 4월 7일자 빌드 라이브러리를 가지고 테스트 해본 결과는 성공.

아래에 있는 것처럼 Hello인터페이스를 구현한 빈을 만들고, 이를 호출해서 결과를 돌려주는 아주 간단한 기능이지만, 그 안에 Spring 3.0의 core, asm, bean, context 모듈이 동작하고 commons-logging과 log4j도 문제없이 처리된다는 것을 확인하기에는 충분했다.

public class HelloImpl implements Hello {
    public String sayHello(String name) {
        return "Hello " + name;
    }
}

http://tobyepril.appspot.com/hello 에서 실행해볼 수 있다.

 

다음주까지 끝내야 하는 프로젝트에 바빠서 더 이상 손을 대보지는 못하겠지만, 여유가 생기면 SpringMVC, Bean Scanning, JPA 등까지 모두 사용해보는 제대로된 GAE/J용 샘플을 만들어볼 생각이다. 스프링이 지원하는 JPA의 로드타임 bytecode enhancer기능이 사용가능한지가 의문인데, 아마도 JVM옵션을 건드려야 하니 안될 것 같다.

하지만 이클립스 3.3, 3.4에서 동작하는 GAE/J 플러그인을 사용하면 빌드를 할 때마다 DataNucleus Enhancer를 동작시켜주니 큰 불편은 없을 듯.

 

GAE/J에 대해서 제일 감탄한 것은 이클립스 플러그인으로 제공하는 개발환경이다. 프로젝트 생성부터, Jetty로 만들어진 테스트용 로컬서버에 배포하는 것, GAE서버에 deploy하는 것까지 모두 이클립스 안에서 간단히 처리 가능하다. 앞으로는 프레임워크건 뭐건, 이클립스에서 동작하는 편리한 툴이 함께 제공되지 않으면 경쟁에서 밀릴 수 밖에 없지 않을까하는.. 이 불안감은 뭔가..

Related posts:

  1. Java와 생산성
  2. Spring과 Google Guice의 협력을 통한 DI 애노테이션 표준화 작업 시작
  3. 편리한 Google Deskbar
  4. Maven 의존관계 수렁에 빠지다
  5. JRuby/JRor + Spring
  6. Ruby와 Ruby On Rails
  7. JRuby의 활용
  8. Spring 상식퀴즈 (1) – DI 태클하기
  9. Spring 3.0 (13) Context 모듈의 선택 라이브러리 분석
  10. 유쾌한 이슈처리 재촉 메일
  11. Inside Spring (5) PropertyPlaceholderConfigurer를 @Bean으로 정의해서는 안되는 이유
  12. Spring 3.0 EL (Spel)을 이용한 AssertThrows 확장 (1)
  13. Spring 3.0 (2) R-518 스프링의 새 모듈 OXM(Object/XML Mapping)
  14. Spring 3.0 (56) @Bean 사용의 주의사항
  15. Spring 3.0 (58) Static Class를 XML없이 빈으로 등록하기

Facebook comments:

to “Google App Engine for Java에서 Spring 3.0 사용하기”

  1. I needed to thank you for this good read!! I definitely enjoyed every bit of it. I’ve got you book-marked to look at new stuff you post…

  2. Good post. I learn something totally new and challenging on blogs I stumbleupon on a daily basis. It’s always exciting to read articles from other authors and practice a little something from other websites.

  3. I really love your website.. Excellent colors & theme. Did you build this site yourself? Please reply back as I’m trying to create my own personal website and would love to find out where you got this from or what the theme is called. Appreciate it!

  4. Greetings! Very useful advice within this post! It is the little changes which will make the biggest changes. Many thanks for sharing!

  5. This page definitely has all the information and facts I needed concerning this subject and didn’t know who to ask.

  6. I was more than happy to discover this page. I wanted to thank you for your time for this fantastic read!! I definitely appreciated every part of it and i also have you saved as a favorite to check out new things on your site.

  7. Everything is very open with a precise clarification of the issues. It was truly informative. Your site is extremely helpful. Thank you for sharing!

  8. I’m impressed, I have to admit. Really rarely will i encounter a blog that’s both educative and entertaining, and without a doubt, you may have hit the nail to the head. Your concept is outstanding; the thing is something too few consumers are speaking intelligently about. We are very happy i always stumbled across this in my seek out something in regards to this.

  9. Your style is unique compared to other people I have read stuff from. Thank you for posting when you’ve got the opportunity, Guess I will just bookmark this web site.

  10. Good web site you have got here.. It’s hard to find high quality writing like yours nowadays. I seriously appreciate people like you! Take care!!

  11. Howdy! I could have sworn I’ve visited this website before but after looking at some of the articles I realized it’s new to me. Regardless, I’m definitely delighted I came across it and I’ll be bookmarking it and checking back often!

  12. I’m amazed, I have to admit. Seldom do I encounter a blog that’s equally educative and interesting, and without a doubt, you’ve hit the nail on the head. The problem is something too few men and women are speaking intelligently about. Now i’m very happy I found this during my hunt for something regarding this.

  13. Wonderful post! We will be linking to this great post on our website. Keep up the great writing.

  14. You’ve made some decent points there. I looked on the internet to find out more about the issue and found most people will go along with your views on this web site.

  15. Hi, I do think this is a great web site. I stumbledupon it ;) I am going to come back once again since I bookmarked it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.

  16. I could not refrain from commenting. Perfectly written!

  17. Your style is unique compared to other folks I have read stuff from. I appreciate you for posting when you have the opportunity, Guess I’ll just bookmark this blog.

  18. You have made some really good points there. I looked on the net to learn more about the issue and found most people will go along with your views on this site.

  19. Good post. I’m experiencing a few of these issues as well..

  20. Good site you’ve got here.. It’s difficult to find high-quality writing like yours these days. I honestly appreciate people like you! Take care!!

  21. I needed to thank you for this excellent read!! I certainly enjoyed every little bit of it. I have got you book marked to check out new things you post…

  22. cialis generika
    For the very best natural and organic back garden, choose vegetation that do very best in your sort of dirt and climate. Plants that have adjusted to a certain type of setting have an improved chance to succeed with little bother for the reason that atmosphere. These plants will even help save you period in routine maintenance since they are by natural means hardy.
    levitra kokemuksia
    Soon after training, bath as soon as possible and employ a bath gel with contra–bacterial properties. When perspire mixes with skin area natural oils, it may prevent skin pores onto the skin and bring about more zits episodes. The moisture in perspiration also can upset present pimples and make up a ideal breeding soil for microorganisms.
    levitra kokemuksia
    Dealing with college might be overwhelming the best places to are living, operate and the way to get through all those assessments and lectures might seem difficult, but you’ve got a bit of good advice in this article. Learn from individuals who have gone before you decide to and prevent high priced errors. Above all, stick with it until graduating!
    cialis pris

  23. Pretty! This was an extremely wonderful post. Thanks for providing this info.

  24. May I simply just say what a comfort to uncover someone who really understands what they are discussing on the net. You actually realize how to bring an issue to light and make it important. A lot more people have to look at this and understand this side of your story. I was surprised you’re not more popular given that you most certainly possess the gift.

  25. I blog often and I really appreciate your information. Your article has really peaked my interest. I’m going to bookmark your site and keep checking for new details about once per week. I subscribed to your RSS feed as well.

  26. I blog quite often and I truly thank you for your content. This great article has really peaked my interest. I will take a note of your blog and keep checking for new details about once a week. I subscribed to your RSS feed as well.

  27. Hi, I do believe this is an excellent website. I stumbledupon it ;) I’m going to come back yet again since I book-marked it. Money and freedom is the best way to change, may you be rich and continue to help other people.

  28. I’m impressed, I must say. Seldom do I come across a blog that’s equally educative and amusing, and without a doubt, you’ve hit the nail on the head. The problem is something which not enough folks are speaking intelligently about. I am very happy I stumbled across this during my hunt for something regarding this.

  29. You made some good points there. I checked on the web for more info about the issue and found most people will go along with your views on this website.

  30. A motivating discussion is definitely worth comment. I believe that you should publish more about this issue, it may not be a taboo matter but typically people don’t speak about these issues. To the next! Best wishes!!

  31. Hi there, I think your blog could be having web browser compatibility issues. When I take a look at your site in Safari, it looks fine however, if opening in I.E., it has some overlapping issues. I merely wanted to provide you with a quick heads up! Apart from that, great website!

  32. Good post. I learn something totally new and challenging on sites I stumbleupon on a daily basis. It’s always useful to read through articles from other authors and practice a little something from their websites.

  33. You made some really good points there. I looked on the web for more info about the issue and found most people will go along with your views on this site.

  34. Great article! We will be linking to this great content on our website. Keep up the good writing.

  35. I’m very pleased to uncover this web site. I wanted to thank you for your time due to this wonderful read!! I definitely really liked every part of it and I have you book marked to see new stuff on your website.

  36. Howdy! This article could not be written any better! Looking at this post reminds me of my previous roommate! He constantly kept preaching about this. I will send this information to him. Fairly certain he’ll have a good read. I appreciate you for sharing!

  37. This site was… how do I say it? Relevant!! Finally I’ve found something that helped me. Appreciate it!

  38. Excellent post. I’m dealing with a few of these issues as well..

  39. I was able to find good advice from your blog articles.

  40. Hey there! I simply want to give you a big thumbs up for your great information you have got right here on this post. I will be coming back to your web site for more soon.

  41. Excellent web site you have got here.. It’s hard to find quality writing like yours these days. I honestly appreciate people like you! Take care!!

  42. I’m very pleased to uncover this page. I want to to thank you for your time for this fantastic read!! I definitely loved every part of it and i also have you saved to fav to check out new stuff on your web site.

  43. Hi there! I just want to give you a huge thumbs up for your great information you have got here on this post. I’ll be coming back to your blog for more soon.

  44. I’m very happy to find this page. I need to to thank you for ones time for this fantastic read!! I definitely really liked every bit of it and I have you book-marked to look at new things in your blog.

  45. After checking out a number of the blog articles on your website, I really like your way of writing a blog. I book marked it to my bookmark webpage list and will be checking back in the near future. Take a look at my website too and let me know what you think.

  46. I’m impressed, I must say. Seldom do I come across a blog that’s both educative and amusing, and without a doubt, you’ve hit the nail on the head. The problem is something too few people are speaking intelligently about. I am very happy I came across this in my hunt for something concerning this.

  47. I couldn’t resist commenting. Very well written!

  48. Next time I read a blog, Hopefully it doesn’t fail me just as much as this one. I mean, I know it was my choice to read through, but I genuinely believed you would probably have something useful to say. All I hear is a bunch of crying about something that you could fix if you were not too busy looking for attention.

  49. An outstanding share! I have just forwarded this onto a friend who has been doing a little homework on this. And he actually ordered me breakfast simply because I discovered it for him… lol. So let me reword this…. Thank YOU for the meal!! But yeah, thanks for spending some time to talk about this issue here on your web page.

  50. Having read this I thought it was very informative. I appreciate you finding the time and energy to put this content together. I once again find myself spending way too much time both reading and commenting. But so what, it was still worth it!

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