be able to debug the
webapps from within my IDE anymore since I am avoiding Eclipse's deployment
mechanisms.
Original-Nachricht
Datum: Mon, 18 Jun 2007 15:40:36 +0200
Von: Johnny Kewl [EMAIL PROTECTED]
An: Tomcat Users List users@tomcat.apache.org
Betreff: Re: Share one singleton
From: Kevin Wilhelm [mailto:[EMAIL PROTECTED]
Subject: Share one singleton across webapps
There has to be a way to let the first webapp instantiate the
singleton and set some property so that the second webapp can
use the singleton and read the property. How do I achieve this?
The class
The typical form is like this
public class SingletonObject
{
private SingletonObject(){}
public static SingletonObject getSingletonObject()
{
if (ref == null)
// it's ok, we can call this constructor
ref = new SingletonObject();
return ref;
}
private
@tomcat.apache.org
Betreff: Re: Share one singleton across webapps
The typical form is like this
public class SingletonObject
{
private SingletonObject(){}
public static SingletonObject getSingletonObject()
{
if (ref == null)
// it's ok, we can call this constructor
:58 AM
Subject: Re: Share one singleton across webapps
It works! Thanks!
The problem has been that each webapp had its own shared-lib jar-file,
because I am developing in Eclipse. So Eclipse needs to know which classes
I am accessing :/ At the end there were 3 times the same jar-file: 1st
UAT and QA jars?
Original-Nachricht
Datum: Mon, 18 Jun 2007 10:11:58 -0400
Von: Martin Gainty [EMAIL PROTECTED]
An: Tomcat Users List users@tomcat.apache.org
Betreff: Re: Share one singleton across webapps
Good Morning Kevin
Glad to hear that worked for you
What I found
]
An: Tomcat Users List users@tomcat.apache.org
Betreff: Re: Share one singleton across webapps
The typical form is like this
public class SingletonObject
{
private SingletonObject(){}
public static SingletonObject getSingletonObject()
{
if (ref == null)
// it's ok, we can
| From: Kevin Wilhelm [mailto:[EMAIL PROTECTED]
| Sent: Monday, 18 June, 2007 08:59
|
| Should I use Ant for deploying then? But I won't be able to debug
| the webapps from within my IDE anymore since I am avoiding Eclipse's
| deployment mechanisms.
You should still be able to use Eclipse, just