manifoldcf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schuch <>
Subject Re: Renaming Connector Classes
Date Thu, 21 May 2015 05:22:22 GMT
Hi Karl,
is it possible to update the classnames in the database for existing connections
depending on renamed classes?
It would be nice to spare the effort of recreating all the connections.
I looked into the code of the SynchronizeConnectors command and explored the API:
What about
IRepositoryConnection[] connections = connManager.getAllConnections();
I tried it and so far it seems to work.
Do you see any pitfalls with that solution?
*Gesendet:* Mittwoch, 20. Mai 2015 um 15:25 Uhr
*Von:* "Karl Wright" <>
*An:* "" <>
*Betreff:* Re: Renaming Connector Classes
Hi Marcus,
The name of the connector class is a key for the connection names that depended
on that class.  To rename a connection class, therefore, you need to do the
(1) BEFORE renaming the class, delete all jobs and connections that refer to
that connector.
(2) UNREGISTER the connector class (there's a command-line utility for that)
(3) BUILD your new class
(4) REBUILD everything you deleted
On Wed, May 20, 2015 at 8:56 AM, Markus Schuch <> wrote:

    i need to rename some connector classes.
    When starting MCF with the renamed classes, i obviously stumbles over the
    old connections using the old classnames.
    It would be nice to be able to migrate the old connections to the new
    I found the commands SynchronizeConnectors, SynchronizeAuthorities and
    But they leave the existing connections with "unregistered" connector classes.
    Is there another command for mapping/renaming connector classes for existing
    Thanks in advance,

View raw message