Results 1 to 3 of 3

Thread: [Contribution]Easy to Use Spring GWT Controller

  1. #1
    Join Date
    Nov 2008
    Location
    Sao Paulo, Brazil
    Posts
    21

    Exclamation [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
    Attached Files Attached Files

  2. #2
    Join Date
    Oct 2007
    Location
    Toronto, ON
    Posts
    90

    Default

    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.
    Marius Bogoevici,
    Spring Integration Committer

  3. #3
    Join Date
    Dec 2009
    Posts
    20

    Default

    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •