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 7512355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:50:31+00:00 2026-05-29T23:50:31+00:00

I have a web service that is based on Java classes. Is it possible

  • 0

I have a web service that is based on Java classes. Is it possible to run code after an acknowledge message has been returned within Java method of the called operation.

To understand better, this is the workflow:

  1. Call a specific operation (method) of my web service
  2. Start processing
  3. Sent an ack that the processing has been started (this is done be a return value)
  4. Continue processing

Threads do not work, since the threads need to be terminated before the return of the method.

Does anybody has an idea how to implement this scenario or an alternative to it?

Thanks in advance.

  • 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-05-29T23:50:34+00:00Added an answer on May 29, 2026 at 11:50 pm

    You will need to use Threads for this, as you are splitting program flow into two; the returning path and the processing path are separating and running alongside each other.

    If you need the acknowledgement for the method start to be sent by the return of the method then why can’t your service providing methods look as simple as something like this?

    public Acknowledgement someService() {
      new Thread(new SomeServiceRunnable()).start();
      return new Acknowledgement();
    }
    

    The service will be started, then the method will return (thus notifying that the process has started) whilst the processing continues until the thread ends…

    Am I missing something here about what you need to achieve?

    Hope this helps.

    EDIT:

    It seems that some answers have been engineered to address problems which I did not see as being presented as part of the question. Here are some assumptions I made when making my answer, presented so that anyone reading this answer might have a better idea of when it might not apply to their particular situation:

    This is for a situation where you want only to acknowledge that a service has conceptually speaking begun execution. The acknowledgement can give no information about the success of any part of this execution or its initialisation, only that it has conceptually started, that is to say that the Associated Runnables run() will be called at some point.

    Of course if you want the execution to start and the caller to return, then the significance of the acknowledgement will necessarily be limited by just exactly how much of the task waited to be executed before returning, here no waiting is done and the acknowledgement is returned immediately, and so no extra information can be given.

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

Sidebar

Related Questions

We have a C++ (SOAP-based) web service deployed Using Systinet C++ Server, that has
I have a Spring framework based Java web application, which has been built in
I have a WCF web service that returns a string to a Java based
I have an application that connects via https to a SOAP-based web service that
I have a WCF client connecting to a Java based Axis2 web service (outside
I have a web service that is running and generates a WSDL file based
I have a java application that has Web Services published using Axis. With the
I have a .Net web application that needs to interact with a Java-based system
I have a web-service that I will be deploying to dev, staging and production.
I have a web service that I created in C# and a test harness

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.