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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:02:44+00:00 2026-06-10T21:02:44+00:00

I’m using custom namespaces with Spring sometimes. Like the CXF one or the ActiveMQ

  • 0

I’m using custom namespaces with Spring sometimes. Like the CXF one or the ActiveMQ one.

Here’s an exemple of how i declare my embedded ActiveMQ broker server:

<amq:broker useJmx="false" persistent="true">
    <amq:transportConnectors>
        <amq:transportConnector uri="${mobilepush.activemq.broker.transport.connector.uri}" />
    </amq:transportConnectors>
    <amq:persistenceAdapter>
        <amq:kahaPersistenceAdapter directory="${mobilepush.activemq.broker.queue.persistence.directory}" maxDataFileLength="33554432"/>
    </amq:persistenceAdapter>
</amq:broker>

I don’t know so much about custom namespaces with Spring, but in my opinion these namespaces are just providing a “shortcut” for a more verbose Spring bean declaration.

Some libraries like Xebia Management Extras provide in their documentation the equivalence between the custom namespace and the raw spring implementation:

<management:jms-connection-factory-wrapper 
             id="connectionFactory" 
             connection-factory="rawConnectionFactory" />

Is equals to:

   <bean id="connectionFactory" class="fr.xebia.management.jms.SpringManagedConnectionFactory">
      <property name="connectionFactory" ref="rawConnectionFactory" />
   </bean>

http://code.google.com/p/xebia-france/wiki/ManagedJmsConnectionFactory


But sometimes the custom namespace documentation is not precise enough and i’d like to understand what’s going under the hood in term of Java classes…

So what i’d like to know is how can i get the raw Spring bean declaration equivalence of a custom namespace usage?

Is there any “automatic translation tool” included in any IDE?

As far as i know, it seems there are different tools to create custom Spring namespaces, like XBean… Is there an automatic or manual way to understand how work the namespace under the hood without knowing all these tools?

Thanks

  • 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-10T21:02:46+00:00Added an answer on June 10, 2026 at 9:02 pm

    This is a good reference to how Spring handles Custom namespaces – http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/extensible-xml.html#extensible-xml-schema

    Every custom namespace has an associated NamespaceHandler which is registered using a spring.handler file in META-INF/spring.handlers in different jar files.

    For eg. the context namespace, if you look into the META-INF/spring.handlers in spring-context*.jar file you would see the namespacehandler for the context namespace:

    http\://www.springframework.org/schema/context=org.springframework.context.config.ContextNamespaceHandler
    

    which internally registers the different parsers for the tags under context namespace.

        registerBeanDefinitionParser("property-placeholder", new PropertyPlaceholderBeanDefinitionParser());
        registerBeanDefinitionParser("property-override", new PropertyOverrideBeanDefinitionParser());
    

    each of these parsers register the different bean definitions that you have mentioned –

    So unfortunately there is no simple tool to find out which bean definitions are registered for a specific custom namespace, you will have to go through the code for the specific BeanDefinition parsers.

    XBean which is used by ActiveMQ simplifies this process of registering a custom Namespacehandler a little, by handling some of the boiler plate

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

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm making a simple page using Google Maps API 3. My first. One marker
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.