<binding.ejb>
Tuscany provides the reference-side support for the SCA EJB Session Bean Binding V1.00. It allows SCA components to access existing stateless session beans.
The XML configutation
To access a stateless session, the uri attribute of the <binding.ejb> element needs to be be configured with a JNDI name.
<binding.ejb uri="corbaname:iiop:1.2@localhost:1050#AddServiceBean" />
Depending on which enviroment the SCA components are hosted, various styles of the JNDI names can be supported:
- relative JNDI
- java:comp/env/<ejb-ref>
- corbaname JNDI
Some examples
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="account"> <component name="AccountDataServiceComponent"> <implementation.java class="bigbank.accountdata.AccountDataServiceImpl" /> <reference name="brokerService"> <binding.ejb uri="corbaname:iiop:1.2@localhost:1050#BrokerServiceBean" /> </reference> </component> </composite>
Integration with Geronimo 2.0.1
Make sure org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car is started.
Look under System Modules in Admin Console. This module is required to support CORBA Naming.