how to customize atmosphere configuration

Hi,

We would like to change the atmosphere configuration that Vaadin uses by adding a custom ExecutorService (delegating to the appserver WorkManager). From the atmosphere side i think i know how to do this, however i am unsure how to change the atmosphere config embedded in Vaadin. Can i just create my own atmosphere.xml and do whatever i want ? Or does Vaadin expose the atmosphere configuration object it uses somehow ?

Thanks,
Jorg

Hi, using either atmosphere.xml or web.xml/@WebServlet init params should work for configuring Atmosphere.

Hi,

Thanks for the suggestion. I found the easiest way was just to set the atmosphere parameters i needed on the Vaadin servlet, since PushRequestHandler takes all init-param and passes them on to Atmosphere. So like this:

<servlet>     
  <servlet-name>myservlet</servlet-name>     
  <servlet-class>com.vaadin.server.VaadinServlet</servlet-class>     
  <init-param>     
    <param-name>org.atmosphere.cpr.broadcasterClass</param-name>      
    <param-value>my.custom.broadcaster</param-value>    
 </init-param>
...

Jorg