应用服务器中的线程 [英] Threading in an Application Server
问题描述
我该怎么做?这不是一个Session Bean或MDB。这只是一个线程。
查看 LifecycleListener 界面:
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
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 and stops when the Application Server closes.
How would I go about doing this? It's not really a Session Bean or MDB. It's just a thread.
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
这篇关于应用服务器中的线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!