Occasions may arise when you want to access a service with Java
interfaces from a mediation flow component, which only supports WSDL references.
For example, you may want to access a stateless session bean through an EJB
import. However, you cannot directly draw a wire from a WSDL typed reference
to a Java interface. The assembly editor provides an easy solution.
Mediation flow components in the assembly diagram use WSDL interfaces
and references. If a mediation flow component needs to call a Java component
or an EJB import that has a Java™ interface, you will not be able
to wire the source component's WSDL reference directly to the session bean
import that has the Java interface, because SCA interfaces and
references are programmed to match. However, WebSphere Integration Developer
generates a bridge component with a Java reference and a WSDL interface to
make it easy for you to complete the wiring. Here are the step-by-step instructions:
- Locate the existing Java implementation or stateless session bean
that you want to use in the Java Package Explorer view. You can find the Java
implementation in the Java Package Explorer view or the .java file in the
Physical Resources view. To find the stateless session bean EJB, open the
J2EE perspective and locate the bean in its Project Explorer view.
- Drag your Java object into your assembly diagram. A
Java class becomes a Java component when it is dropped onto the canvas. A
stateless session bean becomes an import
- The program prompts you to create a facade map component. Click Yes. A facade map component with WSDL interface and equivalent Java reference
is created. The following detail from the assembly diagram shows a facade
map component, Bridge, that is wired to a stateless session bean import, SLSBImport:

- Draw a wire from the mediation flow component to the WSDL interface
of the bridge component in the assembly. The editor will create
a matching WSDL reference on the mediation flow component to complete the
bridge. The facade component does not contain any business logic; it just
enables a connection between the Java interface and the WSDL reference. The
following assembly diagram shows that the MediationFlow component is wired
through the Bridge component to the SLSBImport Java import:

Your mediation flow component can now successfully call the Java component
or EJB import.