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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:02:35+00:00 2026-05-28T19:02:35+00:00

Methods like aggregate on scala.collection.parallel.immutable.ParIterableLike process using Threads. Does that mean I shouldn’t be

  • 0

Methods like aggregate on scala.collection.parallel.immutable.ParIterableLike process using Threads.

Does that mean I shouldn’t be using parallel collections if my Scala code is called from an EJB, because in EJB land its illegal to do your own threading?

If it is illegal, is there any plan to make an EJB friendly version that would use the EJB 3.1 @Asynchronous annotation?

See also: http://markusjais.com/scalas-parallel-collections-and-the-aggregate-method/

  • 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-28T19:02:37+00:00Added an answer on May 28, 2026 at 7:02 pm

    Its “illegal” in the sense that its not recommended, not in the sense that it can not be done. Its not recommended because the EJB container has the responsibility for starting/stopping/activating/passivating threads. If your bean started a thread and let it run indefinitely you could certainly get into odd states. If however your bean started a thread (such as by using a par collection operation) and did not return to the container until your par operation was complete, then you would likely be fine.

    See http://java.sun.com/blueprints/qanda/ejb_tier/restrictions.html#threads for more details.

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

Sidebar

Related Questions

Does Python have extension methods like C#? Is it possible to call a method
I have a class that contains two methods like these: public String getFoo(Int32 a)
I have two methods that look almost the same, except for the aggregate function
Many methods like stop() , resume() , suspend() etc are deprecated. So is it
Like there are 3 methods like: Modify ( int arg ) Modify ( double
I'm talking about methods like -removeAllObjects, -removeLastObject, etc for NSMutableArray. The documentation only says
I am looking for how the methods like ArrayList#sort(Closure) are implemented in Groovy. I've
Most web browsers support only HTTP methods like GET and POST and do not
I often plug pre-configured lambdas into enumerable methods like 'map', 'select' etc. but the
Are there any implementations of all the nifty Selenium on Rails methods like wait_for_visible

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.