English 中文(简体)
• 如何以最佳方式将全球WT与现有的春季服务结合起来?
原标题:Best way to integrate GWT with existing Spring services?

我知道,这个问题很可能在以前多次提出过。 我 lot了很多东西,但我还没有一个明确答案,我正在cra。

我必须启动一个新项目,该项目包括利用“全球倡议”的地球同步应用,该项目已经存在。 该项目以3年级为基础,已经具有持久性和服务层面。 服务层次被一个灵活客户使用,现在我不得不用设在WT的仪取代。

我已经阅读了许多有关 g和春天融合的内容,即使用泉水等图书馆(似乎已经过时)、 g等。 我也宣读了关于请求Factory而不是GWT-RPC的模式和MVP模式的比喻,后者似乎是复杂应用的一种良好办法(我的手头将有60多个不同的屏幕),但我不知道能否与春天结合。

What I can see is that the GWT world is moving fast, so for today, when GWT 2.1.1 is out, can somebody tell me, which is the best way to integrate GWT with an existing Spring project?

如果能对答案产生影响,我要指出,我也打算把春天安全结合起来。

感谢。

问题回答

我正在利用泉水将水池改装成春天豆。 它只是一个简单的类别,并适当运作。

如果你需要电离层,你应考虑电离层。

我不相信这是最佳方法,但我使用以下通用方法。

public static Object getDao(String daoName,GenericServlet gs) {
    ServletContext context = gs.getServletContext();
    WebApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(context);
    return applicationContext.getBean(daoName);
}

我的下游班延伸了作为通用Servlet子的远程服务(使用GWT-RPC的Im)。





相关问题
array dependency injection in spring?

is there a way to use dependency injection to inject all available implementations of a specific interface in spring? This is kind of the same thing as asked here for .NET. Though my aim is to use @...

Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Grails Packaging and Naming Conventions

Packaging Controllers, Services,etc. i.e. - com.company.controllers - com.company.services Is this a good practice or should be avoided by all means?? Another worth mentioning problem I encountered ...

How can I determine Objects in application context?

I am trying to write a portlet for Liferay (using Tomcat and Spring) and need to use a database via Persistence API/Hibernate. I am using some configuration XMLs (applicationContext.xml, etc.) and ...

How to prevent JPA from rolling back transaction?

Methods invoked: 1. Struts Action 2. Service class method (annotated by @Transactional) 3. Xfire webservice call Everything including struts (DelegatingActionProxy) and transactions is configured ...

热门标签