Your SlideShare is downloading. ×
0
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Grails on GAE/J
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Grails on GAE/J

1,086

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,086
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. import javax.cache.* class BootStrap { def init = { def manager = CacheManager.getInstance() def cache = manager.cacheFactory.createCache([:]) def value = ... // from datastore cache.put('key', value) manager.registerCache('mycache', cache) } } ※ Cron Job
  • 2. import javax.cache.* class CacheController { def index = { def manager = CacheManager.getInstance() manager.getCache('mycache').get('key') } }
  • 3. ≪grails-app/spring/resources.groovy≫ beans = { cacheManager(javax.cache.CacheManager) { it.factroyMethod = 'getInstance' } } ≪Controller≫ class SampleController { def cacheManager def someMethod = { def cache = cacheManager.getCache(‘mycache’) } }
  • 4. http://code.google.com/appengine/docs/quotas.html#Memcache
  • 5. class URLFetchController { def fetch = { new URL(‘http://...’).text } }
  • 6. http://code.google.com/appengine/docs/java/urlfetch/overview.html#Quotas_and_Limits
  • 7. http://code.google.com/appengine/docs/quotas.html#UrlFetch
  • 8. From To/Cc/Bcc ReplyTo
  • 9. http://code.google.com/intl/ja/appengine/docs/java/mail/overview.html#Quotas_and_Limits
  • 10. http://code.google.com/appengine/docs/quotas.html#Mail
  • 11. ≪grails-app/Config.groovy≫ google.appengine.sessionEnabled = true // default true google.appengine.enableSsl = true // default true google.appengine.security.useHttps = ["/secure"] google.appengine.security.requireAdmin = ["/admin", "notsecure"] google.appengine.security.requireLogin = ["/admin", "/"]
  • 12. local GAE
  • 13. import def loginUser = UserServiceFactory.userService.currentUser

×