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

  • Home
  • SEARCH
  • 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 9253503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:14:09+00:00 2026-06-18T11:14:09+00:00

I have an enterprise application built with Java 6, Spring Framework 3.1.2 and Mule-ESB

  • 0

I have an enterprise application built with Java 6, Spring Framework 3.1.2 and Mule-ESB 3.3.0, among other libraries not related to this question.

Our beans and services are all declared with @Named and @Inject JSR-330 annotations, respectively for automatic component scanning and for dependency injection (no EJBs, only service beans). When deployed into JBoss 4.2.3 (our test environment) everything works fine. However, when deployed into WebSphere 7, the JSR-330 annotations seem not to be working. The beans marked with @Named are just not detected, at all.

I can assure everything is configured right (since it is working in JBoss). Specifically, the <context:component-scan /> has the base-package attribute correctly defined and the scope-resolver attribute correctly configured to use Jsr330ScopeMetadataResolver (we tried without it too).

I am aware WebSphere 7 (7.0.0.23) may not support such kind of annotations. I am yet to test it with @Component and @Autowired Spring equivalents. Unfortunately, we would very much like to use JSR 330 annotations so our classes wouldn’t directly depend on Spring, even though we’re using Spring Framework under the hood.

Nevertheless, although I’d spent one full work’s day looking for a definite statement that WebSphere 7 does not support JSR 330 annotations, I haven’t found anything so far.

Further, I can’t see why it would not work, since I’m assuming Spring Framework is the one doing all the work, through the <context:component-scan /> directive in the application-context.xml file.

Can anyone bring some light into this issue?

Is there a way to activate dependency injection via annotations in WebSphere 7?

If I switch back from the JSR 330 @Named / @Inject annotations to Spring’s own @Component and @Autowired is it likely to work?

In a desperate attempt, can I extend Spring’s ComponentScanBeanDefinitionParser so it will detect JSR 330 annotations even in WebSphere 7?

If nothing works, I will eventually fall back to plain XML configuration. That is highly undesirable, however, because there will be hundreds of beans to be manually configured in the XML.

  • 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-18T11:14:10+00:00Added an answer on June 18, 2026 at 11:14 am

    WebSphere 8 seems to be the correct version to use; it supports EE6 (WebSphere 7 is EE5), which in turn contains CDI 1.0 (hence JSR 299).

    Below is a snippet from DeveloperWorks that summarises relationship between WebSphere versions, JSR 299 and JSR 300

    Dependency injection is a technology that has surfaced in various
    implementations many times before making it into the Java EE world.
    The Spring Framework and the Google Guice library are popular
    implementations. In JSR 330, an attempt was made to include these
    capabilities into the J2SE platform. JSR 299 is a specification that
    used the APIs defined in JSR 330 and added more capabilities to
    support Java EE needs
    . IBM WebSphere Application Server V8 and V8.5
    (non-Liberty profiles) are fully compliant Java EE 6 containers and
    implement JSR 299
    .

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

Sidebar

Related Questions

I already have an enterprise Java EE application. I want expose some of the
The base of our enterprise application is OSGI and we have several Java projects
I have this typical scenario. I have a smartclient application built on .net 2.0
I have an internal enterprise application I've developed for my company built on .Net
I have Enterprise Application with EJB3 and JSF on Glassfish server. After running this
We have an enterprise application (deployed as an ear) is a batch processor which
We have a large enterprise application where projects are scoped designed and finally coded
Does MS have a sample enterprise application that demonstrates the use of different Enterprise
I have a typical enterprise/business application that I am developing that includes orders, salespersons,
I am developing an enterprise application for android tablets and i have limited the

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.