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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:07:13+00:00 2026-05-27T13:07:13+00:00

i have a java application which has various Agents(Java Algo’s) which listen to messages

  • 0

i have a java application which has various Agents(Java Algo’s) which listen to messages and process them . Each agent executes these messages on a single thread where these messages are added in a blocking queue to be processed one by one . This processing on a single message involves i/o with a remote machine . Overtime , these threads get hung one by one due to an inherent Bug in java . They say the bug is fixed but its not , i have run it on all latest java versions and tried all workarounds for a month now .So, i am planning to move to scala actors .

Below are my questions :

  1. Is the above requirement possible in scala actors and will it overcome the java bug ?

  2. A simple overview of how to do it if it’s possible 🙂

    P.S : i have been reading through the programming in scala book for getting the syntax and basic features .

  • 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-27T13:07:13+00:00Added an answer on May 27, 2026 at 1:07 pm
    1. For the first question the answer is yes , scala actors do overcome the bug mentioned due to its actor concurrency model . I have been using it over the past 2 weeks with no downtime . Actors are lightweight , easy to scale and are definetly performing faster than my threaded agents in java . The memory consumption has come down as well weirdly.

    2. Now for the implementation part , writing actors is easy once you know the basics of scala . If you are using eclipse + maven plugin m2eclipse-scala is the place to start . i have successfully built an osgi bundle using the steps mentioned there . The scala ide is a work in progress and is a bit of pain to write code .

    3. Now for the scala actors , working with their message inbox’s is hard . Accessing them is restricted and they seem to easily get out of memory when the rate of message’s coming in is higher than the rate at which the actor could process . Akka actors definitely have an advantage here in by enabling us to set the max mailbox size,mailbox-push-timeout..etc or you can have your own inbox implementation .

    Thanks for you help

    sanre6

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

Sidebar

Related Questions

I have a Java Application which has to load an DLL with a few
I have an application which resides in ROOT. This application has a java class(in
I have a Java application which requires certain software (one of them being Perl)
I have a java application which has a GUI in both English and French,
I have a java application which has a tray icon in the top menu
I have a layered application in Java which has a multi thread data access
I have an java EE application which has one message-driven bean and it runs
I have a web application which has several users and each user will have
I have created a java application which has a JTabbedPane that contains three JPanels.
I have created a Java application which has the following Apache Ant build file:

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.