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
Join our webinar! Deploying Jakarta EE Applications with Payara Server and Payara Cloud
Published on 18 Mar 2025
by Dominika Tasarz
0 Comments
Join us for the webinar with the Java Champion Mike Redlich, where you'll discover how Payara Server and Payara Micro support mission-critical deployments, and see firsthand how Payara Cloud simplifies running Jakarta EE applications in the ...
7 Key Benefits of Microservices Architecture for Modern Applications
Published on 27 Feb 2025
by Chiara Civardi
0 Comments