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
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
{
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 ()
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
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
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
Improved version without sync locking:
class SingletonObj
{
private static SingletonObj instance;
static
{
instance=new SingletonObj();
}
private SingletonObj()
{
}
public static SingletonObj getInstance() //
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
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
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
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
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
{
12 matches
Mail list logo