Somebody on this list has written code to store the servernames in a
MySQL database and have James use the dynamic list so that there is no
need to work inside the config.

I searched and couldn't find the actual email, but someone on here
should remember?  Maybe this person submitted it to James?

Anyway I would actually like to take a look at that code as well if
anyone knows where it can be found.

On 1/26/06, Steve Brewin <[EMAIL PROTECTED]> wrote:
> Jerry Malcolm wrote:
> >
> > I host quite a few server names hosted with one James
> > instance.  And server
> > names periodically come and go.  When I add a new client, I'd
> > really like to
> > have an automated way to add the server name to the list.
> >
> > I realize the brute force way is to write some sort of Perl
> > or Rexx script
> > that parses the servername section out the config file and
> > re-gen's the
> > config file with an updated list, then bounce the James
> > server so it'll pick
> > up the change.  Seems awfully clumsy to have to do that.  But
> > is that the
> > only way?  Is there a way to store the server list in a
> > database table where
> > James can read it out and check periodically to see if the
> > entries in the
> > table have changed?  Or am I doomed to have to write a script
> > to gen the
> > config file?
>
> As far as I know, right now you are doomed! Its the kind of thing JMX would
> be good for, but there is no ongoing effort in this area. An MBean would
> update the servernames and trigger a recycle of the affected components.
>
> What you could do right now is extract the servernames section out of the
> main config. file into a servernames.xml file and use an XML include to
> reference this file from the main config. Then you are left with a trivial
> edit prior to bouncing James. Look at the fetchmail part of the
> configuration for an XML include example.
>
> -- Steve
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Camron Levanger

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

Reply via email to