Introducing Payara Micro
Originally published on 26 Apr 2015
Last updated on 06 Jan 2020
We are about to release the latest version of Payara (4.1.152) and one of the cool new features that is experimental in this release is Payara Micro.
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
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
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.
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 - October 2024
Published on 30 Oct 2024
by Chiara Civardi
0 Comments
Can You Futureproof Your Enterprise Java Apps or Are They Doomed to Fall Behind?
Published on 16 Oct 2024
by Chiara Civardi
0 Comments