Announcement Announcement Module
Collapse
No announcement yet.
how to make finder exposes as remote destination or service? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to make finder exposes as remote destination or service?

    currently i am using roo-1.1.0.M3, sts-2.5.0.M3.

    when i add finder to one of my entity, i notice roo didn't make it as service automatically
    so i can't invoke that finder method at my flex client.

    anybody can help please?

  • #2
    You can check how to use RESTful URLs.

    http://forum.springsource.org/showthread.php?t=84064

    Comment


    • #3
      Dynamic Finders not added to Flex Service classes

      Hi, we also have this problem that creating a dynamic finder does not seem to
      create a related entry for the finder in the Flex Service class for the entity.
      It does do this for the controller class when using MVC. Does anyone have a work-around for this that
      makes it easy for us to add this service? i will follow up with what I learn.
      thanks,

      Brian
      when i do:


      roo> finder add --finderName findFeedInfoEntitysByVendor --class ~.domain.FeedInfoEntity
      all i get from roo is...
      Managed SRC_MAIN_JAVA/com/saic/ccs/domain/FeedInfoEntity.java
      Created SRC_MAIN_JAVA/com/saic/ccs/domain/FeedInfoEntity_Roo_Finder.aj

      Comment


      • #4
        Just edit the service aj file...

        E.g. for my WebstoreUserService_Roo_Service.aj

        PHP Code:
            @SuppressWarnings("unchecked")
            public List<
        WebstoreUserWebstoreUserService.findWebstoreUsersByName(String name) {
                if (
        name == null) throw new IllegalArgumentException("A name string is required");
                return 
        WebstoreUser.findWebstoreUsersByName(name).getResultList();
            } 

        Comment

        Working...
        X