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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:15:56+00:00 2026-06-09T20:15:56+00:00

Our application is launching a series of threads via the @Asynchronous annotation on EJBs.

  • 0

Our application is launching a series of threads via the @Asynchronous annotation on EJBs. However, JBoss (contrairy to this) is not limiting the number of threads launched. Debugging shows that it is using a default class rather than the one configured in the XML linked in the issue above. The comment on the class says:

Static singleton access to a default java.util.concurrent.ExecutorService
implementation used by clients who do not supply a
org.jboss.ejb3.async.spi.AsyncInvocation to handle asynchronous
EJB 3.1 invocations.

So the question is under what circumstances is JBoss not supplying an org.jboss.ejb3.async.spi.AsyncInvocation class and how can you ensure that this does happen?

  • 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-09T20:15:57+00:00Added an answer on June 9, 2026 at 8:15 pm

    JBoss AS 6.1 should indeed limit the number of threads by default, but due to a bug this simply does not happen. The global setting is sadly ignored without warning.

    If it doesn’t concern too many beans, you can use the org.jboss.ejb3.annotation.Pool annotation:

    @Pool(value = POOL_IMPLEMENTATION_STRICTMAX, maxSize = 10)
    public class SomeBean {
        // ...
    }
    

    Be careful though, if I’m not mistaken this will create a pool per bean.

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

Sidebar

Related Questions

Our application takes text from a web form and sends it via email to
Our application has recently started creating (and not cleaning up) temp files at a
Our application server has a folder used to store attachments uploaded by customer. This
Our application receives log files via email and so the lines are often broken
Our Application deployment structure is something like this: User can download the application form
Our application currently looks like this: [ Navigation Controller] [ Content ] [ Tab
Our application (C# .Net 3.5) works fine on WinXP machines (embedded or not). Now
Our application is a Java-GWT application that uses Guice-Persist and Guice-Servlet extensively. We have
Our application stores records with shorter texts (strings of 100-1000 characters). It provides search
Our application is a bit slow to load at startup, i'm wandering myself if

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.