File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to define some mehod for global resource initializtion and recycle in JBoss container!
Joined: May 12, 2009
Sep 07, 2009 00:41:48
I have some customize data and process need to be initialized only once when
AS is starting.
I have used some
Life Cycle Event to handle it,but the result seems not well.
so,How can I define some method or service for initializing global resource and container just only call once? and How about recycle such resource only when the container is closing.
Joined: Jul 20, 2005
Sep 07, 2009 03:06:50
See the JBoss specific @Service
I agree. Here's the link:
subject: How to define some mehod for global resource initializtion and recycle in JBoss container!
how to configure java.net.URL outside of .war
JDBC ORACLE - java.sql.SQLException: ORA-3160
Session Beans - Table
How to lookup an EJB in Servlets?
A Question about The Life Cycle of a Stateless Session Bean
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015