I would like to create a GWT app which looks like a portal. To be more explicit, the ideal solution could be a global application which calls widgets from other applications.
I need to keep each application independent (I have to be able to create a war for each and deploy them separately). To do that, i need to keep the widgets logic into the daughter applications, the global application only call widgets and manage global functionality (user rights, authentication, etc.)
I tried to include projects into the global application through BuildPath and by including .jar, but the server sides of the included apps are ignored.
The only way i found to make it run correctly is redefined the servlet into the global app.
For example :
app1 web.xml :
<servlet>
<servlet-name>GreetServlet</servlet-name>
<servlet-class>com.app1.server.GreetingServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>GreetServlet</servlet-name>
<url-pattern>/app1/greet</url-pattern>
</servlet-mapping>
redefine into the global app web.xml like this :
<servlet>
<servlet-name>GreetServlet</servlet-name>
<servlet-class>com.app1.server.GreetingServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>GreetServlet</servlet-name>
<url-pattern>/globalapp/greet</url-pattern>
</servlet-mapping>
I saw in the GWT doc, modules are kind of the solution i'm looking for, but it seems to be applicable for client side code only.
Any suggestion to help me ? if you need more explanation, please ask me.
Thanks
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment