In this recipe, we will call an Enterprise Java Bean Session Bean from within a composite. This is useful if we have an existing EJB that we wish to re-use.
Make sure that you have opened the composite to which you will add the EJB reference. There will be one item in the list for each parameter of our function.
Add an EJB reference.
Open the composite in JDeveloper and drag the EJB Service from the Component Palette onto the References section of the
composite.xml
Design View.Start configuring EJB.
Select a Name for the EJB reference. Select the Type as Reference. Select the Version of an EJB specification that the EJB has implemented. Set the Interface to be Java.
Select the EJB JAR file.
Click on the magnifying glass and use the SOA Resource Browser to find your EJB JAR file. After selecting your file and clicking on OK, you will be asked if you want to copy the file into your project. Click on Yes to copy the file into your...