when you are trying to make a components and composites in SCA using RAD ,
you will found that there are an error due to the naming in Reference in the compost file.
1) Open the Service implementation in the MainComponent “CalculatorInterfaceImpl”
2) Add the Reference Annotation in that Component
EX : AddInterface addInterface;
@Reference
public void setAddReference(AddInterface addInterface) {
this.addInterface=addInterface;
}
3) Open the Composite file in XML editor view.
4) Change the Reference to the name in “addReference”
.
you will found that there are an error due to the naming in Reference in the compost file.
Here is the steps to solve it :
1) Open the Service implementation in the MainComponent “CalculatorInterfaceImpl”
2) Add the Reference Annotation in that Component
EX : AddInterface addInterface;
@Reference
public void setAddReference(AddInterface addInterface) {
this.addInterface=addInterface;
}
3) Open the Composite file in XML editor view.
4) Change the Reference to the name in “addReference”
Composite View.
|
Composite In XML View |
.
Main Component Java Class Interface. |
No comments:
Post a Comment