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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:55:29+00:00 2026-05-16T18:55:29+00:00

is it possible to create something like static object using EJB3 in Jboss. in

  • 0

is it possible to create something like static object using EJB3 in Jboss. in other words i need to create something like a static object using singleton pattern or something like that, that is because i need to preload a configuration from database and i want that every bean that jboss creates uses this class to read this configuration instead of that every bean load it from the database.

Cheers,

  • 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-16T18:55:31+00:00Added an answer on May 16, 2026 at 6:55 pm

    EJB 3.1 does have a standard @Singleton annotation but EJB 3.0 doesn’t. However, JBoss offers a JBoss extension to the EJB 3.0 spec to create a singleton with the @Service annotation.

    From the JBoss EJB 3.0 Reference Documentation:

    Chapter 6. JBoss EJB 3.0 extensions

    JBoss provides a few extensions to the
    EJB 3.0 spec. This chapter describes
    those features here.

    6.1. @Service EJBs

    An extension offered by JBoss EJB 3.0
    is the notion of a
    @org.jboss.annotation.ejb.Service
    annotated bean. They are singleton
    beans and are not pooled, so only one
    instance of the bean exists in the
    server. They can have both @Remote and
    @Local interfaces so they can be
    accessed by java clients. When
    different clients look up the
    interfaces for @Service beans, all
    clients will work on the same instance
    of the bean on the server. When
    installing the bean it gets given a
    JMX ObjectName in the MBean server it
    runs on. The default is

    jboss.j2ee:service=EJB3,name=<Fully qualified name of @Service bean>,type=service
    

    You can override this default
    ObjectName by specifying the
    objectName attribute of the
    @Service annotation.

    References

    • JBoss EJB 3.0 Reference Documentation
      • 6.1. @Service EJBs
    • JBoss EJB3 Tutorials
      • Chapter 28. Service POJOs (JBoss extension of EJB3)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

With using plain C preprocessor macros, is it possible to create something like: INIT_BASE(0x100)
I want to create something like a leaflet/magazine using Latex. Is it possible to
Is it somehow possible to create something like a masterpage (asp.net) in jQuery Mobile?
is it possible to create something like a global dictionary for pspell? I tried
I know its possible to create activities by doing something like the code bellow,
Is it possible to create a nested select statement something like this in mysql?
Let say that I create an object and run it in a thread, something
I would like to create a static helper method that I can call from
Is this possible to create new {variable = x.something} and specify variable name dynamically?
Hi it'd like to know if it's at all possible create a parametric equalizer

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.