Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1140616

Summary: refactor "rename" does not update switchyard.xml
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jorge Morales <jmorales>
Component: ToolingAssignee: Rob Cernich <rcernich>
Status: CLOSED UPSTREAM QA Contact: Len DiMaggio <ldimaggi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: rmarting, soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:42:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
switchyard.xml before to refactor action
none
switchyard.xml after to refactor action none

Description Jorge Morales 2014-09-11 10:58:37 UTC
Description of problem:
When you refactor "rename" a class in JBDS with the refactoring capabilities, the class does not get renamed in switchyard.xml

Version-Release number of selected component (if applicable):
JBDS 7.1.1 + Integration Stack SwitchYard Tools 1.1.6


How reproducible:
Always


Steps to Reproduce:
1. Create a project in Switchyard with an interface
2. Refactor rename that interface in JBDS

Actual results:
The Switchyard.xml will not be updated

Expected results:
The Switchyard.xml will be updated

Comment 1 Rob Cernich 2014-09-11 14:19:20 UTC
To workaround this issue, please specify switchyard.xml (or *.xml) in the "File name patterns:" field and make sure "Update fully qualified names in non-Java text files (forces preview) is checked.

Comment 2 Jose Roman Martin Gil 2014-09-11 15:10:55 UTC
Hi;

In a simple switchyard project with a Service (ExampleService) and a Bean Implementation (ExampleServiceBean) where the workaround is applied (refactor ExampleService to NewNameService), I can confirm that the switchyard.xml file is changed however new issues appears.

In Problems view I find two errors about compiling/validating switchyard.xml.

The problems are:

Description	Resource	Path	Location	Type
Missing Component Service: Service "NewNameService" is declared by the implementation but is missing from "ExampleServiceBean" component in switchyard.xml.	switchyard.xml	/switchyard-example/src/main/resources/META-INF	Unknown	SwitchYard
Unimplemented Service Declaration: Service "ExampleService" defined by component "ExampleServiceBean" is not provided by the component's implementation.	switchyard.xml	/switchyard-example/src/main/resources/META-INF	Unknown	SwitchYard

I attached the switchyard.xml before and after the refactor action.

Comment 3 Jose Roman Martin Gil 2014-09-11 15:12:26 UTC
Created attachment 936587 [details]
switchyard.xml before to refactor action

Comment 4 Jose Roman Martin Gil 2014-09-11 15:12:58 UTC
Created attachment 936588 [details]
switchyard.xml after to refactor action

Comment 5 Red Hat Bugzilla 2025-02-10 03:42:58 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.