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. 와! 드디어 Java도 되는군요. 거기에 Eclipse plug-in까지…

  2. Some time before, I did need to buy a car for my corporation but I did not earn enough money and could not order anything. Thank heaven my mate suggested to take the business loans from reliable bank. Hence, I acted so and was happy with my collateral loan.

  3. TZvuuf nedlxgnjbflh, [url=http://hpzeyzwvzmkp.com/]hpzeyzwvzmkp[/url], [link=http://gwfrlraytrfs.com/]gwfrlraytrfs[/link], http://uyqdcuhxaryz.com/

  4. nike shox r4nike shox r4 whitehttp://goo.gl/5neKsg
    nike shox navina si women s http://goo.gl/5neKsg – camouflage nike shox nike shox cheap

  5. mbt m walk Google App Engine for Java에서 Spring 3.0 사용하기 » Toby’s Epril

  6. kamagra danmark
    If you wish to know some helpful tips about using far better care of your teeth, then you need to continue studying and take notice. You don’t would like to abandon every thing as much as your dental practitioner. Component of your pearly whites looking much better is taking good care of them in the meantime. Please read on to learn more.
    propecia kaufen
    If you would like then add colour to rooms you should think about introducing extremely colourful graphics rather than painting wall space in deafening colors. Take note the point that a lot of consumers could be put off by loud hues and will also absolutely affect your house’s probable in terms of reselling.
    viagra 100 mg
    Now you have some concepts, it’s essential to get going. It really is easy to get distracted by the responsibilities, but you should make time to suit your needs! You can expect to feel a lot more calm if you lastly have some time to transform your spread out and feel a lot more in your house within your house.Advice About Bothersome Candidiasis
    levitra online

  7. vardenafil kaufen
    A lot of people around the world are choosing that they need to start becoming more match. This includes two main factors, weight-loss and muscle mass get. Following the advice that you will find in the following paragraphs, you will be able to start out your self on the physical fitness trip that you would like.
    cialis pris
    Get rid of that sweater with all the pit in it or individuals jeans that are barely keeping jointly on the crotch. They could seem like old friends, but if you’re found inside them, you’re will be considered the area bag woman. It’s an easy task to neglect that your tshirt is discolored should you all of a sudden need to leave the house. Buy and wear garments which you won’t thoughts becoming found in.
    viagra belgique
    When redecorating your space, usually think of resale. Although you might plan to live in your house for some time, reselling values are crucial simply because situations can alter. When your hues are way too daring, to flavor specific or also trendy, it can adversely affect the longer term reselling importance of your property.
    kamagra gel

  8. cialis original
    Mentioned previously prior to, the volume of folks going through individual bankruptcy has gone up because of the state in the overall economy. It may be frightening to deal with individual a bankruptcy proceeding, but after some assist, anybody can defeat it. The details from this information will assist you to or anybody else get their financial situation way back in purchase and get away from individual personal bankruptcy forever.Learn About Getting A Property Right here
    viagra hinta
    Being in a fit condition can be a target we need to all aim to accomplish. Our physical fitness recommendations will provide you with the latest and very best information and facts, make you stay within the know and up to pace on what you should do. Our recommendations will allow you to reach the fitness target you might have always wanted to obtain.
    levitra generico
    If traveling causes you nervousness and anxiety attacks, carry out pleasure strategies while you’re driving a vehicle. Do deep breathing, or think about good ideas just like a happy trip or possibly a person you cherish. Relax the muscles with your encounter and body individually until your whole body is at peace and calm.
    generico cialis

  9. Levitra original
    Anxiety and panic attacks are like dwelling a terrified living you panic about a lot of things that anxiety you and it is like you might perish as a result. Everything making you seem like you reside in worry and it almost certainly sets a strain on your partnerships. Don’t worry the following tips below may help you discover alleviation.
    dapoxetine kaufen
    A cup of very hot teas are often very comforting in and also itself, as well as all the herbal remedies which can be included into them. A good cup of hot chocolate is also a extremely calming thing to sip and appreciate. Look for a great hot drink and snuggle through to the couch.
    levitra precio
    As we discussed, wine can be used in a variety of different methods. It can be used to prepare your meal, along with associated the meal by itself like a stand up-by itself refreshment. Take advantage of the advice from this article to help you guide you the very next time you purchase a package of wines.The Guidelines On How To A More healthy You
    levitra acheter

  10. I simply want to say I’m new to blogs and certainly savored you’re website. Likely I’m planning to bookmark your blog . You certainly have impressive posts. Thanks for sharing with us your web page.

  11. As I website owner I think the articles here is rattling superb , thanks for your efforts.

  12. As a Newbie, I am continuously searching online for articles that can benefit me. Thank you

  13. Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed surfing around your blog posts. In any case I will be subscribing to your rss feed and I hope you write again soon!

  14. Great info and straight to the point. I am not sure if this is in fact the best place to ask but do you folks have any ideea where to hire some professional writers? Thanks :)

  15. I’ve been surfing online more than three hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. Personally, if all webmasters and bloggers made good content as you did, the net will be a lot more useful than ever before.

  16. Excellent items from you, man. I’ve be aware your stuff previous to and you’re just extremely wonderful. I really like what you’ve got here, really like what you’re saying and the way in which by which you are saying it. You make it enjoyable and you still take care of to keep it sensible. I cant wait to learn much more from you. This is really a tremendous website.

  17. I was recommended this web site by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my difficulty. You are incredible! Thanks!

  18. Thanks a bunch for sharing this with all of us you actually realize what you’re talking about! Bookmarked. Please also visit my site =). We could have a link change agreement between us!

  19. Do you mind if I quote a few of your articles as long as I provide credit and sources back to your website? My blog is in the exact same area of interest as yours and my visitors would certainly benefit from a lot of the information you present here. Please let me know if this alright with you. Appreciate it!

  20. Wonderful goods from you, man. I’ve understand your stuff previous to and you’re just too fantastic. I actually like what you have acquired here, certainly like what you are saying and the way in which you say it. You make it entertaining and you still care for to keep it wise. I can not wait to read far more from you. This is actually a tremendous website.

  21. Magnificent site. Lots of useful info here. I’m sending it to a few buddies ans also sharing in delicious. And obviously, thank you to your effort!

  22. I used to be recommended this web site by way of my cousin. I’m now not certain whether or not this submit is written by him as no one else recognize such specific about my difficulty. You are wonderful! Thanks!

  23. cialis generika
    To make certain your bank account isn’t a strain on your own funds, make time to find a really free bank checking account. Some checking balances boast of being cost-free, but have higher minimum resources demands or will charge a fee if you don’t have primary downpayment. This can put you in an unsatisfactory place when you grow to be unemployed. A totally totally free bank account will assist you to make the most efficient consumption of your money irrespective of what your position is.
    kamagra gel australia
    Use other folks inside your video tutorials. This can give individuals the idea that you will be not filled with heat. Although it can be just a little hard to persuade somebody who the people inside your movie are truly supporters of your merchandise, it will come accross better than generally doing video lessons by yourself.
    Levitra original
    When making gourmet coffee, use fresh, water that is clean. Since your caffeine basically consists of mainly h2o, the grade of the liquid you employ will have an effect on the standard of the gourmet coffee you ingest. Avoid using a h2o-softening filter for the drinking water you utilize inside your caffeine. Awesome delicate h2o falters to properly draw out the espresso skin oils.
    levitra générique

  24. Great post, you have pointed out some fantastic details , I besides conceive this s a very fantastic website.

  25. you could have an awesome blog here! would you like to make some invite posts on my weblog?

  26. I’m not that much of a online reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your website to come back later. Cheers

  27. Thanks for sharing your ideas. I would also like to say that video games have been ever evolving. Modern tools and inventions have aided create genuine and enjoyable games. All these entertainment games were not as sensible when the concept was being tried out. Just like other styles of technology, video games also have had to grow via many ages. This is testimony to the fast progression of video games.

  28. Thanks for discussing your ideas. I’d also like to convey that video games have been actually evolving. Technology advances and inventions have served create sensible and enjoyable games. These entertainment video games were not as sensible when the concept was first being tried out. Just like other areas of technologies, video games also have had to advance via many many years. This is testimony on the fast development of video games.

  29. I was suggested this web site by my cousin. I’m not sure whether this post is written by him as no one else know such detailed about my problem. You are incredible! Thanks!

  30. It is indeed my belief that mesothelioma is actually the most dangerous cancer. It has unusual attributes. The more I look at it a lot more I am confident it does not react like a true solid cells cancer. In the event that mesothelioma is usually a rogue viral infection, then there is the possibility of developing a vaccine along with offering vaccination for asbestos uncovered people who are at high risk of developing foreseeable future asbestos related malignancies. Thanks for expressing your ideas on this important ailment.

  31. This is really interesting, You are a very skilled blogger. I have joined your rss feed and look forward to seeking more of your wonderful post. Also, I have shared your site in my social networks!

  32. An attention-grabbing discussion is worth comment. I believe that you should write more on this matter, it won’t be a taboo topic however usually persons are not sufficient to talk on such topics. To the next. Cheers

  33. I needed to thank you for this fantastic read!! I absolutely enjoyed every bit of it. I have got you bookmarked to check out new things you post…

  34. Hey very cool site!! Man .. Excellent .. Amazing .. I’ll bookmark your blog and take the feeds also…I am happy to find a lot of useful info here in the post, we need develop more strategies in this regard, thanks for sharing. . . . . .

  35. I’m really enjoying the design and layout of your website. It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a developer to create your theme? Excellent work!

  36. Spot i’ll carry on with this write-up, I actually think this site needs considerably more consideration. I’ll more likely be once more to see a great deal more, thanks for that information.

  37. An attention-grabbing dialogue is value comment. I feel that you should write extra on this subject, it won’t be a taboo topic but usually people are not enough to talk on such topics. To the next. Cheers

  38. I do love the way you have framed this specific challenge plus it does offer us some fodder for thought. Nonetheless, from just what I have experienced, I just wish as other feedback pile on that individuals stay on issue and in no way embark on a tirade of the news du jour. All the same, thank you for this outstanding point and although I do not necessarily concur with this in totality, I value the viewpoint.

  39. F*ckin’ amazing things here. I’m very satisfied to look your article. Thanks a lot and i’m having a look forward to touch you. Will you kindly drop me a e-mail?

  40. Hi there! This is my first comment here so I just wanted to give a quick shout out and tell you I truly enjoy reading your blog posts. Can you suggest any other blogs/websites/forums that deal with the same subjects? Thank you!

  41. This is the right site for everyone who really wants to understand this topic. You realize so much its almost tough to argue with you (not that I personally will need to…HaHa). You definitely put a new spin on a topic which has been written about for ages. Excellent stuff, just wonderful.

  42. Hi there. I discovered your blog by the use of Google whilst searching for a related matter, your site got here up. It appears to be good. I have bookmarked it in my google bookmarks to visit then.

  43. Awesome write-up. I am a normal visitor of your web site and appreciate you taking the time to maintain the nice site. I’ll be a regular visitor for a long time.

  44. Hiya, I’m really glad I’ve found this info. Nowadays bloggers publish only about gossip and web stuff and this is really annoying. A good web site with interesting content, that’s what I need. Thanks for making this website, and I’ll be visiting again. Do you do newsletters by email?

  45. Hello there. I found your site via Google whilst looking for a related topic, your website got here up. It seems good. I have bookmarked it in my google bookmarks to come back then.

  46. Hi there. I found your website by means of Google at the same time as looking for a related topic, your site came up. It seems to be good. I have bookmarked it in my google bookmarks to visit then.

  47. Hiya, I’m really glad I have found this info. Nowadays bloggers publish only about gossip and internet stuff and this is actually frustrating. A good site with interesting content, that’s what I need. Thanks for making this web site, and I’ll be visiting again. Do you do newsletters by email?

  48. Awesome write-up. I am a normal visitor of your site and appreciate you taking the time to maintain the excellent site. I’ll be a regular visitor for a really long time.

  49. An interesting discussion is definitely worth comment. I think that you ought to write more on this subject, it may not be a taboo matter but usually folks don’t speak about such issues. To the next! Many thanks!

  50. Hey there. I discovered your website via Google whilst looking for a comparable subject, your site came up. It seems to be good. I’ve bookmarked it in my google bookmarks to come back then.

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