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

Heroku for Java

on

  • 1,836 views

Presentation held for Miles internally. Norwegian only.

Presentation held for Miles internally. Norwegian only.

Statistics

Views

Total Views
1,836
Views on SlideShare
1,828
Embed Views
8

Actions

Likes
0
Downloads
3
Comments
0

3 Embeds 8

http://yeilinblog.wordpress.com 3
http://yeilinblog.wordpress.com 3
http://paper.li 2

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Heroku for Java Heroku for Java Presentation Transcript

    • Heroku for Java
      Miles Session September 2011
      Anders Sveen
    • Heroku
      $$$
    • Cloud
      Software
      IaaS
      PaaS
      SaaS
    • IaaS
      SaaS
      PaaS
    • Fleksibilitet
      Trafikkvariasjoner
      Utvikling
      Miljøer
      Forskning
    • Vs.
    • Dynos
      postgresql
      Kjører JVM
      Gratis
      git push
      Polyglot
      Maven
    • 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
    • Fare for regn?
    • Dårligeklær…?
    • Skiftermaskin
      Timeout
      Én request avgangen
      Ikkenoefilsystem
    • Begrenssessionstørrelse
      REST
      Unngå session
      Lettvektscontainer
      Uavhengigskalering
    • Lekeplass
      • http://bikestatus.herokuapp.com/stations
      • http://mappami.org
      • http://morning-ice-8535.herokuapp.com/