configuration

Java Project Configuration

I'm curious as to what other people use in the Java world for configuring their applications. I've previously used Spring's PropertyPlaceHolderConfigurer and PropertyOverrideConfigurer to load various properties files and bind them using the default Spring property editors. This is a perfectly acceptable solution for what I've done, ...

How can I customize my web.xml configuration

I'd like to deploy the same web application for a number of different customers. Each deployment needs a different value in one of the elements of the web.xml configuration file. Without building a different .war file for each customer (with the different values set in the web.xml in each .war), is it possible to configure the values fo...

How to define a basic custom configuration section?

I have my own custom configuration sections but would like to create a new element that has simple key/values inside it. Now I have a working version but it seems quite a lot of code for such a simpler task. Is there an improved way of doing things? Below is a stripped out version of my config and custom configuration class. web.config...

How does one achieve .NET Deployment Nirvana?

Our company is nearing its "go live" date (and its getting a QA department date), and I'm trying to define the right operational processes to support this. A big consideration of mine is how to avoid the deployment/configuration hell that has inevitably occurred. Have any of you found a good solution for handing off builds to the non-p...

Configuration issue Web.Config / Custom Providers

Okay, this seems like a very simple issue, but I can't seem to get around it. I am almost 99% sure that this is an issue of Visual Studio itself, but I want to have a quick sanity check. I am creating a custom provider for Health Monitoring in Asp.Net. I have made a very simple provider that inherits from the BufferedWebEventProvider....

Is it possible to log down error statements in MYSQL?

So that I can just check the logs to see which statements are wrong at a unified location. ...

Serializing a DataTable with an IPAddress column

I'm using C# with .NET 3.5. I am using the System.Configuration.ApplicationSettingsBase class to load and save application settings. One of the settings I would like to preserve is an in-memory System.Data.DataTable. The DataTable contains just two columns of type UInt32 and System.Net.IPAddress, respectively. When I call the Save() ...

How do I ensure SQL Server replication is running?

I have two SQL Server 2005 instances that are geographically separated. Important databases are replicated from the primary location to the secondary using transactional replication. I'm looking for a way that I can monitor this replication and be alerted immediately if it fails. We've had occasions in the past where the network conne...

Select configuration file on creating WCF proxy instance

Hi Is it possible to create WCF proxy by the given config file, not app.config? Thanks a lot! ...

Different log4j layout for debug and error?

In log4j, is there a way to have logger.error("") and logger.debug("") include different output layouts? I'd like errors to include method names and line numbers, both of which slow down application performance. EDIT: After adding apache-log4j-extras, the following config file works. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE...

StructureMap EXception

Hi Guys, I am getting this error while creating the object using structureMap. The actual error is "Expected file structuremap.config can't be opened at location". But I can see the config file at that location. I don't know what im missing. ...

Store images(jpg,gif,png) in filesystem or DB?

Possible Duplicates: Which is more secure: filesystem or database? User images - database vs. filesystem storage store image in database or in a system file ? I can't decide which one I should follow. Can you guys give some opinions? Should I store my images in the file-system or DB? (I would like to prevent others from stea...

configure service using a web interface

I have the following cenario. I created a server component running as a service. Now I want to build some configuration user interface. I have seen with my nvidia firewall that they are running a apache instance and offer a full featured user interface inside my webbrowser. If I want to do soemthing like this what technology would be f...

Programmically configuration of endpoints vs. web/app.config

Has any put much thought into this? Personally, I think managing endpoints in configuration files are a pain. Are there any pros/cons to doing one over the other? ...

Is there a guide for web.config settings?

Hi is there a guide or tutorial or some kind of reference to learn how to work with asp/net mvc web.config file? ...

How can I configure JBoss JDBC data source connections outside the XML config file?

I would like to override the portion of JBoss that loads JDBC connection information from the XML config file. I would like to continue using the rest of JBoss's connection pooling/caching features. I just want to load the connection data from another source. Which MBean should I be implementing and how do I configure the override in J...

Purpose of elements having their connectionStringName set to LocalSqlServer?

Hello, 1) By default configuration elements have their connectionStringName attribute set to LocalSqlServer, and as far as I know, this attribute refers to connection defined in the element in machine.config file. a) I assume this connection string refers to database aspnetdb.mdf?! b) I understand aspnetdb.mdf is used in cases w...

config.gem in environment.rb

Let's say in a Rails app you have some gems that you use in your app (we'll call them "primary gems") and you have vendored them for portability. Let's say that those "primary gems" also require gems of their own - we'll call these "secondary gems". When you are setting up your environment.rb, you have to say: config.gem 'primary-gem...

Why would a Rails application explicitly declare config.gem 'rails' in environment.rb?

A sample application I was looking at has this in environment.rb: config.gem 'rails' Is this redundant code or is there likely to be a reason the programmer did this? ...

Unable to create SSL Socket Factory for client

Hello, I am using Java 1.5.0_16 (JBoss-4.2.3.GA application). My application implements a WS client which needs to integrate with an external Web Service. This communication needs to be handled through https.I am getting following error when i trying to call remote Api via web services.can anybosy help me out what could be the cause 14:...