Tooling to create GWT Interface jar from @Name/@WebRemote annotations
---------------------------------------------------------------------
Key: JBSEAM-2290
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2290
Project: JBoss Seam
Issue Type: Feature Request
Components: Tools
Affects Versions: 2.0.0.GA
Environment: seam-remoting, GWT
Reporter: darren hartford
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);
}
==================
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira