Cheers matt, no worries.

I have pro spring infront of me here an i'm gonna have a tinker with the
datasource bean.

what doesnt kill me can only make me stronger.


mraible wrote:
> 
> I don't have an implementation for you, but this is something I'd like
> to add to AppFuse. I think the hard part is adjusting the logic in
> startup filter so it doesn't yet to make a db connection.
> 
> 
> On 8/18/07, mark.forster <[EMAIL PROTECTED]> wrote:
>>
>> I've been working with appfuse to produce an application and am ready to
>> deploy for my clients
>>
>> There is one final piece i need to write in and have no idea how to
>> implement it.
>>
>>
>> I need to allow the user to be able to configure the data source (jdbc
>> properties) once on the first run of the application.  I have written
>> this
>> so many times in other languages and at a high level the solution is
>> simple:
>>
>> * Check to see if the app is configured (Some flag in a file)
>> * Intercept request and redirect to a form asking user to enter JDBC
>> properties (username password etc..)
>> * Check data connection works (and if need be that model is reflected in
>> DB
>> tables)
>> * set flag to acknowledge system configured.
>> * all is well.
>>
>>
>> Unfortunately i am new to struts and spring and have no idea how to do
>> this
>> with this framework. My guess is that i can (some how) get access to the
>> JDBC properties and change them but for two reasons:
>>
>> I am convinced, and i dont know if this is right or not, that the
>> properties
>> file is compiled into the WAR so they cant be changed at runtime AND i
>> dont
>> know how or where to get these values from or how to change them.
>>
>> Any help on both these areas would be great thanks ;-)
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Allow-user-%28One-off%29-to-configure-datasource-at-runtime-tf4290488s2369.html#a12213980
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Allow-user-%28One-off%29-to-configure-datasource-at-runtime-tf4290488s2369.html#a12214135
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to