Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

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

DZone's Guide to

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
Free Resource

Learn how to troubleshoot and diagnose some of the most common performance issues in Java today. Brought to you in partnership with AppDynamics.

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  {

        PayaraMicro.getInstance()                           
        .addDeployment("test.war")                            
        .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!

Understand the needs and benefits around implementing the right monitoring solution for a growing containerized market. Brought to you in partnership with AppDynamics.

Topics:
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.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}