Hello,

 
sorry for this newby question.
 
I am developping my first webapp, and I need to do things at the server 
launching step.
 
I understood that when a client sends the first request to the server, it loads 
the required classes and instanciates them. So, I have to wait for the first 
client to connect.
 
In my application, I have to perform stuff when the server starts. Where do I 
have to put this code?
 
I have red that it is possible to force the class loading at the webapp launch. 
is this the solution?
 
ex
 
public class myClass {
{

System.out.println("loaded myClass");

//my stuff

}

 
}
 
thanks
 


This e-mail is intended only for the above addressee. It may contain privileged 
information.
If you are not the addressee you must not copy, distribute, disclose or use any 
of the information in it. 
If you have received it in error please delete it and immediately notify the 
sender.
Security Notice: all e-mail, sent to or from this address, may be accessed by 
someone other than the recipient, for system management and security reasons. 
This access is controlled under Regulation of security reasons.
This access is controlled under Regulation of Investigatory Powers Act 2000, 
Lawful Business Practises.


Reply via email to