Questions tagged [xml-configuration]

A configuration that could be parsed from the XML file.

A configuration that could be parsed from the XML file. Many frameworks and applications use XML files to keep their configuration persistent and loadable. Beside them the Apache Commons Configuration XMLConfiguration class that is able to parse XML documents.

For example, the Struts 2 framework has a configuration file struts.xml that could be used with any web application that uses this framework.

185 questions
19
votes
2 answers

Can spring framework override Annotation-based configuration with XML-based configuration?

Can spring framework override Annotation-based configuration with XML-based configuration? I need to change a dependency of a bean which is already defined via annotations and i am not the author of the bean.
mert inan
  • 1,537
  • 2
  • 15
  • 26
17
votes
1 answer

In Hibernate: is it possible to mix Annotations and XML configuration for an Entity?

So, is possible to mix both configurations instead of use only one of those? All I want is to keep all the configuration by Annotations and read the table by a XML. Is it possible? Thanks a lot. Edit: How will be the hbm.xml file? I have this…
ganzux
  • 874
  • 3
  • 15
  • 35
10
votes
3 answers

Configure spring xml configuration namespaces to avoid idea warnings

I have the following spring xml configuration header:
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
10
votes
1 answer

many-to-many mapping in NHibernate

I'm looking to create a many to many relationship using NHibernate. I'm not sure how to map these in the XML files. I have not created the classes yet, but they will just be basic…
10
votes
4 answers

java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderContext.getResourceLoader()Lorg/springframework/core/io/ResourceLoader

I am working on a Spring application on Tomcat7, JDK1.7, Maven and other components. Recently, I made a major change to the application, requiring switching over to Spring 3. After the change, I'm seeing the below exception on deploying to dev…
James
  • 1,237
  • 2
  • 20
  • 32
9
votes
1 answer

How do I make my ActiveMQ broker drop offline durable subscribers

We have an ActiveMQ broker that's connected to from very different clients using JMS, AMQP, and MQTT. For some reason we haven't figured out yet a specific set of MQTT clients often (not always) subscribes durably. This is a test environment where…
sbi
  • 219,715
  • 46
  • 258
  • 445
9
votes
2 answers

Example of xml config taking precedence over annotation config in Spring

In a book I have read, that XML configuration has higher priority than annotation configuration. But there aren't any examples of it. Could you show an example of it?
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
8
votes
2 answers

How-to configure Spring Social via XML

I spend a few hours trying to get Twitter integration to work with Spring Social using the XML configuration approach. All the examples I could find on the web (and on stackoverflow) always use the @Config approach as shown in the samples For…
6
votes
3 answers

How to display a list of database records (retrieved via Hibernate) to a JSP page in Struts 2?

I am trying to display the database records in my JSP page in Struts 2 using Hibernate. I have done the retrieval part successfully. But no matter what I do, I can't seem to display the data in the JSP page. I have tried various solutions found in…
mehere
  • 1,487
  • 5
  • 28
  • 50
6
votes
2 answers

What's causing this NPE when I request an action?

This error was not there when I first run my program,then I tried some experiment to get the flow of MVC architecture but now it is showing me this exception. I guess the problem is when I request via subscribe button it will go to struts.xml where…
agaonsindhe
  • 447
  • 1
  • 5
  • 13
6
votes
2 answers

Any Apache Commons-Configuration replacements / competitors?

I recently tried to use Apache Commons-Configuration to manage some local XML configuration files. It drastically falls short on ease of use (can't load empty config files, CombinedConfiguration requires utilization of underlying Configurations for…
5
votes
2 answers

what is the equivalent xml tag for specifying disk path in ehcache 3.x version

How to specify the disk path when the cache need to be saved in disk in ehcache 3.x version.It can be specified in ehcache 2.x version with ,but i dont find any equivalent xml tag in 3.x version.
5
votes
3 answers

Apache Commons Configuration2 how to read data from InputStream

How can I read the data from InputStream by using Apache Commons Configuration2? FileBasedConfigurationBuilder builder = new FileBasedConfigurationBuilder(XMLConfiguration.class) .configure( …
Bruce
  • 647
  • 2
  • 12
  • 30
5
votes
1 answer

Configuring Castle Windsor using xml/app.config

I am currently building a sample application using Castle Windsor. The motto is to use xml/app.config to switch method interception on/off. I had used the Fluent API earlier and it worked as a charm. As the next step, I am trying to replace the…
user2930995
  • 63
  • 1
  • 4
4
votes
1 answer

How to retrieve an xml attribute from SubnodeConfiguration?

I'm working on a class to load an XML file configuration and this class extends from XMLConfiguration. The configuration file looks like this: 5
Fernando Moyano
  • 1,097
  • 4
  • 15
  • 29
1
2 3
12 13