D
D
def neo2016-12-21 22:19:54
Java
def neo, 2016-12-21 22:19:54

How to deploy Java Web Application without restart server (TomCat, Jboss, Payara, etc)?

I am going to write my web application in Java. I use Maven, Payara (This is the former GlassFish), Intelij Idea IDE, Hibernate. Every time you change the files, you have to rebuild the project through maven, then deploy it to the local server again, a little fed up of course, but still .. Maybe there are some plugins that allow you to deploy without restart server in Intelij Idea? For example, in netBeans you can configure deploy on save, it's already super. (It would seem: "So go and use netBeans, what's the problem?"). I do not believe that there is nothing like this in Intelij Idea ..... the Hot Swap function does not always work (when you change the method signature, or create a new class, you have to assemble and deploy everything again) On the JetBrains official website they write this:
Can I enable 'deploy on save' in IntelliJ IDEA?
There is no such option in IntelliJ IDEA settings, however, you can get a similar result by choosing an appropriate application update option in the corresponding run configuration.
For more information, see Updating Applications on Application Servers.
(The corresponding functionality is available only in IntelliJ IDEA Ultimate. The Community Edition doesn't provide integration with application servers.)
How is that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
guras256, 2016-12-21
@defneo2016

Well, listen, if you deploy to Payara, what's stopping you from using payara micro ?

import fish.payara.micro.BootstrapException;
import fish.payara.micro.PayaraMicro;

public class EmbeddedPayara 
{ 
    public static void main(String[] args) throws BootstrapException
    {   
        PayaraMicro.bootstrap();
    }    
}

and run directly from the Play button in Idea
here is the documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question