What is the best method to rename a data source and adjust any code referencing the old data source?

We want to rename a data source from jdbc/datasourceA to jdbc/datasourceB.  At the same time we want all existing code to now reference the new data source jdbc/datasourceB.  Any recommendations?

 

We have tried editing the name of the data source but then there are errors that things like expressions can't find the data source as its still looking for jdbc/datasourceA.  So now we are wondering how to find everywhere in the code that the old data source is referenced.  We did not use constants but will consider that going forward.

  Discussion posts and replies are publicly visible

Parents
  • Hi tatjanah,

    AFAIK, if you want to change the datastore from one to other, it is very complexity for update the application.

    Let say, you can create the datastore with different name, first we have to publish the datastore along with that, we have to change all all dependents objects related to the datastore entities..
    Even if u you use constants for going forward, we have to did all this changes.


    Thanks,
    Bhanu
Reply
  • Hi tatjanah,

    AFAIK, if you want to change the datastore from one to other, it is very complexity for update the application.

    Let say, you can create the datastore with different name, first we have to publish the datastore along with that, we have to change all all dependents objects related to the datastore entities..
    Even if u you use constants for going forward, we have to did all this changes.


    Thanks,
    Bhanu
Children
No Data