Results 1 to 2 of 2

Thread: GWT RequestFactory: how expose spring beans??

  1. #1
    Join Date
    Jun 2010
    Location
    Galicia, Spain
    Posts
    2

    Default 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. #2
    Join Date
    Jun 2009
    Posts
    26

    Default

    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

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
  •