After further testing, it appears I must have been saving my changes to the 
wrong file.  We're using a virtual disk workspace and somehow my explorer was 
pointing to the wrong directory.  Sorry for wasting your time.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Cecchet
Sent: Friday, August 29, 2008 1:03 PM
To: Sequoia general mailing list
Subject: Re: [Sequoia] Changes to config not loaded

Jonathan,
> I've attached my controller.xml and vdb.xml files.  When I quit the 
> controller, I did use an O/S kill command (I used ctrl-c in Windows) rather 
> than using the admin console to shut down.  Might that have had something to 
> do with it?  I've seen this multiple times.
>
If you ctrl-c the controller, you will lose consistency between the
backends but as you don't have a recovery log configured anyway, you
probably don't care that much.
Your controller config file says:

    <VirtualDatabase configFile="vdb.xml" virtualDatabaseName="VDATABASE" 
autoEnableBackends="true" />

Make sure you don't have any other file named vdb.xml in a jar file or
somewhere else in the controller classpath that could be loaded before
the file you expect. A good test is to make a syntax error in your
config file and see if it still loads. If it does then it's not reading
the file you think it should!

Regarding the virtual database configuration:

    <DatabaseBackend name="primary" driver="org.apache.derby.jdbc.ClientDriver" 
driverPath="..\..\..\DB\lib"
      url="jdbc:derby://localhost:1527/DATABASE"
      connectionTestStatement="values 1">

    <DatabaseBackend name="backup" driver="org.apache.derby.jdbc.ClientDriver" 
driverPath="..\..\..\DB\lib"
      url="jdbc:derby://remotehost:1527/DATABASE"
      connectionTestStatement="values 1">

It is usually a bad idea to use localhost and you should use the public
IP address of the machine instead. Now make sure that your name
resolution properly resolves the names to the machines you expect to
point to. I am not sure what you expect the controller to do and what is
the behavior you see. Console output on the controller and backend
states (commands like 'show backend *') would help.

Thanks for the feedback,
Emmanuel

>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel 
> Cecchet
> Sent: Thursday, August 28, 2008 6:47 PM
> To: Sequoia general mailing list
> Subject: Re: [Sequoia] Changes to config not loaded
>
> Hi Jonathan,
>
> Sequoia does not persist any configuration information when the
> controller is stopped. You are probably pointing to a configuration file
> which is not the one you changed because there is no way for Sequoia to
> remember the old configuration.
> Be careful that usually, the first file matching the name that is found
> in the classpath is used unless you specify an absolute path from the
> console. Let us know how you exactly load your configuration file so
> that we can make sure there is no bug in the config loading mechanism.
>
> Thanks for your feedback,
> Emmanuel
>
>
>> I was running the controller and doing some tests and wanted to change
>> the backend I was connected to. So I stopped the controller and
>> changed the URL in my virtual database config file. I then started the
>> controller back up and it said it was loading the virtual DB config,
>> but then it tried to connect to the original backend. It didn't load
>> my changes.
>> I'm using Sequoia 2.10.10. I have the controller auto-enable the backends.
>> Is this a known problem? What do I have to do to ensure it refreshes
>> the config?
>> Jonathan Stockho
>> Software Developer
>> Swisslog Healthcare Solutions
>> 10825 E. 47th Avenue
>> Denver, CO 80239
>> Phone: 303-373-7814
>> FAX: 303-373-7872
>> e-mail: [EMAIL PROTECTED]
>> Internet: www.swisslog.com <http://www.swisslog.com>
>> ------------------------------------------------------------------------------------
>>
>> *About Swisslog *
>> Swisslog designs solutions in logistics automation that greatly reduce
>> the manual flow of materials and associated information within
>> healthcare facilities.
>> This message may contain legally privileged or confidential
>> information and is therefore addressed to the named persons only. The
>> recipient should inform the sender and delete this message, if he/she
>> is not named as addressee. The sender disclaims any and all liability
>> for the integrity and punctuality of this message. The sender has
>> activated an automatic virus scanning, but does not guarantee the
>> virus free transmission of this message.
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Sequoia mailing list
>> [email protected]
>> https://forge.continuent.org/mailman/listinfo/sequoia
>>
>
>
> --
> Emmanuel Cecchet
> FTO @ Frog Thinker
> Open Source Development & Consulting
> --
> Web: http://www.frogthinker.org
> email: [EMAIL PROTECTED]
> Skype: emmanuel_cecchet
>
> _______________________________________________
> Sequoia mailing list
> [email protected]
> https://forge.continuent.org/mailman/listinfo/sequoia
>
> This message may contain legally privileged or confidential information and 
> is therefore addressed to the named persons only. The recipient should inform 
> the sender and delete this message, if he/she is not named as addressee.
> The sender disclaims any and all liability for the integrity and punctuality 
> of this message. The sender has activated an automatic virus scanning, but 
> does not guarantee the virus free transmission of this message.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Sequoia mailing list
> [email protected]
> https://forge.continuent.org/mailman/listinfo/sequoia


--
Emmanuel Cecchet
FTO @ Frog Thinker
Open Source Development & Consulting
--
Web: http://www.frogthinker.org
email: [EMAIL PROTECTED]
Skype: emmanuel_cecchet

_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia

This message may contain legally privileged or confidential information and is 
therefore addressed to the named persons only. The recipient should inform the 
sender and delete this message, if he/she is not named as addressee.
The sender disclaims any and all liability for the integrity and punctuality of 
this message. The sender has activated an automatic virus scanning, but does 
not guarantee the virus free transmission of this message.


_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia

Reply via email to