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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:38:27+00:00 2026-05-25T10:38:27+00:00

we are developing a set of components that can be used by our applications

  • 0

we are developing a set of components that can be used by our applications which currently run on Jboss 4.2.3.GA.

However, since JBoss 4 is quite old now, we’d like to migrate to JBoss 5+ (most likely JBoss 6.1).
In that case, we have a problems with our components containing stateless session beans annotated with the JBoss specific @PoolClass annotion, which has been renamed to @Pool as of JBoss 5.

As you can see, using that annotation in the components introduces a dependency not only on the application server but on specific versions as well. Thus I’d like to get rid of that annotation and use configuration via XML.

In that case, I’d like not to have to define a pool class per session bean, since almost all of them use the StrictMaxPool class with the same settings. If any session bean needs a different pool or different setting, it’s ok to provide a specific entry, but I’d rather not do that for the majority.

The default pool class is generally defined in ejb3-interceptors-aop.xl. However, that configuration applies to all applications deployed on that server.

What I’d like to do now, is to define a default pool class (with default settings) per application, if possible without adding anything specific to the session beans in our components (like the JBoss specific @AspectDomain annotation).

Is that possible and if yes, how?

I couldn’t manage to find any useful information yet, so I’d be glad if someone could point me in the right direction.

Edit: If you have information on how to do that in JBoss 5+, that would be great too, but JBoss 4 is of higher priority for now.

  • 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-25T10:38:28+00:00Added an answer on May 25, 2026 at 10:38 am

    Seems like I found a solution:

    There’s a problem with JBoss AOP 1.5.6 which is used by JBoss 4.2.3.GA.
    Although there’s no bug filed it seems there is one preventing the scoped use of pool definitions (it looks like the source of the problem is an inverted if-condition 🙂 ).
    Upgrading to JBoss AOP 2.1.8 works like a charm.

    Here’s what I do:

    • Put a jboss-aop.xml file into the root of an ejb jar in the ear (we already have one that contains our persistence.xml).
    • In the jboss-aop.xml create a domain Stateless Bean that extends from the default Stateless Bean domain and inherits all bindings and definitions
    • Inside the extended domain override the pool class definition.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a set of applications that work together to create a system for
I am developing a set of applications that all hit the same database, and
Good evening, I am developing a set of Java classes so that a container
I am currently developing a library and a set of programs using this library,
I am developing an iPhone game in which birds bounce. I have set up
I know that when developing for Xbox in XNA, you basically just set the
I'm developing an application which uses different components to create an XHTML document, I
I'm developing an extension that requires to set focus to the address bar at
I’m a huge believer in consistency, and hence conventions. However, I’m currently developing a
I am developing a component that can list files that users select from their

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.