Can I call My thread class in JSP/Java Bean??

2005-08-06 Thread IndianAtTech
Hi All, Can I call thread classes in my JSP or Java Bean classes?? The reason why I am asking is, I have a situation in which if a person registers as a consumer, then a mail shud be sent to providers that who matches the consumers requirements There is a possinbilty of sending more than 100

Re: load on startup

2005-08-06 Thread David Johnson
private static final SingletonObj singleton; public SingletonObj () { super (); singleton = this; } public synchronized SingletonObj getSingleton () { if ( singleton == null ) { new SingletonObj(); } return singleton; } On Fri, 2005-08-05 at 20:11 -0700, Ming Han wrote: You can

Re: load on startup

2005-08-06 Thread David Johnson
{ private static final SingletonObj singleton; // optional - use if you want the initialization to occur as class load time // Otherwise, the initialization will occur at first call to getSingleton(); // static initialization at load time static { getSingelton ()/ } private SingletonObj ()

What to do if you receive a 554 delivery error when posting

2005-08-06 Thread Mark Thomas
All, Reports of 554 delivery errors have continued. My investigations are progressing but I need more information to track down the root cause. If you receive a 554 delivery failure message please forward the message *and the headers* to [EMAIL PROTECTED] or [EMAIL PROTECTED] The headers

Re: Can I call My thread class in JSP/Java Bean??

2005-08-06 Thread Wade Chandler
You may be getting an error in your thread. You should not throw exceptions out of the run method. You should always log and update some table or static collection so you can do something later if needed, but throwing errors from threads is never a good idea as you can hang up some stuff at

Re: Can I call My thread class in JSP/Java Bean??

2005-08-06 Thread Wade Chandler
Also , if all else fails make sure you can do what the thread is doing from the JSP to make sure you're emails are actually getting sent. I have had some funny issues sometimes with code in a servlet/JSP vs. standalone. Break it down to the least common denominator firstsimplify then you

Re: load on startup

2005-08-06 Thread Mauricio Nuñez
Improved version without sync locking: class SingletonObj { private static SingletonObj instance; static { instance=new SingletonObj(); } private SingletonObj() { } public static SingletonObj getInstance() //

Re: loading resources from the servlet.

2005-08-06 Thread Anoop kumar V
just place your .properties file under web-inf/classes which is alway guaranteed to be in your classpath... - so u are still outside of any packages... Anoop On 8/5/05, Maciej Stoszko [EMAIL PROTECTED] wrote: Thx Jon, I had already looked at the wiki entry you graciously pointed me to. I need

Re: anonymising Tomcat

2005-08-06 Thread Rainer Jung
Take a look at ./org/apache/catalina/util/ServerInfo.properties in CATALINA_HOME/server/lib/catalina.jar. It contains: server.info=Apache Tomcat/5.5.10 server.number=5.5.10.0 You can put different values in there and deploy the new properties file in

RE: Tomcat application won't start with MySQL Connection Pooling

2005-08-06 Thread Caldarale, Charles R
From: James Adams [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat application won't start with MySQL Connection Pooling I have now created a context.xml according to the example in the Tomcat 5.5 documentation and this time I've placed it my application's META-INF directory in the WAR

RE: How to turn off perssitent sessions in Tomcat 4.1?

2005-08-06 Thread Richard Mixon (qwest)
Hmm, I assume you have read the documentation on this: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/manager.html If so, have you tried leaving the manager element out? HTH - Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August

Re: load on startup

2005-08-06 Thread David Johnson
instance needs to be final, or it may be changed by some tricks that break encapsulation. On Sat, 2005-08-06 at 15:59 -0400, Mauricio Nuñez wrote: Improved version without sync locking: class SingletonObj { private static SingletonObj instance; static {