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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:51:53+00:00 2026-06-02T10:51:53+00:00

Is there any default scope for a @Named CDI bean without additional @…Scoped annotations?

  • 0

Is there any default scope for a @Named CDI bean without additional @...Scoped annotations? I have not found any relevant information in the official Weld documentation.

A @Named bean can be accessed over JSF without additional annotations, so some implicit scope seems likely.

Thank you

  • 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-02T10:51:55+00:00Added an answer on June 2, 2026 at 10:51 am

    The default scope is the dependent pseudo-scope @Dependent, as stated in the weld documentation:

    CDI features the so-called dependent pseudo-scope. This is the default
    scope for a bean which does not explicitly declare a scope type. […]
    An instance of a dependent bean is never shared between different
    clients or different injection points. It is strictly a dependent
    object of some other object. It is instantiated when the object it
    belongs to is created, and destroyed when the object it belongs to is
    destroyed.

    The javadoc for this annotation gives some more information about this scope:

    Beans declared with scope @Dependent behave differently to beans with
    other built-in scope types. When a bean is declared to have scope
    @Dependent:

    • No injected instance of the bean is ever shared between multiple injection points.
    • Any instance of the bean injected into an object that is being created by the container is bound to the lifecycle of the newly
      created object.
    • When a Unified EL expression in a JSF or JSP page that refers to the bean by its EL name is evaluated, at most one instance of the
      bean is instantiated. This instance exists to service just a single
      evaluation of the EL expression. It is reused if the bean EL name
      appears multiple times in the EL expression, but is never reused when
      the EL expression is evaluated again, or when another EL expression
      is evaluated.
    • Any instance of the bean that receives a producer method, producer field, disposer method or observer method invocation exists to
      service that invocation only.
    • Any instance of the bean injected into method parameters of a disposer method or observer method exists to service the method
      invocation only.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to have a default MessageBox.Show() caption? Let says I would
Is there any reason to switch from the default scope (transient?) to something else,
Is there any default functionality for arranging JInternalFrames in Java Swing? I would like
Is there any sense to declare default constructor in Java? class MyClass { public
Is there any way to change default font of controls in winforms. I must
Is there any way to suppress the default js and css loaded by application.html.erb
Is there any way to set the default value for a column as an
Is there any possibility to select a option field by default in a g:select
is there any best practice way to replace a part of the default template.
is there any way to reserve memory space to be used later by default

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.