• Like
Heroku for Java
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Heroku for Java

  • 1,464 views
Published

Presentation held for Miles internally. Norwegian only.

Presentation held for Miles internally. Norwegian only.

Published in Technology , News & Politics
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,464
On SlideShare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
3
Comments
0
Likes
0

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. Heroku for Java
    Miles Session September 2011
    Anders Sveen
  • 2. Heroku
    $$$
  • 3. Cloud
    Software
    IaaS
    PaaS
    SaaS
  • 4. IaaS
    SaaS
    PaaS
  • 5. Fleksibilitet
    Trafikkvariasjoner
    Utvikling
    Miljøer
    Forskning
  • 6. Vs.
  • 7. Dynos
    postgresql
    Kjører JVM
    Gratis
    git push
    Polyglot
    Maven
  • 8. public static void main(String[] args) throws Exception{
    Server server = new Server(Integer.valueOf(System.getenv("PORT"))); ServletContextHandlercontext = new ServletContextHandler(ServletContextHandler.SESSIONS); context.setContextPath("/");
    server.setHandler(context);
    context.addServlet(new ServletHolder(new HelloWorld()),"/*"); server.start();
    server.join();
    }
    <dependencies>
    <dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-servlet</artifactId>
    <version>7.4.4.v20110707</version>
    </dependency>
    <dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>servlet-api</artifactId>
    <version>2.5</version>
    </dependency>
    </dependencies>
    web: shdoit-webapp/target/bin/webapp
  • 9. Fare for regn?
  • 10. Dårligeklær…?
  • 11. Skiftermaskin
    Timeout
    Én request avgangen
    Ikkenoefilsystem
  • 12. Begrenssessionstørrelse
    REST
    Unngå session
    Lettvektscontainer
    Uavhengigskalering
  • 13. Lekeplass
    • http://bikestatus.herokuapp.com/stations
    • 14. http://mappami.org
    • 15. http://morning-ice-8535.herokuapp.com/