Blog

Loading ColdBox Settings from the database

Luis Majano January 16, 2009

Spread the word

Luis Majano

January 16, 2009

Spread the word


Share your thoughts

The ColdBox configuration file has a place for you as the developer to create as many custom setting variables as you like.  You can create simple or complex settings via JSON notation.  This approach is great, but sometimes, you want for these variables to be, well, more dynamic.  The following UDF helps you achieve this, by storing your name-value pairs of settings in a persisten storage such as a database.  Then just basically call this UDF from your application start handler and voila!! You are ready to roll with settings that can be managed from a control panel of your application or any other dynamic approach.  You can even get creative and create your own reloading techniques for only application settings. There you go!!

Add Your Comment

(1)

Jan 16, 2013 01:36:35 UTC

by Daniel M

Luis, are you going to post the UDF again?

Recent Entries

Hands-On QA with BxPlaywright: From a User Workflow to a Browser Test

Hands-On QA with BxPlaywright: From a User Workflow to a Browser Test

Join Tom Buettell for a one-hour BxPlaywright webinar. Using a simple to-do app, Tom will show how he decides what’s worth automating, tests whether a task survives a page reload, and uses a failing trace to tell a test issue from an application bug.

Maria Jose Herrera
Maria Jose Herrera
December 02, 2026
BoxLang AI 3.8.0: OAuth for MCP, and Memory That Knows Who's Talking

BoxLang AI 3.8.0: OAuth for MCP, and Memory That Knows Who's Talking

Ortus Solutions today announces BoxLang AI 3.8.0, the release that makes multi-user AI applications a first-class citizen. Your agents can now sign in to OAuth-protected MCP servers on behalf of each person who talks to them, and every memory type keeps each user and conversation apart. Provider settings finally behave the way the docs always said, and a batch of MCP server fixes lands with it.

Luis Majano
Luis Majano
December 01, 2026