M
Mitch
I have already posted this query, although it was appended to one of my
threads with a different subject so if you have read this already I
apologise.
Rather than paste the whole thing over there is a link here to my
question
http://groups.google.com/group/comp.../fa1385d4fb472da7?tvc=1&#doc_2eb2277394b9a908
It pans out that I have a servlet which is calling an init method when
first invoked. However once the init method is called the servlet no
longer functions normally (It doesn't print like it is supposed to for
example) This means that I can not display within the System it
initialises any information about the system. I can't use a different
servlet either as this does not have permission to access the system.
I have found that this problem is also caused when the contents of the
init method are also used in the main methods of the servlet, however
they are best suited to the init method.
Here you can see that the init method is very simple
///////////////////////////////////
////////
public void init(ServletConfig config)
throws ServletException
{
super.init(config);
RSS = new RailSimulationSystem();
RSS.run();
}
////////////
//////////////////////////////////////
I wonder if it is because I am starting a thread?
the RSS object is initiated as I have the system println'ing to tell me
so.
Any ideas on what is going on which might cause this behaviour are
greatly appreciated.
Kind Regards,
Mitch.
threads with a different subject so if you have read this already I
apologise.
Rather than paste the whole thing over there is a link here to my
question
http://groups.google.com/group/comp.../fa1385d4fb472da7?tvc=1&#doc_2eb2277394b9a908
It pans out that I have a servlet which is calling an init method when
first invoked. However once the init method is called the servlet no
longer functions normally (It doesn't print like it is supposed to for
example) This means that I can not display within the System it
initialises any information about the system. I can't use a different
servlet either as this does not have permission to access the system.
I have found that this problem is also caused when the contents of the
init method are also used in the main methods of the servlet, however
they are best suited to the init method.
Here you can see that the init method is very simple
///////////////////////////////////
////////
public void init(ServletConfig config)
throws ServletException
{
super.init(config);
RSS = new RailSimulationSystem();
RSS.run();
}
////////////
//////////////////////////////////////
I wonder if it is because I am starting a thread?
the RSS object is initiated as I have the system println'ing to tell me
so.
Any ideas on what is going on which might cause this behaviour are
greatly appreciated.
Kind Regards,
Mitch.