Hi Joao,
best place to put your initialization code is @PostConstruct
annotated method.
See JSR-250 (
http://jcp.org/en/jsr/detail?id=250).
Rio
On 02/28/2012 04:51 PM, Joao Pedro Barreto wrote:
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
_______________________________________________
jbossws-users mailing list
jbossws-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossws-users
--
Richard Opalka
JBoss, by Red Hat
Cell: +420 731 186 942