Vaadin 7.2 Push with WildFly 8

Hi,

I´m using WildFly 8 and want to use the new LONG_POLLING transport mode for Push to get Cookies available in my app.

But it seems that WildFly 8 ONLY works with websockets.

When WildFly 8 only works with websockets how can I implement to write a cookie?

Before there was push support for WildFly 8 I´ve set UI.getCurrent().setPollInterval to get site updates and cookies working.
But this led to some problems on some clients.

Any advice to get cookies working with the Vaadin Push without using pollInterval of UI?

Thanks

Writing Cookies when using Push (Websockets) is possible with Javascript:

[code]
String script = “document.cookie = '” + key + “=” + value + "; ";
script += “expires=” + expirationDate.toString() + "; ";
script += “path=” + path + “'”;

Page.getCurrent().getJavaScript().execute(script);
[/code]I don´t like this way very much.
Is there another way to set a Cookie when using Push with Websockets?

Hi,

There is a handy add-on to abstract that, but too bad it isn’t updated to Vaadin 7 yet.

https://vaadin.com/directory#addon/browsercookies:vaadin

cheers,
matti