Announcement Announcement Module
Collapse
No announcement yet.
[Contribution]Easy to Use Spring GWT Controller Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Contribution]Easy to Use Spring GWT Controller

    Hey guys!

    I've developed some small classes to help working with GWT RPC's and Spring with Annotations.
    DOWNLOAD-> SpringGwtController


    It's really Simple to use:
    1. Create the GwtServiceUrlHandlerMapping bean
    HTML Code:
    <bean class="br.mikhas.gwt.spring.GwtServiceUrlHandlerMapping" />
    2. Annotate your @Service implementation with @GwtRemoteService:

    Code:
    import org.springframework.stereotype.Service;
    
    import br.mikhas.athome.view.client.TestService;
    import br.mikhas.gwt.spring.GwtRemoteService;
    
    @Service
    @GwtRemoteService("test.rpc")
    public class TestServiceImpl implements TestService {
    
    	public String[] testMethod(String text) {
    		String[] result = { "this is", "a test" };
    		return result;
    	}
    
    }
    Done

  • #2
    Hey,

    That's great, but please note that this is the forum for the Spring Integration project (Enterprise Integration Patterns-based). You may want to check the Web section.

    Comment


    • #3
      I am interested in your solution. I have been looking for solutions to integrate GWT with Spring. But can you give me a complete sample which demonstrates how to implement GWT RPC?

      Thanks,
      Alex

      Comment

      Working...
      X