Lifetime of a @WebService class
by Joao Pedro Barreto
Hi,
What is the lifetime of a @WebService class in Jboss 7?
When is it instantiated for the first time (is it the first time that
the server receives a client call for some operation?)?
When is it destroyed (after some timeout?)?
Joao
12 years, 7 months
Where to put initialization code of a Web Service?
by Joao Pedro Barreto
Hi,
After exhaustively searching JBossWS documentation I could not find the
answer to this simple question:
I'm developing a Web Service in JBoss AS 7 that needs to establish a
connection to a local database before it can serve client requests.
I thought about putting the initialization code in the constructor
method of the class that implements the Web Service, but I could never
find any documentation that suggested that.
What is the best place to put this initialization code?
Thanks in advance.
Joao
12 years, 7 months