In this recipe, we will call a Spring bean from within a composite. This is useful if we have an existing Spring bean that we wish to use; it is also a useful way to wrap other Java code.
Make sure that you have a composite open to add the Spring component.
Copy any JAR file you will be using to the
SCA-INF/lib directory and any class that is not in a JAR file to the
SCA-INF/classes directory of your project. Open the Project Properties by right-clicking on the project name in the Application Navigator. Select the Libraries and Classpath section and click on the Add JAR Directory button, and select the JAR file in the
SCA-INF/lib directory or the ...