Announcement Announcement Module
Collapse
No announcement yet.
GWT RequestFactory: how expose spring beans?? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • GWT RequestFactory: how expose spring beans??

    Hi

    How can I expose an spring bean as a gwt RequestFactory service?

    For what I saw it's quite easy to expose an static method of an arbitrary class

    but for @Instance methods it looks that the RequestFactoryServlet is expecting the remote object to be an @Entity to be loaded by its id...

    can any other objects that are not an @Entity be exposed as remote services?


    it could be ok a new service instance that was maked as @Configurable, but is it posible to expose an spring singleton bean as a requestfactory service?

    Regards
    Ivan

  • #2
    Currently there is no support for that. You either have to expose your methods as static or it must be an Entity if you use the @Instance annotation. There will be support for arbitrary service object added. If it does not make it into the GA release it will be added in a point release that should come out pretty quickly after the GA release.

    https://jira.springsource.org/browse/ROO-1186

    Comment

    Working...
    X