Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MicroProfile 1.0 - by Example

MicroProfile 1.0 - by Example

ivargrimstad

June 26, 2017
Tweet

More Decks by ivargrimstad

Other Decks in Programming

Transcript

  1. @wernerkeil @ivar_grimstad #MicroProfile #JavaEE #dwx17 Werner Keil Director, Creative Arts

    & Technologies
 @wernerkeil Ivar Grimstad Principal Consultant, Cybercom Sweden @ivar_grimstad
  2. @wernerkeil @ivar_grimstad #MicroProfile #JavaEE #dwx17 Full Profile Web Profile JAX-RS

    + CDI + JSON-P + WebSocket + Bean Validation + EJB + JPA + Servlet + JSF + JSP + JMS + Batch + Java Mail + Concurrency + JAX-WS + JASPIC
  3. @wernerkeil @ivar_grimstad #MicroProfile #JavaEE #dwx17 JAX-RS 2.1 JSON-P 1.1 JSON-B

    1.0 Servlet 4.0 CDI 2.0 Bean Validation 2.0 Java EE Security API 1.0 JSF 2.3 Java EE 8
  4. @wernerkeil @ivar_grimstad #MicroProfile #JavaEE #dwx17 @Inject @ConfigProperty(name=“url") private String url;

    @Inject @ConfigProperty(name="port") private Optional<Integer> port; @Inject @ConfigProperty(name=“timeout”, defaultValue="100") private javax.inject.Provider<Long> timeout;
  5. @wernerkeil @ivar_grimstad #MicroProfile #JavaEE #dwx17 Config WebSphere Liberty Microprofile Service

    Config WebSphere Liberty
 Web Profile Service websphere-liberty:microProfile websphere-liberty:webProfile7 238 MB 200 MB
  6. @wernerkeil @ivar_grimstad #MicroProfile #JavaEE #dwx17 Config Payara Microprofile Service Config

    Payara
 Web Profile Service payara/microprofile payara/server-web:164 599 MB 83 MB
  7. @wernerkeil @ivar_grimstad #MicroProfile #JavaEE #dwx17 Config WildFly Swarm Microprofile Service

    Config WildFly
 Web Profile Service jboss/base-jdk:8 jboss/wildfly:10.1.0.Final 288 MB 149 MB
  8. @wernerkeil @ivar_grimstad #MicroProfile #JavaEE #dwx17 Config TomEE
 Web Profile Service

    Config TomEE
 Web Profile Service tomee/8-jre-1.7.4-jaxrs tomee/8-jre-1.7.4-jaxrs 159 MB 159 MB
  9. @wernerkeil @ivar_grimstad #MicroProfile #JavaEE #dwx17 <dependency> <groupId>fish.payara.extras</groupId> <artifactId>payara-microprofile</artifactId> <version>1.0</version> <scope>provided</scope>

    </dependency> <dependency> <groupId>org.apache.tomee</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>net.wasdev.wlp.starters.microprofile</groupId> <artifactId>provided-pom</artifactId> <version>0.0.1-SNAPSHOT</version> <type>pom</type> <scope>provided</scope> </dependency> <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>microprofile</artifactId> <version>2017.1.1</version> </dependency> <dependency> <groupId>io.microprofile</groupId> <artifactId>microprofile</artifactId> <version>1.0</version> <scope>provided</scope> </dependency>
  10. @wernerkeil @ivar_grimstad #MicroProfile #JavaEE #dwx17 <dependency> <groupId>javax</groupId> <artifactId>javaee-web-api</artifactId> <version>7.0</version> <scope>provided</scope>

    </dependency> Web Profile <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> <scope>provided</scope> </dependency> Full Profile