How To Use The Payara IntelliJ plugin for Smoother Jakarta EE Development

Jakarta EE

In the realm of Jakarta EE development, orchestrating a smooth interaction between your application and the server is paramount. The Payara IntelliJ Plugin is one such tool that facilitates seamless integration between the Payara Server and the IntelliJ IDEA. This plugin empowers developers to efficiently manage and deploy Jakarta EE applications, and troubleshoot issues right from their development environment. In this blog post, we will explore the various features of the Payara IntelliJ Plugin and provide a step-by-step guide on how to make the most of its capabilities.

Installation and Configuration 

  • Ensure you haveIntelliJ IDEA Ultimateinstalled on your system.
  • Access the Plugin Marketplace by navigating to “File → Settings → Plugins“.
  • Search for the “Payara” plugin in the Plugins window using the search bar.
  • Install the Payara Platform Tools by clicking the “Install” button next to it. Follow on-screen instructions for installation. A restart of IntelliJ IDEA might be required to activate the plugin.

Creating a Jakarta EE Application

  • Begin by creating a new Jakarta EE project in IntelliJ IDEA.
  • Navigate to “File → New → Project” to initiate the project creation process.
  • In the “New Project” dialog, on the left-hand side, choose “Jakarta EE“.
  • Configure the project settings, such as the project name, location, and other necessary details.
  • Find the “Application server” field and click the “New” button to select the Payara Server and configure the server path.
  • This action establishes the integration between the Payara Server and your Jakarta EE project.
  • Complete any additional configurations required for your Jakarta EE project, such as selecting the desired version of Jakarta EE, Jakarta EE profile, and configuring other relevant options.
  • Click “Create” to create your Jakarta EE project with the Payara Server integration.

Adding Payara Server Configuration to Existing Application

  • If you’re working with an existing application, integrate the Payara Server Configuration into your project.
  • Click on the “Edit Configurations” option in the top-right corner of IntelliJ IDEA.
  • In the “Run/Debug Configurations” dialog, click the “+” icon and select “Payara Server“.
  • Configure the Payara Server settings, including its path, version, and other relevant details.
  • Navigate to the “Deployment” tab, which allows you to configure the artifacts you want to deploy on the Payara Server.
  • Once you’ve configured the Payara Server settings and selected the desired deployment artifacts, click the “Apply” button. Your Payara Server Configuration is now saved and ready for use.

Deploying Applications

  • Ensure that your Jakarta EE application is built and ready for deployment. 
  • Simply click the “Run” button (positioned close to the configuration option) to initiate the deployment process.
  • A new tab should be opened with the Payara Server log, providing real-time insights into the deployment process and helping to streamline troubleshooting.
  • This action will trigger the deployment of your Jakarta EE application onto the integrated Payara Server.
  • Utilize the server controls within the Payara Server tool window to start, stop, restart, or undeploy applications as needed. This window provides convenient access to various management actions related to your deployed applications.
  • Additionally, for those quick code iterations, you can enable the redeploy on update action in the Payara configuration window to rebuild and redeploy the application artifacts without restarting the server.

  • For debugging purposes, you can set breakpoints within your code and press the Debug button in the configuration instead of the Run. This allows you to step through your code, inspect variables, and identify and fix issues more effectively.

Conclusion

The Payara IntelliJ Plugin is an essential bridge between Jakarta EE application development and server management. Seamlessly integrating with the IntelliJ IDEA Ultimate, it empowers developers to streamline deployment, monitoring, and troubleshooting tasks. This guide has provided you with a concise roadmap to understand the plugin’s functionalities and leverage its potential to elevate your Jakarta EE development endeavours.

Additionally, it’s worth noting that the Payara IntelliJ tools also provide support for Payara Micro, a topic that will be covered in an upcoming blog post. Stay tuned for more insights into utilizing Payara Micro within your development workflow.

Creating web applications using the Jakarta EE Web Profile application? You can use Payara Cloud, our fully managed cloud native application runtime, check out our Free Trial:

{{cta(‘ec19bdcd-f3d9-47d3-8695-544e23dac55a’)}}

Fully managed Jakarta EE Cloud Deployment. ✅Handles Kubernetes for you.✅ 15 day free trial available.✅

Payara Cloud.

TRY FREE.

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. Lucas Oliveira

    I have a Java EE project deployed with Payara Server. With the newest Intellij Marketplace Store version, i can’t find the old “Payara Server Tools” plugin. There’s only “Microprofile Starter”. What can i do? How can i manage my projects locally with payara server?

  2. Gaurav Gupta

    Thank you for your question. You can use the ‘Payara Ultimate Tools’ plugin. It offers full support for managing Payara Server projects locally. You can find it here: https://plugins.jetbrains.com/plugin/15114-payara-ultimate-tools

Related Posts

Payara promotional graphic showing transition from Spring to Jakarta EE, including technology logos, a code icon and arrows leading from Spring to Jakarta EE. 6 minutes
Jakarta EE

From Spring Boot To Jakarta EE 11: How Payara Starter Eases The Transition

If you’ve been living in the Spring ecosystem, you’re used to fast project setup. Spring Initializr gives you a […]

Graphic promoting the Jakarta EE Agentic AI Project by Payara Community. The design shows a laptop screen with a central icon of a person wearing headphones and using a laptop, surrounded by sparkles. The background features blue ocean-themed elements with coral and small fish. Logos for Jakarta EE and Payara Community appear at the top. 3 minutes
Community

Announcing the Jakarta Agentic AI Project

Exploring the Future of AI with the Jakarta EE Community At Payara, we’re passionate about pushing the boundaries of […]

Image promoting a Payara blog with an illustration of a document with checkmarks and a magnifying glass. 5 minutes
Jakarta EE

Why Jakarta EE Standards Make Legacy App Modernization Simple

Legacy Java applications built on enterprise standards don’t have to be roadblocks to modernization. When applications follow established specifications […]