No, the WS isn´t part of a web application. It´s waiting for a client to make queries.
It is implemented in Java and it´s runnig on Glassfish.
I would need a way to start the processes that are automaticaly launched when session is created for fisrt time (entities mapping, etc) before I make a query to the WS.
IE: I start the WS and a client makes a query. The WS gets the session for first time, the mapping processes are launched:
configuring from resource: /hibernate.cfg.xml
Configuration resource: /hibernate.cfg.xml
Reading mappings from resource : /classes/User.hbm.xml
Mapping class: cac.classes.User -> usuarios
Reading mappings from resource : /classes/Department.hbm.xml
Mapping class: cac.classes.Department -> departamento
Reading mappings from resource : /classes/Incidence.hbm.xml
Mapping class: cac.classes.Incidence -> incidencias
Reading mappings from resource : /cac/classes/Section.hbm.xml
Mapping class: cac.classes.Section -> conexion
(it takes a few seconds)
I want that these processes to be executed before the first call.
Thank´s.
|