A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
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 ejb 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:
- it saves me about five hours per week
subject: How to define some mehod for global resource initializtion and recycle in JBoss container!
How to lookup an EJB in Servlets?
JDBC ORACLE - java.sql.SQLException: ORA-3160
A Question about The Life Cycle of a Stateless Session Bean
how to configure java.net.URL outside of .war
Session Beans - Table
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013