Java environment for deploying and deploying deploy jar files

Using the JAVA framework, I want to perform the following task.

  • hot code deployment (jar) that will perform a specific task in the environment
  • At any time, if I update this jar file, it should automatically unload the old code and load the new code
  • I want to schedule a deployed jar file for tasks.

Currently, I see that Apache karaf / Felix fulfills this requirement, but has less available and inaccessible help.

Any alternative framework that I can use instead of using karaf / felix?

+3
source share
6 answers

, (, -, , ..), ...

:

3: Java Quartz Scheduler. CRON, .

1-2: , . JRebel OSGI, . (, ) -, Play Framework, Quartz, .

( Play):

@Every("1h")
public class Bootstrap extends Job {

    public void doJob() {
        List<User> newUsers = User.find("newAccount = true").fetch();
        for(User user : newUsers) {
            Notifier.sayWelcome(user);
        }
    }

}
+1

OSGi, , Karaf/Felix ( Karaf Equinox, ), , , , LiveRebel, . @Daniel JRebel, , . LiveRebel, Zero Turnaround, . , , -.


[]

, , Knoplerfish, OSGI, BSD. , ?

+5
+2

JBoss , . , , Karaf. , , JBoss , .

0
  • (jar),
  • , jar,
  • jar .

, /

  • (java.net.URLClassLoader - ), (), jar - (temp)
  • , , (META-INF , xml, ), (/xml, )
  • call start() .
  • : , /
  • - call stop() undeploy, , ..,

,

0

hotdeploy - (, Tomcat Jetty) -.

.

?

0

Source: https://habr.com/ru/post/1788391/


All Articles