Author |
Message |
15/01/2009 11:10:31
|
kabat
Power User
Joined: 10/12/2007 10:12:44
Messages: 78
Offline
|
Hi,
if we start 2 html sessions, we have a problem with the filedownload.
When we click once on the button, the filedownload screen is opened twice although we add only 1 message to the AsynchMessageBus (I checked it).
It happens only with html. I've already set cookies='false' in the META-INF/context.xml. But it didn't help.
Do you have any idea?
Agnes
|
|
|
15/01/2009 11:34:36
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5521
Offline
|
OK:
You start two browser instnaces, each one showing your application running in an applet. You press a button, on server side you add a message to the message bus. And then: two download popups are opened.
Is this the behaviour?
If yes:
then the "problem is clear" and it has nothing to do with server side sessions! (When working with CaptainCasa rich client, then alway there are in the meantime separated sessions per browser instance, regardless of context.xml).
The problem is that the message bus on client side is a singleton, and singletons are shared between applets till Java 6.1 Update 10. From release 6.1 Udate 10 on they are separated... (and the applet tag generated by us is configured so that the feature to start in separated instances is switched on).
For this reason there is an additional TRIGGER method on the FILEDOWNLOAD. Please use the trigger - it is much more straight forward in addition...
Björn
btw.: with webstart there is no behaviour like this, because webstart from the beginning on opened a separate VM per start.
|
Björn Müller, CaptainCasa GmbH |
|
|
16/01/2009 10:42:57
|
kabat
Power User
Joined: 10/12/2007 10:12:44
Messages: 78
Offline
|
Thank you for your hints. We tried both recommendations and it works very well.
One request from our side: could you please add the applet tag configuration to the developer's guide (I mean these 3 java parameters)? We couldn't find nothing about that.
Thanks, Agnes
|
|
|
16/01/2009 11:02:29
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5521
Offline
|
...yes, just added a corresponding chapter in "Integration Scenarios". Next Monday's update will contain the information.
Thanks! Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|