tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Tuscany: SCA Java binding.ejb (page edited)
Date Mon, 24 Sep 2007 22:10:01 GMT
SCA Java binding.ejb (TUSCANY) edited by Raymond Feng
      Page: http://cwiki.apache.org/confluence/display/TUSCANY/SCA+Java+binding.ejb
   Changes: http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=66256&originalVersion=9&revisedVersion=10






Content:
---------------------------------------------------------------------

{section:border=false}{column:width=15%}
{include: SCA Java Subproject Menu}
{include: Java SCA Menu New}{column}{column:width=85%}

h3. <binding.ejb>

Tuscany provides the reference-side support for the [SCA EJB Session Bean Binding V1.00|http://www.osoa.org/download/attachments/35/SCA_EJBSessionBeanBinding_V100.pdf?version=1].
It allows SCA components to access existing stateless session beans.

h3. 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. 

{code}
<binding.ejb uri="corbaname:iiop:1.2@localhost:1050#BrokerServiceBean" /> 
{code}

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

h3. Some examples
{code}
<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>
{code}

The open-ejb deployment descriptor
{code}
<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>
{code}

{note:title=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.
{note}


{column}{section}

---------------------------------------------------------------------
CONFLUENCE INFORMATION
This message is automatically generated by Confluence

Unsubscribe or edit your notifications preferences
   http://cwiki.apache.org/confluence/users/viewnotifications.action

If you think it was sent incorrectly contact one of the administrators
   http://cwiki.apache.org/confluence/administrators.action

If you want more information on Confluence, or have a bug to report see
   http://www.atlassian.com/software/confluence



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message