You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by EP...@upstate.com on 2003/02/26 14:23:37 UTC

JNDI Configuration (Was VelocityEmail Change Proposal)

You know, after writing the email yesterday, and then mulling it over, I was
coming to the same conclusion.  I looked at the commons-configuration code,
and noticed that it was all pulled from Turbine!

What I was thinking was something where if you have a value in JNDI, use
that.  If you don't, then go to TR.props.  That way, on an individual basis,
you could override TR.props via JNDI, without moving *EVERYTHING* into it.

My challenge is that we want as many "admin configurable" parameters in JNDI
so our sysadmins can change mail servers, file systems etc to their hearts
content.

Martin seems to be the main committer on the commons-config project.  Do you
have any suggestions on how to move forward.

Maybe something in Turbine that deals with pulling from multiple config
hierarchies, and then something in commons-config for JNDI configuration?

Or should it all be in Turbine?

At any rate, I will try adding my name to the developer list.  

Eric

-----Original Message-----
From: Henning P. Schmiedehausen [mailto:hps@intermeta.de]
Sent: Wednesday, February 26, 2003 5:33 AM
To: turbine-dev@jakarta.apache.org
Subject: Re: VelocityEmail Change Proposal


EPugh@upstate.com writes:

>------_=_NextPart_001_01C2DD27.040896D0
>Content-Type: text/plain;
>	charset="iso-8859-1"

>Hi all,

>I hadn't heard back from anyone on this, whether people think this would be
>good or not.

>After thinking more about this, I would like to change TR.props so that if
>you have a setting mail.session=jndi then it would pull the
>javax.mail.Session using the key mail.jndi.key.  

>mail.session=jndi
>mail.jndi.key=env/cmp/mail/myjdbcmailsession

Hi,

I was just giving this a quick though, mainly because I'm not too deep
into JNDI and this specific part of Turbine (I use the Mail interface
mainly to let my applications send me mails with Stack Traces of
crashes. ;-) )

Would it be possible to extend the commons-configuration so that we 
get a generic "configuration is in JNDI" which we then can exploit
for Turbine? That would be really great. 

Just picking out a single property and then putting it into JNDI seems
to me duplicating work.

	Regards
		Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org

Re: JNDI Configuration (Was VelocityEmail Change Proposal)

Posted by Martin Poeschl <mp...@marmot.at>.
Daniel Rall wrote:
> EPugh@upstate.com writes:
> 
> 
>>You know, after writing the email yesterday, and then mulling it over, I was
>>coming to the same conclusion.  I looked at the commons-configuration code,
>>and noticed that it was all pulled from Turbine!
> 
> 
> And most of that code was pulled from JServ.

jServ -> turbine -> velocity -> commons-configuration ... maybe i missed something ;-)
> 
> 
>>What I was thinking was something where if you have a value in JNDI, use
>>that.  If you don't, then go to TR.props.  That way, on an individual basis,
>>you could override TR.props via JNDI, without moving *EVERYTHING* into it.
>>
>>My challenge is that we want as many "admin configurable" parameters in JNDI
>>so our sysadmins can change mail servers, file systems etc to their hearts
>>content.
>>
>>Martin seems to be the main committer on the commons-config project.  Do you
>>have any suggestions on how to move forward.
>>
>>Maybe something in Turbine that deals with pulling from multiple config
>>hierarchies, and then something in commons-config for JNDI configuration?
> 
> ...
> 
> +1 on implementing the Configuration interface using JNDI -- good
> suggestion, guys.

+1

