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 19:56: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=5&revisedVersion=6


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

<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

h3. Some examples
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="account">
<!-- composite refrence with ejb binding. Modify host and port number in uri attribute
based on where you have installed target ResumeBank EJB -->
<component name="CustomerComponent">
<implementation.java class="account.CustomerImpl" />
<reference name="extEJBService">
<!-- To use the CosNaming, use the following URI -->
<!-- <binding.ejb uri="corbaname:iiop:1.2@localhost:1050#AddServiceBean" />-->
<binding.ejb uri="hello-addservice/AddServiceBean/calculator.AddService" />

This message is automatically generated by Confluence

Unsubscribe or edit your notifications preferences

If you think it was sent incorrectly contact one of the administrators

If you want more information on Confluence, or have a bug to report see

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

View raw message