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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:24:04+00:00 2026-06-08T09:24:04+00:00

Thank in advance. I am looking for message type or anything which is fast

  • 0

Thank in advance.

I am looking for message type or anything which is fast and easy way to return a String value in Java.

for example. I have a method

void getStringvalues(int a, int b){

int c = a + b;

...
...
....


}

And the above Method is called from Hessian php server.

So i have to send a message back to php from Java like an acknowledgement. which has to be a string. Is there any way to do that.

I can use Return, but java method is dealign with huge db and caluculations. And php’s session will expire until i finish the whole process and send return type ” “.
at the end.

Or can i use return type in the beginning of the process ?

Thank again,

  • 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-08T09:24:05+00:00Added an answer on June 8, 2026 at 9:24 am

    If I understand correctly, you want your Java method to return an intermediate result, and then continue. So you have two solutions:

    1. Split the method in two parts, and call each submethod from the client:

      intermediateResult = server.doFirstPart();
      server.doSecondPart();
      
    2. Make the method do the second part in a separate thread:

      public String doEverything() {
          ...
          String intermediateResult = ...;
          Thread t = new Thread(...);
          t.start(); // launch the thread to compute the rest asynchronously
          return intermediateResult;
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

what is webparts in asp.net? a simple example on webparts. thank you in advance.
thanks in advance for looking at this. Essentially, I'm calling didInsertElement() and binding an
Greetings and thank you in advance for the help. I created a user control
I am new to programming and python so I thank you in advance for
This one has me pretty rattled so I thank you in advance for your
First, a thank you in advance. Second, this is my first post so apologies
i have very serious problem if any tech expert can help...thank you in advance..
Thank you very much in advance for reading. I'm programming a web application in
I have been looking around the internet for examples of an AJAX function which
I am looking to the best way to configure eclipse or STS to work

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.