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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:17:06+00:00 2026-05-13T15:17:06+00:00

I usually use Commons Configuration for manage my applications configs. I have used properties

  • 0

I usually use Commons Configuration for manage my applications configs. I have used properties files configuration. Now I’m interested in using a JNDIConfiguration but I’m not able to understand how this works reading the documentation or googling it.

Contextualizing, I’m working in webapps running in an JBoss AS.

Where will be the properties stored? In a file? some tables in a database?

I will be grateful for any guidance at this level even if it comes in shape of links where I can read some valuable information about it.

As a final note my goal is to free me of linking a file with a hardcoded path for my properties, but also don’t force me to have my config in database tables. If you have any suggestions on how to do that in some other way be free to share.

  • 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-13T15:17:07+00:00Added an answer on May 13, 2026 at 3:17 pm

    Where will be the properties stored? In a file? some tables in a database?

    As @ewernli mentioned, the Java EE way to add entries in the JNDI tree is to use env-entry in your deployment descriptor(s).

    Now, if you don’t want to repeat the same env-entry in several deployment descriptors, then there is a service for specifying global JNDI bindings: JNDIBindingServiceMgr.

    Below, the provided jboss-service.xml example:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE server PUBLIC "-//JBoss//DTD MBean Service 4.0//EN"
              "http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd">
    <server>
       <mbean code="org.jboss.naming.JNDIBindingServiceMgr"
             name="jboss.tests:service=JNDIBindingServiceMgr">
          <attribute name="BindingsConfig" serialDataType="jbxb">
             <jndi:bindings
                xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:jndi="urn:jboss:jndi-binding-service:1.0"
                xs:schemaLocation="urn:jboss:jndi-binding-service:1.0 resource:jndi-binding-service_1_0.xsd"
                >
                <jndi:binding name="urls/jboss-home">
                   <jndi:value type="java.net.URL">http://www.jboss.org</jndi:value>
                </jndi:binding>
    
                <jndi:binding name="hosts/localhost">
                   <jndi:value editor="org.jboss.util.propertyeditor.InetAddressEditor">
                      127.0.0.1
                   </jndi:value>
                </jndi:binding>
    
                <jndi:binding name="maps/testProps">
                   <java:properties xmlns:java="urn:jboss:java-properties"
                      xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
                      xs:schemaLocation="urn:jboss:java-properties resource:java-properties_1_0.xsd">
                      <java:property>
                         <java:key>key1</java:key>
                         <java:value>value1</java:value>
                      </java:property>
                      <java:property>
                         <java:key>key2</java:key>
                         <java:value>value2</java:value>
                      </java:property>
                   </java:properties>               
                </jndi:binding>
             </jndi:bindings>
          </attribute>
          <depends>jboss:service=Naming</depends>
       </mbean>
    
    </server>
    

    If this is not what you are looking for, then I don’t understand what you’re looking for 🙂 In that case, you should maybe clarify it.

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

Sidebar

Related Questions

Joins are usually used to fetch data from 2 tables using a common factor
Usually I would use virtualenv and pip for deployment of web applications. With Google
I usually use the switch statement when I have to write multiple condition statements,
It's common to use the command more. more is usually used with pipe. so
I usually use a boolean 'firstTime' like this: in C++: bool firsTime = true;
I usually use Visual Studio Team System 2008 Source Control Explorer with TFS, but
I usually use the following pipeline to grep for a particular search string and
I usually use this line to import file from out of the current folder
I usually use pointers in the following manner char *ptr = malloc( sizeof(char) *
I usually use a TabControl and somehow hide the tabs and navigate through them.

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.