From 200a40b332420f94992eb39a6d0ea1cf1490ffc4 Mon Sep 17 00:00:00 2001 From: coreyg Date: Fri, 21 Nov 2014 09:30:19 +0000 Subject: Adding tuscany's website to their svn repo for svnpubsub git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1640879 13f79535-47bb-0310-9956-ffa450edef68 --- site/trunk/site-publish/sca-java-bindingejb.html | 211 +++++++++++++++++++++++ 1 file changed, 211 insertions(+) create mode 100644 site/trunk/site-publish/sca-java-bindingejb.html (limited to 'site/trunk/site-publish/sca-java-bindingejb.html') diff --git a/site/trunk/site-publish/sca-java-bindingejb.html b/site/trunk/site-publish/sca-java-bindingejb.html new file mode 100644 index 0000000000..322d0382c6 --- /dev/null +++ b/site/trunk/site-publish/sca-java-bindingejb.html @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + Apache Tuscany : SCA Java binding.ejb + + + + + + + + + + + + + + + +
+ + + + +   + +
+ + +
+
+ + + + + + + + + +
+  Apache Tuscany > Home > SCA Overview > SCA Java > Java SCA Documentation Menu > SCA Java User Guide > SCA Java binding.ejb + + User List | Dev List | Issue Tracker   +
+ + + + + + + +
+ + +
+ +
+
+
+ + + + + + + + + + + +
Resources
+
+ +

<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#BrokerServiceBean" /> 
+
+
+ +

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>
+
+
+ +

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>
+
+
+ +
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.
+ +
+
+
+
+ + +
+ + + + + + website stats + + + + + + -- cgit v1.2.3