Deploying, Starting and Scaling a Java EE 7 Payara "Full" Server on OpenShift

Deploying, starting and scaling a Java EE 7 Payara Server Full on CentOS 7, openJDK 8 with the ping healtcheck from Docker hub to openshift in 3:39mins:

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting. Is Munich's airport too far? Learn from home: airhacks.io.


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

"JavaONE" - first podcast episode is available at: airhacks.fm

The airhacks.fm podcast with "JavaONE" 11 mins episode is available.

Subscribe with iTunes or RSS. Hear you soon!


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

What is a polyfill?

In the WebStandards igniter workshop I didn't rely on any external library or framework and focussed on web standards only.

Older browsers may not support recent APIs and may require "patching", also known as polyfills. In these 2:20 mins screencast I implement, install and use an imaginary log polyfill:

See you at Java EE Workshops at Munich Airport, Terminal 2 especially at Web (Standards) Apps Essentials


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

FDK, FN project, JSF, JSON or 43rd airhacks.tv is available

JavaONE 2017, FDK, fn project, EE4J, Java 18.3, and following topics were covered at the 43rd airhacks.tv:

Any questions left? Ask now: gist.github.com/AdamBien/a232908944dd0b3cad4d0b321fa6ee27 and see in at November, 6th, 6pm CET.

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting. Is Munich's airport too far? Learn from home: airhacks.io.


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

JavaONE 2017: Bloat Removal With Microservices

Microservices are Thin WARs usually exposed via HTTP / JSON / WebSockets. By taking the architectural constraints into account allows us to remove a significant amount of bloat and indirections:

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting. Is Munich's airport too far? Learn from home: airhacks.io.


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Simplest Possible Java EE 8 Kickstarter

The 0.0.2 version of the javaee8-essentials-archetype:

mvn archetype:generate -DarchetypeGroupId=com.airhacks -DarchetypeArtifactId=javaee8-essentials-archetype -DarchetypeVersion=0.0.2

creates a ready to use 3.5kB Thin WAR project with configured JAX-RS runtime, a resource with a GET endpoint ("/ping"), GlassFish v5 Dockerfile and a shell script which executes the maven and Docker build image and eventually starts the image. The build-and-run cycle takes about ...5 seconds.

See it in action:

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting. Is Munich's airport too far? Learn from home: airhacks.io.


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Java EE 8: Convenient JsonArray Collector

Java EE 8 with JSON-P 1.1 introduces a java.util.stream.Collector implementation which converts a Collection<JsonObject> into a JsonArray instance:



import java.util.Arrays;
import java.util.List;
import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonArrayBuilder;
import javax.json.JsonObject;
import javax.json.stream.JsonCollectors;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Before;
import org.junit.Test;

public class JSONPTest {

    private List<JsonObject> list;
        
    @Before
    public void init() {
        this.list = Arrays.asList(next(), next());
    }

    public JsonObject next() {
        return Json.createObjectBuilder().
                add("number", System.currentTimeMillis()).
                build();
    }                
    
    @Test
    public void jsonArrayCollector() {
        JsonArray array = this.list.
                stream().
                collect(JsonCollectors.toJsonArray());
        assertThat(array.size(), is(list.size()));
    }
        

In Java EE 7 you would have to either write a custom collector or use a JsonArrayBuilder for the conversion:



        @Test
        public void toJsonArrayConversion() {
            JsonArrayBuilder builder = Json.createArrayBuilder();
            this.list.forEach(builder::add);
            JsonArray array = builder.build();
            assertThat(array.size(), is(list.size()));
        }    
See you at Java EE Workshops at Munich Airport, Terminal 2 and especially at Java EE 8 on Java 9. Is Munich's airport too far? Learn from home: airhacks.io.


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Java EE: Heavyweight or Lightweight? A Continuous Measurement Session from JavaONE

Are Java EE 7 "full profile" application servers lightweight or heavyweight compared to a "hello world" Java SE nano service? In this session we try to answer the question in a Continuous Measurement / Continuous Profiling style:

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting. Is Munich's airport too far? Learn from home: airhacks.io.


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

JavaONE 2017 News, SSO, Serverside vs. Client, Testing JAX-RS, Logging, Versioning, Overengineering or 43rd airhacks.tv

Questions for the 43rd airhacks.tv:

  1. JavaONE 2017 News: keynotes, impressions, EE4J, project FN, Java 18.3
  2. Dynamic JMS listeners
  3. SSO, timeout and JWT
  4. Serverside rendering vs JavaScript UI
  5. openJDK vs. Oracle JDK in Docker
  6. User properties and Keycloak
  7. Testing JAX-RS with Keycloak
  8. 2 EARs one EJB jar problem
  9. Java EE and logging
  10. JSF conversations with architects
  11. Java EE versioning strategies
  12. User-friendly URIs in MVC / Ozark
  13. Optimistic and pessimistic locking
  14. Ideas for overengineering Pet Projects
  15. WildFly Datasource configuration in Docker
  16. @RequestScope with @Suspended
  17. Implementing a batch job
  18. POJO and JsonObject serialization in Java EE
  19. Qualifier instantiation in Java EE
  20. JPA-level security
  21. bind vs. self / this in JavaScript

Ask questions during the show via twitter mentioning me: http://twitter.com/AdamBien (@AdamBien) or using the hashtag: #airhacks. You can join the Q&A session live each first Monday of month, 6 P.M at airhacks.tv or http://www.ustream.tv/channel/adambien


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Introducing the Java Function Developer Kit / fnproject.io

The opensource project fnproject.io is a "serverless", multi-language cloud-like environment which was introduced at JavaONE 2017.

In this 6 min screencast I create a Maven 3, dependency-less, plain Java SE project from scratch, create a Java class with a single method (aka "the function") and deploy it to the fnproject.io ("local cloud") using the Java Function Developer Kit (FDK) / Java runtime:

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting. Is Munich's airport too far? Learn from home: airhacks.io.


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

realworldpatterns.com
Online Workshops
...the last 150 posts
...the last 10 comments
License