Over a million developers have joined DZone.

Introducing Payara Micro - A New Way of Running Java EE Applications

A new tool called Payara Micro can run Java EE applications in a modern containerized/virtualized infrastructure using automated provisioning tools.

· Java Zone

What every Java engineer should know about microservices: Reactive Microservices Architecture.  Brought to you in partnership with Lightbend.

What is Payara Micro?  

Payara Micro is our first release of a new way of running Java EE applications. Building on the Java EE 7 support of its GlassFish 4.1 core Payara Micro enables you to run WAR files from the command line without any application server installation.

java -jar payara-micro.jar --deploy test.war

That’s not all! Using the Hazelcast integration each Payara Micro process will automagically cluster with other Payara Micro processes on the network, giving web session resilience and a fully distributed data cache using Payara’s JCache support.

Why Payara Micro?

Payara Micro is small, only 57MB in size and incredibly simple to use. With its automatic and elastic clustering it is designed for running Java EE applications in a modern containerized/virtualized infrastructure using automated provisioning tools like Chef, Ansible or Puppet. As each Payara Micro server will automatically cluster with other servers on the network your Java EE application can be elastically scaled horizontally by adding and removing containers based on demand.

Embedding Payara Micro

 Payara Micro also comes with a Java api so it can be embedded and launched from your own Java applications. Embedding Payara Micro in your own code is as simple as;

import fish.payara.micro.BootstrapException;
import fish.payara.micro.PayaraMicro;

public class EmbeddedPayara {

    public static void main(String[] args) throws     
    BootstrapException  {

        .bootStrap();    }    


What APIs does Payara Micro Support?

Payara Micro is based on the Java EE 7 web profile version of GlassFish embedded. We’ve built on that and added a number of useful additional apis.

Key APIs Payara Micro supports:

•    Servlets, JSTL, EL and JSPs
•    WebSockets
•    JSF
•    JAX-RS
•    EJB lite
•    JTA
•    JPA
•    Bean Validation
•    CDI
•    Interceptors
•    JBatch
•    Concurrency
•    JCache

How Do I Try Payara Micro?

Payara Micro is available from the Payara Server downloads page. 

Give us Feedback!

We’d love you to try your Java EE 7 applications on Payara Micro. Let us know what you like or even what you hate. What features would you like to see? As always we are here to help!

Microservices for Java, explained. Revitalize your legacy systems (and your career) with Reactive Microservices Architecture, a free O'Reilly book. Brought to you in partnership with Lightbend.

java ee,glassfish,application server,microservices,middleware,payara,hazelcast

Published at DZone with permission of Steve Millidge. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}