Home > Apache Tuscany Docs 2.x > Index > SCA Java Extensions Guide > SCA Java binding.ejb |
Apache Tuscany Docs 2.x > Index > SCA Java Extensions Guide > SCA Java binding.ejb | Tuscany Home | User List | Dev List | Issue Tracker |
Apache Tuscany Docs 2.x
SCA Java binding.ejb
<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 configutationTo 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#BrokerServiceBean" />
Depending on which enviroment the SCA components are hosted, various styles of the JNDI names can be supported:
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> The open-ejb deployment descriptor
<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
...
<enterprise-beans>
<session>
<ejb-name>BrokerServiceBean</ejb-name>
<jndi-name>BrokerServiceBean</jndi-name>
<tss-link>IdentityTokenNoSecurity</tss-link>
</session>
</enterprise-beans>
...
</openejb-jar>
|
Bookmark this on Delicious Digg this | Privacy Policy - Copyright © 2003-2010, The Apache Software Foundation, Licensed under ASL 2.0. |