Thanks to all for the answers, and an interesting thread.
As just an occasional dabbler into this, I must say that the more I dig
into Java, the more I get the impression that this is a language that
needs lifetime dedication in order to fully understand the beauties of
it. I am starting to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Darryl,
Darryl Pentz wrote:
In my case, webapp A needs to let webapp B know that an event has
occurred ... webapp B then does something based on that event, and
the result of that action is relevant to webapp A.
What are your options for simply
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Darryl,
Darryl Pentz wrote:
I also just encountered the 'crosscontext' attribute in the
context.../ block and was wondering whether that could serve any
purpose.
If you don't mind issuing another request (not a new HTTP connection,
just another
come back to bite you in the long run, but in this case, I might
make an exception.
- Darryl
- Original Message
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, October 9, 2008 1:57:28 AM
Subject: Re: Communicating between webapps
Hi.
This is not my thread, so if anyone thinks I'm pushing the envelope a
bit, tell me and I'll start another one.
I am interested in this same issue, but in a broader sense :
how to share some data, in general, between collaborating webapps
within the same container.
My case goes somewhat
It's my thread, but you're welcome to it now. I'm done. :-)
- Original Message
From: André Warnier [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, October 9, 2008 9:59:50 AM
Subject: Re: Communicating between webapps
Hi.
This is not my thread, so
On Thu, Oct 9, 2008 at 9:59 AM, André Warnier [EMAIL PROTECTED] wrote:
I realise that this can be done via e.g. an external DB.
It could also probably be done, most portably, by creating an entirely
separate application accessed via HTTP calls e.g. (à la Amazon DB ?).
But it looks as if within
On Thu, Oct 9, 2008 at 10:36 AM, André Warnier [EMAIL PROTECTED] wrote:
Leon Rosenberg wrote:
On Thu, Oct 9, 2008 at 9:59 AM, André Warnier [EMAIL PROTECTED] wrote:
I realise that this can be done via e.g. an external DB.
It could also probably be done, most portably, by creating an entirely
Leon Rosenberg wrote:
[...]
It could look like following:
[...] (200 lines of code snipped)
Just a question : what do you answer when people ask for *really*
detailed specifications ?
:-)
Many thanks.
I'll need some time to digest that.
A very similar architecture would be offered by using JMS (say openjms
or activeMQ;
we've been using the latter; check for others at http://java-source.net/open-source/jms
).
In this case, there is a message broker which runs separately.
At the moment, we're using it on one development
On Thu, Oct 9, 2008 at 1:01 PM, André Warnier [EMAIL PROTECTED] wrote:
Leon Rosenberg wrote:
[...]
It could look like following:
[...] (200 lines of code snipped)
Just a question : what do you answer when people ask for *really* detailed
specifications ?
:-)
Usually I'm asking them
Leon Rosenberg wrote:
On Thu, Oct 9, 2008 at 9:59 AM, André Warnier [EMAIL PROTECTED] wrote:
I realise that this can be done via e.g. an external DB.
It could also probably be done, most portably, by creating an entirely
separate application accessed via HTTP calls e.g. (à la Amazon DB ?).
But
From: André Warnier [mailto:[EMAIL PROTECTED]
Subject: Re: Communicating between webapps
My case goes somewhat like this : an application consisting
of several webapps needs access to some common data (read/write).
What you're describing is referred to as a bean in Java terminology
From: Bill Davidson [mailto:[EMAIL PROTECTED]
Subject: Re: Communicating between webapps
So if I'm understanding you correctly, different webapps use different
class loader instances and so the singleton is actually instantiated
separately for each class loader?
Depends on where the class
- Original Message -
From: André Warnier [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, October 09, 2008 9:59 AM
Subject: Re: Communicating between webapps
Hi.
This is not my thread, so if anyone thinks I'm pushing the envelope a
bit, tell me
On Thu, Oct 9, 2008 at 7:16 PM, Johnny Kewl [EMAIL PROTECTED] wrote:
I'm very much for the KISS principle... if you dont need it, dont use it...
nothing is more powerful that POJO (plain old Java).
Thing is KISS does not mean novice... you'll find only the guys that have
been around for a
- Original Message -
From: Leon Rosenberg [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, October 09, 2008 9:54 PM
Subject: Re: Communicating between webapps
On Thu, Oct 9, 2008 at 7:16 PM, Johnny Kewl [EMAIL PROTECTED] wrote:
I'm very much
creating a socket connection to the same container.
I also just encountered the 'crosscontext' attribute in the context.../
block and was wondering whether that could serve any purpose.
Does anybody know of any tried and trusted ways of communicating between
webapps in Tomcat?
Thanks
, given that it
requires creating a socket connection to the same container.
I also just encountered the 'crosscontext' attribute in the context.../ block
and was wondering whether that could serve any purpose.
Does anybody know of any tried and trusted ways of communicating between
webapps in Tomcat
From: André Warnier [mailto:[EMAIL PROTECTED]
Maybe hacks, but why not use them if they are easier, faster,
and have a smaller memory footprint ?
Because they can be harder to maintain. Note *can be* - it depends on the
developers and admins.
Not being very good at either Java or Tomcat,
Message
From: Mikolaj Rydzewski [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, October 8, 2008 12:54:10 PM
Subject: Re: Communicating between webapps
Leon Rosenberg wrote:
You need additional lib (commons httpclient), you need special
servlet/action/jsp on B
Leon Rosenberg wrote:
You need additional lib (commons httpclient), you need special
servlet/action/jsp on B-side, you probably need to start threads, you
need to monitor those on A side, and and and...
One can use HttpURLConnection. There're probably some actions/jsps
already in the webapp,
Brantley Hobbs wrote:
Darryl Pentz wrote:
I have an issue where webapp A needs to let webapp B know about an
event, and then return a response to webapp B's processing of that
event to the browser. So basically I need to communicate between
webapps in the same container.
Since Daryl seems
On Wed, Oct 8, 2008 at 12:00 PM, Mikolaj Rydzewski [EMAIL PROTECTED] wrote:
Darryl Pentz wrote:
I have not found a no-brainer solution to this as yet. The one I have
tried is making a localhost HTTP call which I find to be rather expensive,
given that it requires creating a socket connection
Darryl Pentz wrote:
I appreciate the suggestions from all so far. It does seem like at least there isn't a
'no-brainer' approach, as in of course stupid, why don't you just do X - everybody
else does. It sounds like each solution has its clear pros and cons which must be
weighed up in light
serve any purpose.
Does anybody know of any tried and trusted ways of communicating between
webapps in Tomcat?
Thanks,
Darryl Pentz
If you think that this thing will scale at all, steer clear of any
shared resources like JVM properties or magic files. It could be that
in the future the apps
Darryl Pentz wrote:
I have not found a no-brainer solution to this as yet. The one I have tried is
making a localhost HTTP call which I find to be rather expensive, given that it
requires creating a socket connection to the same container.
Have you actualy measured that additional local
Mikolaj Rydzewski wrote:
Leon Rosenberg wrote:
You need additional lib (commons httpclient), you need special
servlet/action/jsp on B-side, you probably need to start threads, you
need to monitor those on A side, and and and...
One can use HttpURLConnection. There're probably some
anybody know of any tried and trusted ways of communicating between
webapps in Tomcat?
Thanks,
Darryl Pentz
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Darryl Pentz wrote:
I have an issue where webapp A needs to let webapp B know about an event, and
then return a response to webapp B's processing of that event to the browser.
So basically I need to communicate between webapps in the same container.
I have not found a no-brainer solution to
between webapps
Darryl Pentz wrote:
I have an issue where webapp A needs to let webapp B know about an event, and
then return a response to webapp B's processing of that event to the browser.
So basically I need to communicate between webapps in the same container.
I have not found
From: Darryl Pentz [mailto:[EMAIL PROTECTED]
Subject: Re: Communicating between webapps
Nevertheless, besides that, Tomcats classloader
hierarchy also prevents this mechanism.
If you put the singleton's class in the common library, it will be accessible
to both webapps. However, you have
Darryl Pentz wrote:
You would think so but it isn't that easy. Which is good to some degree,
because that would seem like a scary security vulnerability. Nevertheless,
besides that, Tomcats classloader hierarchy also prevents this mechanism.
So if I'm understanding you correctly,
- Original Message -
From: Darryl Pentz [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, October 08, 2008 10:02 PM
Subject: Re: Communicating between webapps
Bill,
You would think so but it isn't that easy. Which is good to some degree,
because
34 matches
Mail list logo