martin
> 
> 
> 
>>-----Original Message-----
>>From: Henning P. Schmiedehausen [mailto:hps@intermeta.de]
>>Sent: Wednesday, February 26, 2003 5:33 AM
>>To: turbine-dev@jakarta.apache.org
>>Subject: Re: VelocityEmail Change Proposal
>>
>>
>>EPugh@upstate.com writes:
>>
>>
>>>------_=_NextPart_001_01C2DD27.040896D0
>>>Content-Type: text/plain;
>>>	charset="iso-8859-1"
>>
>>>Hi all,
>>
>>>I hadn't heard back from anyone on this, whether people think this would be
>>>good or not.
>>
>>>After thinking more about this, I would like to change TR.props so that if
>>>you have a setting mail.session=jndi then it would pull the
>>>javax.mail.Session using the key mail.jndi.key.  
>>
>>>mail.session=jndi
>>>mail.jndi.key=env/cmp/mail/myjdbcmailsession
>>
>>Hi,
>>
>>I was just giving this a quick though, mainly because I'm not too deep
>>into JNDI and this specific part of Turbine (I use the Mail interface
>>mainly to let my applications send me mails with Stack Traces of
>>crashes. ;-) )
>>
>>Would it be possible to extend the commons-configuration so that we 
>>get a generic "configuration is in JNDI" which we then can exploit
>>for Turbine? That would be really great. 
>>
>>Just picking out a single property and then putting it into JNDI seems
>>to me duplicating work.
>>
>>	Regards
>>		Henning
>>
>>-- 
>>Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
>>hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/
>>
>>Java, perl, Solaris, Linux, xSP Consulting, Web Services 
>>freelance consultant -- Jakarta Turbine Development  -- hero for hire
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: JNDI Configuration (Was VelocityEmail Change Proposal)

Posted by Daniel Rall <dl...@finemaltcoding.com>.
EPugh@upstate.com writes:

> You know, after writing the email yesterday, and then mulling it over, I was
> coming to the same conclusion.  I looked at the commons-configuration code,
> and noticed that it was all pulled from Turbine!

And most of that code was pulled from JServ.

> What I was thinking was something where if you have a value in JNDI, use
> that.  If you don't, then go to TR.props.  That way, on an individual basis,
> you could override TR.props via JNDI, without moving *EVERYTHING* into it.
> 
> My challenge is that we want as many "admin configurable" parameters in JNDI
> so our sysadmins can change mail servers, file systems etc to their hearts
> content.
> 
> Martin seems to be the main committer on the commons-config project.  Do you
> have any suggestions on how to move forward.
> 
> Maybe something in Turbine that deals with pulling from multiple config
> hierarchies, and then something in commons-config for JNDI configuration?
...

+1 on implementing the Configuration interface using JNDI -- good
suggestion, guys.


> -----Original Message-----
> From: Henning P. Schmiedehausen [mailto:hps@intermeta.de]
> Sent: Wednesday, February 26, 2003 5:33 AM
> To: turbine-dev@jakarta.apache.org
> Subject: Re: VelocityEmail Change Proposal
> 
> 
> EPugh@upstate.com writes:
> 
> >------_=_NextPart_001_01C2DD27.040896D0
> >Content-Type: text/plain;
> >	charset="iso-8859-1"
> 
> >Hi all,
> 
> >I hadn't heard back from anyone on this, whether people think this would be
> >good or not.
> 
> >After thinking more about this, I would like to change TR.props so that if
> >you have a setting mail.session=jndi then it would pull the
> >javax.mail.Session using the key mail.jndi.key.  
> 
> >mail.session=jndi
> >mail.jndi.key=env/cmp/mail/myjdbcmailsession
> 
> Hi,
> 
> I was just giving this a quick though, mainly because I'm not too deep
> into JNDI and this specific part of Turbine (I use the Mail interface
> mainly to let my applications send me mails with Stack Traces of
> crashes. ;-) )
> 
> Would it be possible to extend the commons-configuration so that we 
> get a generic "configuration is in JNDI" which we then can exploit
> for Turbine? That would be really great. 
> 
> Just picking out a single property and then putting it into JNDI seems
> to me duplicating work.
> 
> 	Regards
> 		Henning
> 
> -- 
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
> hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/
> 
> Java, perl, Solaris, Linux, xSP Consulting, Web Services 
> freelance consultant -- Jakarta Turbine Development  -- hero for hire
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org

-- 

Daniel Rall <dl...@finemaltcoding.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org