Threading in an Application Server

前端 未结 6 1169
礼貌的吻别
礼貌的吻别 2021-02-19 21:41

I have a Java program/thread that I want to deploy into an Application Server (GlassFish). The thread should run as a \"service\" that starts when the Application Server starts

6条回答
  •  花落未央
    2021-02-19 21:52

    Check out the LifecycleListener interface:

    http://glassfish.java.net/nonav/docs/v3/api/index.html?com/sun/appserv/server/LifecycleListener.html

    http://docs.oracle.com/cd/E18930_01/html/821-2418/beamc.html

提交回复
热议问题