Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8035637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:22:00+00:00 2026-06-05T02:22:00+00:00

We have a GWT + GAE app and here is the situation: We have

  • 0

We have a GWT + GAE app and here is the situation:

We have two different forms/pages:

  1. Register as a Blood Donor
  2. Register as a Eye Donor

Till now we had underlying two different entry point classes which calls two different services one implemented as RegisterBloodDonorServiceImpl and another as RegisterEyeDonorServiceImpl.

Now, we want to implement a feature where we want to give option to the blood donor to register as eye donor as well. As the data is almost same so we dont want the end user to fill two forms and instead just provide a checkbox to achieve the same on the blood donor form.

So, now the question is how should we implement it?

  1. Should we call the RegisterEyeDonorServiceImpl from inside the RegisterBloodDonorServiceImpl after blood donor data is persisted in the service? If yes then we are not sure how to call one service from another service?

  2. Should we invoke two services one after another in the entrypoint implementing class?

  3. Any better idea ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:22:02+00:00Added an answer on June 5, 2026 at 2:22 am

    Where we’ve had code in our project that needs to be called from more than one service, we’ve found it best to extract the code from our *ServiceImpl classes and into its own class. Then each service can hold its own instance of this class as required.

    So in your case, I would recommend creating a class with a name such as EyeDonorServiceCalls with a method like registerEyeDonor. RegisterEyeDonorServiceImpl will keep an instance of this class and call registerEyeDonor when it receives an appropriate service call. RegisterBloodDonorServiceImpl will keep another instance and call registerEyeDonor as part of the registration for blood donors if the appropriate check box has been ticked.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm playing with a GWT/GAE project which will have three different pages, although it
We have a small app with Restlet on the GAE server and GWT and
I have a newly coded GWT/GAE app that uses RequestFactory and Editors on the
I have an app written with GWT and GAE where every supported city has
I have produced a new Maven Project from gae-archetype-gwt from within IntelliJ, and everything
I have a gwt project that uses gwt-mosaic. Here is the error message I
I have a GWT app that makes an RPC call to a server to
Does anyone have experience writing a Facebook application using GWT with GAE? I'm new
I have a need to capture IP address of the client in my GWT/GAE
ext-Myself and two co-workers have been working on a GWT project and coding in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.