Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2290

Tooling to create GWT Interface jar from @Name/@WebRemote annotations

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0.GA
    • Fix Version/s: None
    • Component/s: Tools
    • Labels:
      None
    • Environment:

      seam-remoting, GWT

      Description

      Create tooling support to automatically generate a separate GWT Interface jar.

      By default/convention, an interface class needs to be created for consumption by a GWT Web Application that conforms with the (ejb3, other?) implementation (for mapping purposes). Tooling support to automatically create this would reduce errors and improve maintenance and ease-of-integration of both server-side and GWT web app side.

      Recommend tooling support for:
      seam-gen
      ant
      maven2

      For example:
      server impl:
      ============
      package com.domain.app;
      @Stateless
      //seam/gwt remoting support - should be name of GWT Service class
      @Name("com.domain.app.gwt.client.QueryGwtService")
      public class QueryGwt implements QueryGwtLocal {
      public String gwtTest()

      { return "test ok"; }

      }
      //--------------------
      package com.domain.app;
      @Local
      public interface QueryGwtLocal {
      //Seam-gwt remoting through the interface, not the session bean
      @WebRemote
      public String gwtTest();
      }
      ==============

      The above server implementation with SEAM annotations will always need the following interfaces for GWT:
      ===================
      package com.domain.app.gwt.client;
      public interface QueryGwtService extends RemoteService{
      public String gwtTest();
      }
      //----------------
      package com.domain.app.gwt.client;
      public interface QueryGwtServiceAsync{
      public void gwtTest(AsyncCallback callback);
      }
      ==================

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shane.bryzak Shane Bryzak
                Reporter:
                dhartford Darren Hartford
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: