« Return to Thread: jndi?

Re: jndi?

by diongillard :: Rate this Message:

Reply to Author | View in Thread

Is it possible using grails.config.locations to 'switch' the
environment of a pre built war to use another defined datasource?

On Sat, May 17, 2008 at 6:30 PM, Graeme Rocher <graeme@...> wrote:

> You have two options.
>
> JNDI
>
> dataSource {
>     jndiName = "..name.."
> }
>
> Externalized Config
>
> grails.config.locations = [ "file:${userHome}/yourapp/dataSource.properties" ]
>
> Cheers
>
> On Thu, May 15, 2008 at 2:49 PM, Corey <corey_s@...> wrote:
>>
>>  What's the most simple method of keeping my database password out of
>>  DataSource.groovy?
>>
>>  I've never used jndi, but I've looked at some docs and it appears difficult
>>  to know where to start.
>>
>>
>>  Thanks
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>>
>
>
>
> --
> Graeme Rocher
> Grails Project Lead
> G2One, Inc. Chief Technology Officer
> http://www.g2one.com
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



--
dIon Gillard
"Any sufficiently advanced technology is indistinguishable from magic"
- Arthur C. Clarke 1917 - 2008

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: jndi?

LightInTheBox - Buy quality products at wholesale price