Introducing Payara Micro
Originally published on 26 Apr 2015
Last updated on 06 Jan 2020


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
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 are;
• Servlets, JSTL, EL and JSPs• WebSockets
• JSF
• JAX-RS
• EJB lite
• JTA
• JPA
• Bean Validation
• CDI
• Interceptors
• JBatch
• Concurrency
• JCache
How do I get Payara Micro?
Payara Micro will be released with the next version of Payara and will be available from the downloads page. Prior to that you can get it from our pre-releases 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!
Related Posts
The Payara Monthly Catch - January 2025
Published on 29 Jan 2025
by Nastasija Trajanova
0 Comments
The Payara Monthly Catch - December 2024
Published on 31 Dec 2024
by Nastasija Trajanova
0 Comments