Multiple applications in different roles

I would like to map several application servlets as Vaadin apps in same war file sinceGoogle Appengine datastores cannot be shared across webapps. My admin app and others also need to run in different security roles.

I saw some posts saying it

“should be possible but never tried it”

but it looks like an explicit servlet mapping is required for /VAADIN/* and that can only be associated with one servlet.


<servlet-mapping>
	<servlet-name>contactUs</servlet-name>
	<url-pattern>/contactUs/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
	<servlet-name>admin</servlet-name>
	<url-pattern>/admin/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
	<servlet-name>contactUs</servlet-name>
	<url-pattern>/VAADIN/*</url-pattern>
</servlet-mapping>

How can I map admin and contactUs Vaadin servlets to run in same war file?

There are some posts talking about Vaadin 7 and Navigator7 add-on that may be related to this so I’m wondering what the status is on this topic.

Hi Paul,

your mapping is ok. /VAADIN/* is enough to be mapped only to one (any) app.

Thanks. I just confirmed it works. Thought I tried it earlier but maybe I forgot to save web.xml or something :slight_smile: