[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Filedownload problem  XML
Forum Index -> Development
Author Message
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
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5514
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
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
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5514
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
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team