What’s new in Payara Micro 171?

Uncategorized

In case you missed the news earlier this week – we are pleased to announce a new release of Payara Micro and Payara MicroProfile 171 to start the new year with a bang! With this new release, we have implemented substantial changes that are meant to improve the stability and usability of both ‘regular’ and MicroProfile version of Payara Micro. As is usual with our releases, keep special attention to our blog in the following weeks to read detailed articles on these changes and features to take full advantage of them!

 

For Payara support customers, LTS – Long Term Support – has been introduced for both Payara Micro and Payara MicroProfile so you can expect a full year of patch releases which only include fixes – great news for users who value stability over new features (find out more about the support services here)! 

 

All new changes and features introduced in this release are also included in Payara MicroProfile unless explicitly stated.

 

{{cta(‘4129273b-d6b4-4ef3-8fb7-412a2d0dfdfb’)}}

 

Major Refactoring of JAR Structure

Payara Micro has been refactored from a shaded to a nested JAR structure. This structure has been inspired by an effort to implement a modularization mechanism similar to what Spring Boot does on the Spring Framework. This makes Payara Micro easier to work with, simpler to extend, and puts a stop to dependency overwrite issues. This nested structure can also be applied to Uber JARs created with Payara Micro using the new –nested command line argument!

 

Running Asadmin commands against Payara Micro instances

When configuring Payara Micro instances, you are usually restricted to the limited options offered by the Payara Micro API. If you want to apply custom configurations to your instances and there aren’t any available options for them, you can specify a custom domain.xml file with the configuration changes you want to apply to the instance when running it. Admittedly, this way of configuring instance is a bit cumbersome; with this in mind, the 171 release includes a new feature that allows the use of asadmin commands to configure a Payara Micro instance with a new set of command line arguments are available:
–prebootcommandfile      and      –postbootcommandfile

 

In addition to running asadmin commands when configuring Payara Micro instances, a new asadmin subcommand named send-asadmin-command allows further configuration scenarios as well!

 

Minor Enhancements for CDI Remote Events

New enhancements have been included with the CDI Event Bus shipped with Payara Micro! Now it’s possible to configure the name of remote CDI events using the @Outbound and @Inbound annotations! Remote events can now be limited to be fired to specific instances within a Payara Micro cluster and can also be targeted at the local instance using the new Loopback feature too! These new features offer more control over sending remote events between multiple microservices or between multiple composed services as well.

 

Support for Hazelcast Host Aware Partitioning

With this new release, the support for more integration features with Hazelcast has been expanded. Now you can configure partition groups that are host aware! This means that all Payara Micro instances are part of the same Hazelcast cluster and live under the same IP address or network interface are grouped together in the same partition table, which helps avoid loss of data in case of physical server crashes. This is a high-level feature that is extremely useful for cloud deployments!

 

Case Insensitivity for Command Line Options

This is a minor change that was included to simplify deployment scenarios, so now you don’t need to worry when writing scripts for Payara Micro deployments and be concerned if you typed correctly the names of the command line arguments for configuring your instances! The command line parser for Payara Micro doesn’t make distinctions between –autoBindHttp and –autobindHTTP for example, avoiding unneeded configuration errors! Consistency for preparing your deployment scripts is always recommended, though.

 

 

{{cta(‘4f655561-806e-4221-ae1e-0ebda96b5f25’)}}

 

 

Comments (2)

Post a comment

Your email address will not be published. Required fields are marked *

Payara needs the contact information you provide to us to contact you about our products and services. You may unsubscribe from these communications at any time. For information on how to unsubscribe, as well as our privacy practices and commitment to protecting your privacy, please review our Legal & Privacy Policy.

  1. S gerr

    > Payara Micro has been refactored from a shaded to a nested JAR structure

    Having done this, you have taken away from the developer the ability to use classes from ‘nested’ jars in the applications. For example:

    java.lang.ClassNotFoundException: com.hazelcast.core.MapStoreFactory

    1. Mert Caliskan

      com.hazelcast.core.MapStoreFactory is coming from hazelcast artefact and hazelcast should be used as a dependency instead of payara-micro itself. We have also released payara-api for our own implementations bundled as jar, so all is covered.

Related Posts

Blue background with coral and fish. Left text: 'MONTHLY CATCH'. Right: laptop screen with tech tabs and Payara Community logo. 3 minutes
Community

The Payara Monthly Catch -September 2025

Welcome aboard the September issue of The Monthly Catch! With summer holidays wrapping up, the Java world is back […]

4 minutes
Uncategorized

Leading the Way: Payara Platform Community 7 Beta Now Fully Jakarta EE 11 Certified

We’re excited to announce that Payara Platform Community 7 Beta application server is now fully certified as Jakarta EE 11 […]

Blue background with coral and fish. Left text: 'MONTHLY CATCH'. Right: laptop screen with tech tabs and Payara Community logo. 4 minutes
Community

The Payara Monthly Catch – August 2025

Welcome aboard the August 2025 issue of The Payara Monthly Catch! With summer in full swing, things may have felt […]