Tuesday, April 26, 2011

How to rename composite in Oracle SOA

Step1.) Rename the project by first selecting on the project explorer(Jdev) and then on the tabs click refactor > rename



Step2.) Change the file name



Step3.) Change the composite name inside composite.xml



Step4.) Inside the project properties change the default package



Step5.) Once Jdev restart we will again see the same project name,
after this open the project again and this time select the renamed .jpr



Step6.) We will again see the renamed project




In addition to this,

To change the project folder name. 

1. Remove the project from application In JDEV
2. Close JDEV
3. Rename the project directory on Explorer.
4. Start JDEV, open the project in JDEV

Even after renaming compsite, deployment jar file will have old composite name.

To change the jar(SOA-SAR) file name from OLD composite to new composite name

1. Right click on project -> Project properties -> Deployment -> Select New deployment profile -> Enter new composite name -> OK

2. Delete the old deployment profile. 

10 comments:

  1. is that composite name change possible even after the deployment of the project

    ReplyDelete
  2. I don't think the deployed project can be renamed, this is more like you will undeploy the existing composite and deploy the one which you have renamed in JDeveloper

    ReplyDelete
  3. Your blog is really helpfull for the beginner in oracle SOA. I am also new to SOA 11g. Keep posting like this.

    ReplyDelete
  4. Hey Yatan you have fairly described steps to rename composite in Oracle SOA. This is a great effort to make the learners get knowledge about this. Thanks.

    sap testing

    ReplyDelete
  5. Do you have any idea how we can change the folder structure for ex. generally we have folder structure like Application\project\project.jpr and at this level we also have all other project resources. If we want to change it to Application\project\trunk\src\(project.jpr and other resources) any idea how it can be done from Jdev?

    ReplyDelete
  6. To change the project folder name.

    1. Remove the project from application In JDEV
    2. Close JDEV
    3. Rename the project directory on Explorer.
    4. Start JDEV, open the project in JDEV

    Even after renaming compsite, deployment jar file will have old composite name.

    To change the jar(SOA-SAR) file name from OLD composite to new composite name

    1. Right click on project -> Project properties -> Deployment -> Select New deployment profile -> Enter new composite name -> OK

    2. Delete the old deployment profile.

    ReplyDelete
    Replies
    1. Thanks Chaitanya, this is useful, I will add it to the above steps.

      Delete
  7. In case you've got any cfgplan files associated to your composite, you need to

    1. Rename the cfgplan to match the new name of the composite.
    2. Open the cfgplan file and update the composite name.

    ReplyDelete