You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by co...@apache.org on 2007/07/23 15:35:00 UTC

[CONF] Apache Tuscany: SCA Java binding.rmi (page edited)

SCA Java binding.rmi (TUSCANY) edited by ant
      Page: http://cwiki.apache.org/confluence/display/TUSCANY/SCA+Java+binding.rmi
   Changes: http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=56390&originalVersion=7&revisedVersion=8






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

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

h3. <binding.rmi>

Tuscany supports [Remote Method Invocation (RMI)|http://java.sun.com/javase/technologies/core/basic/rmi/index.jsp] as a protocol for use with SCA services and references by using the <binding.rmi> SCDL extension. 

The RMI binding enables SCA components to use or be used by any other application which uses the standard Java RMI protocol. One use of this is to easily integrate the Tuscany runtime with existing Java applications which use RMI.

This RMI binding SCDL has the following format:

{code}
   <binding.rmi host="" port="" serviceName=""/>
{code}




h4. Some examples:

This example composite shows how to make an SCA component available as an RMI service:

{code}
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
           xmlns:rmi="http://tuscany.apache.org/xmlns/binding/rmi/1.0-SNAPSHOT"
           name="HelloWorldRmiComposite">

   <service name="HelloWorldRmiService" promote="HelloWorldServiceComponent">
      <interface.java interface="helloworld.HelloWorldService"/>
      <binding.rmi host="localhost" port="8099" serviceName="HelloWorldRemoteService"   />
      <reference target="HelloWorldServiceComponent">HelloWorldServiceComponent</reference>
   </service>
      
   <component name="HelloWorldServiceComponent">
      <implementation.java class="helloworld.HelloWorldImpl"/>
   </component>   
  
</composite>
{code}


{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