Commit 1e0ae3b8 authored by S Jourdain's avatar S Jourdain

update VTK demo for frascati release

parent 79d5cbfa
......@@ -25,7 +25,7 @@
<property name="repository.gluegen.base.name" value="gluegen-rt-natives" />
<!-- Thirdpart dirs -->
<property name="frascati.dir" value="${thirdparty.dir}/frascati" />
<property name="frascati.dir" value="${thirdparty.dir}/frascati-runtime-0.5" />
<property name="v3dview.dir" value="${thirdparty.dir}/V3DView" />
<!-- the project classpath -->
......@@ -37,10 +37,11 @@
<fileset dir="${frascati.dir}">
<include name="**/*.jar" />
</fileset>
<!-- V3D view -->
<!-- V3D view
<fileset dir="${v3dview.dir}">
<include name="**/*.jar" />
</fileset>
-->
<!-- Repository -->
<fileset dir="${native.dir}" id="vtk">
<include name="**/*.jar" />
......
This diff is collapsed.
===============================================================================
FraSCAti Runtime Platform
Copyright (C) 2007-2009 INRIA, USTL
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact: frascati at ow2.org
Authors: Nicolas Dolet <Nicolas.Dolet at inria.fr>
Damien Fournier <Damien.Fournier at inria.fr>
Philippe Merle <Philippe.Merle at inria.fr>
Valerio Schiavoni <valerio.schiavoni at gmail.com>
Lionel Seinturier <Lionel.Seinturier at univ-lille1.fr>
Christophe Demarey <Christophe.Demarey at inria.fr>
===============================================================================
SCOrWare FraSCAti Runtime 0.5 Standalone Distribution
-----------------------------------------------------
FraSCAti is an implementation of the Service Component Architecture (SCA)
specifications provided by the Open SOA consortium (OSOA). The FraSCAti
Runtime platform is supported by the SCOrWare consortium funded by the french
national research agency (ANR).
Table of content
----------------
1. Introduction
2. Requirements
3. Installation
4. Building component libraries
5. Running SCA composites
6. Client and Server components implementation
7. Links
1. Introduction
---------------
FraSCAti is a component framework providing runtime support for SCA
components. The FraSCAti runtime supports SCA composite definitions which
are conform to the SCA Assembly Model 1.0 specifications, Java component
implementation (SCA Java Component Implementation V1.00), remote component
bindings using Web Services and Java RMI protocols.
2. Requirements
---------------
Java SE 1.5 (or later) is required to compile SCA components and run FraSCAti.
3. Installation
---------------
Unzip FraSCAti distribution archive and you get the following directory
structure:
/bin - Launch scripts allowing to compile and run SCA components
/lib - FraSCAti libraries
/examples - SCA component implementation and composite examples
/conf - FraSCAti configuration files
To compile and start SCA composites with FraSCAti, you also have to
set the FRASCATI_HOME variable in your system environment, where FRASCATI_HOME
is the directory where the FraSCAti runtime distribution was extracted.
Additionally, the FRASCATI_GENERATED variable gives the default output directory
used when FraSCAti generates java classes. If FRASCATI_GENERATED is not given then
FraSCAti will use current directory.
4. Building component libraries
-------------------------------
This distribution provides a build script in order to ease compilation of
SCA Java component libraries. In a command shell, from the FRASCATI_HOME
directory, type:
bin\frascati compile <appDirectory> <jarName>
Under Windows systems
Or
bin/frascati compile <appDirectory> <jarName>
Under Linux systems
Where <appDirectory> is the directory containing your Java implementation
and <jarName> is the desired name for the resulting JAR file.
For instance, to compile the 'helloworld' Java implementation provided in the
examples directory, type the following command :
bin/frascati compile examples/helloworld helloworld
Will create the library 'helloworld.jar' containing the SCA/Java compiled
components of the helloworld example.
5. Running SCA composites
-------------------------
SCA composite definitions and SCA Java components are run using the FraSCAti
runtime platform. This distribution provides a script allowing to start the
FraSCAti runtime with a SCA composite. In a command shell, from the
FRASCATI_HOME directory, type:
bin\frascati run <composite> -libpath <jarList>
Under Windows systems
Or
bin/frascati run <composite> -libpath <jarList>
Under Linux systems
Where <composite> is the SCA composite file to be run by FraSCAti, designated
by its name. And <jarList> is a list of JAR files, separated by ':' under
Linux systems and ';' under Windows systems.
Note that <composite> can be a resource of the libraries loaded by FraSCAti,
a composite file in the file system, or an URL.
For instance, to run the helloworld example with FraSCAti, type the following
command:
bin\frascati run helloworld -libpath helloworld.jar
Will start the FraSCAti runtime with the helloworld composite included in the
helloworld.jar archive in a server mode (no service/method to invoke).
In order to invoke a specified method fo a service, you just have to use the
--service-name (-s) <serviceName> AND the --method-name (-m) <methodName> options.
The Java RMI protocol can also be tested within the helloworld example, using
the 'helloworld-rmi-standalone' composite definition, for running client and
server at the same time, or with both 'helloworld-rmi-server' and
'helloworld-rmi-client' composite definitions for running client and server
in two distinct shells.
6. Client and Server components implementation
----------------------------------------------
When an SCA composite instance is created, the FraSCAti runtime checks if the
resulting composite provides a SCA service implementing the java.lang.Runnable
interface.
When such service is promoted by the composite, the FraSCAti runtime invokes the
"run()" method. Implementing an SCA composite client with this interface helps
in having some procedures to be called after the composite instance has been
created.
When the composite instance does not provide the java.lang.Runnable interface,
the FraSCAti runtime creates and starts an instance of the SCA composite then
wait until a key is pressed. Such case particularly helps in running SCA
composite server waiting for remote invocations.
For example, typing the following command in a shell:
(using the helloworld sample previously compiled)
bin/frascati run helloworld-ws-server -libpath helloworld.jar
Will start an helloworld message printer waiting for invocations through SOAP
messages (server mode), while typing in another shell:
bin/frascati run helloworld-ws-client --service-name r --method-name run -libpath helloworld.jar
Will start a client composite which performs invocations on the server in its
'run()' method. This result in printing the 'Hello World' message on the
server side.
7. Links
--------
- SCOrWare Consortium : http://www.scorware.org
- OSOA Consortium : http://www.osoa.org
- Agence Nationale de la Recherche (ANR) : http://www.agence-nationale-recherche.fr/
SCOrWare FraSCAti Runtime Platform 0.3 Release Notes
====================================================
FraSCAti is a runtime platform implementation of the Service Component
Architecture (SCA) specifications provided by the Open SOA consortium (OSOA).
This release is a work in progress towards the implementation of the FraSCAti
platform which aims at supporting the following specifications:
- SCA Assembly Model V1.00
- SCA Java Common Annotations and APIs V1.0
- SCA Java Component Implementation V1.0
- SCA Web Services Binding V1.00
Moreover the FraSCAti Runtime Platform aims at providing features not defined by the SCA
specifications, like:
- Java RMI Binding
- Fractal implementation type
- SCA component runtime reconfiguration
Next release:
-------------
- SCA Policy Framework V1.00
- SCA Transaction Policy V1.00
#! /bin/sh
# OW2 FraSCAti distribution
# Copyright (C) 2008-2009 INRIA, USTL
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
### BEGIN INIT INFO
# Provides: OW2 FraSCAti main script
# Short-Description: OW2 FraSCAti front-end for console mode
### END INIT INFO
check_config() {
if [ -z $JAVA_HOME ]
then
echo "The JAVA_HOME variable is not set. Please initialize it in your environment."
exit 1
else
JAVA=$JAVA_HOME/bin/java
JAVAC=$JAVA_HOME/bin/javac
JAR=$JAVA_HOME/bin/jar
fi
if [ -z $FRASCATI_HOME ]
then
cd `dirname $0`/..
FRASCATI_HOME=`pwd`
cd -
echo "The FRASCATI_HOME variable is not set. Using $FRASCATI_HOME as default value."
fi
FRASCATI_LIB=$FRASCATI_HOME/lib
LOGGING=$FRASCATI_HOME/conf/logging.properties
FRASCATI_MAIN=org.ow2.frascati.factory.FactoryCommandLine
LAUNCHER_MAIN=org.ow2.frascati.Launcher
LAUNCHER_LIB=$FRASCATI_LIB/frascati-runtime-0.5.jar
}
compile() {
echo "$1"
echo "$2"
if [ -z $1 ] || [ -z $2 ]
then
echo "Usage: frascati compile <src> <name>"
echo " <src> = directory of the sources to compile"
echo " <name> = name of the jar to build"
exit 1
fi
OUTPUT=clsTmp
for i in `find $1 -name *.java`
do
SRC="$SRC $i"
done
mkdir $OUTPUT
$JAVAC -d $OUTPUT -cp $FRASCATI_LIB/sca-api-0.90-incubating.jar $SRC
# Include composite description files in the JAR
for i in `find $1 -name *.composite`
do
cp $i $OUTPUT
done
cd $OUTPUT
$JAR cf ../$2.jar *
cd ..
echo "Library $2.jar created!"
rm -rf $OUTPUT
}
explorer() {
# To See FraSCAti Explorer architecture in Fractal Explorer, use the following fractal description file
# <argument>org.ow2.frascati.explorer.FrascatiExplorerFractalView</argument>
FRACTAL_PROVIDER=org.objectweb.fractal.julia.Julia
JULIA_CONFIG=julia.cfg
ADL_LAUNCHER=org.objectweb.fractal.adl.Launcher
ADL_FILE='org.ow2.frascati.explorer.FrascatiExplorer(FraSCAti Explorer)'
$JAVA -Dfractal.provider=${FRACTAL_PROVIDER} -Djulia.config=${JULIA_CONFIG} -cp $LAUNCHER_LIB $LAUNCHER_MAIN $ADL_LAUNCHER -lib $FRASCATI_LIB -fractal "$ADL_FILE" r
}
case "$1" in
compile)
check_config
echo "Compiling ..."
compile "$2" "$3"
;;
run)
check_config
shift
echo "Running OW2 FraSCAti ..."
$JAVA -Djava.security.policy=$FRASCATI_HOME/conf/java.policy -Djava.util.logging.config.file=$LOGGING -cp $LAUNCHER_LIB $LAUNCHER_MAIN $FRASCATI_MAIN -lib $FRASCATI_LIB $*
echo "Exiting OW2 FraSCAti ..."
;;
explorer)
check_config
echo "Running the OW2 FraSCAti Explorer ..."
explorer
echo "Exiting OW2 FraSCAti Explorer ..."
;;
*)
echo "Usage: frascati {compile|run|explorer}"
exit 1
esac
exit 0
@echo off
rem OW2 FraSCAti distribution
rem Copyright (C) 2008-2009 INRIA, USTL
rem
rem This library is free software; you can redistribute it and/or
rem modify it under the terms of the GNU Lesser General Public
rem License as published by the Free Software Foundation; either
rem version 2 of the License, or (at your option) any later version.
rem
rem This library is distributed in the hope that it will be useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
rem Lesser General Public License for more details.
rem
rem You should have received a copy of the GNU Lesser General Public
rem License along with this library; if not, write to the Free Software
rem Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
rem USA
@setlocal
if defined JAVA_HOME (
set JAVA=%JAVA_HOME%\bin\java
set JAVAC=%JAVA_HOME%\bin\javac
set JAR=%JAVA_HOME%\bin\jar
set JAVA_OPTS=-Xms16m -Xmx32m
) else (
echo The JAVA_HOME variable is not set. Please initialize it in your environment
)
if exist %FRASCATI_HOME% goto CONFIG
set FRASCATI_HOME=%~dp0
rem Removes the "/bin/" string at the end of this script path
echo %FRASCATI_HOME%
set FRASCATI_HOME=%FRASCATI_HOME:~0,-5%
echo The FRASCATI_HOME variable is not set. Using %FRASCATI_HOME% as default value.
:CONFIG
set FRASCATI_LIB=%FRASCATI_HOME%\lib
set FRASCATI_MAIN=org.ow2.frascati.factory.FactoryCommandLine
set LOGGING=%FRASCATI_HOME%\conf\logging.properties
set LAUNCHER_MAIN=org.ow2.frascati.Launcher
set LAUNCHER_LIB=%FRASCATI_LIB%\frascati-runtime-0.5.jar
set FRACTAL_PROVIDER=org.objectweb.fractal.julia.Julia
set JULIA_CONFIG=julia.cfg
set ADL_LAUNCHER=org.objectweb.fractal.adl.Launcher
set ADL_FILE=org.ow2.frascati.explorer.FrascatiExplorer(FraSCAti Explorer)
set FRASCATI_CMD=%1
set PARAMS=%*
if "%1" == "compile" (
echo Compiling ...
goto COMPILE
) else if "%1" == "run" (
echo Running OW2 FraSCAti ...
"%JAVA%" %JAVA_OPTS% -Djava.security.policy="%FRASCATI_HOME%\conf\java.policy" -Djava.util.logging.config.file="%LOGGING%" -cp "%LAUNCHER_LIB%" %LAUNCHER_MAIN% %FRASCATI_MAIN% -lib "%FRASCATI_LIB%" %PARAMS:~4%
echo Exiting OW2 FraSCAti ...
goto END
) else if "%1" == "explorer" (
echo Running the OW2 FraSCAti Explorer ...
"%JAVA%" %JAVA_OPTS% -Dfractal.provider=%FRACTAL_PROVIDER% -Djulia.config=%JULIA_CONFIG% -cp "%LAUNCHER_LIB%" %LAUNCHER_MAIN% %ADL_LAUNCHER% -lib "%FRASCATI_LIB%" -fractal "%ADL_FILE%" r
echo Exiting OW2 FraSCAti Explorer ...
goto END
) else (
echo "Usage: frascati {compile|run|explorer}"
goto END
)
:COMPILE
shift
if "%1"=="" goto COMPILE_USAGE
if "%2"=="" goto COMPILE_USAGE
set CURRENT_DIR=%CD%
set OUTPUT=tmp
mkdir %OUTPUT%
rem Search java sources in .\src\...
setlocal ENABLEDELAYEDEXPANSION
IF ERRORLEVEL 1 (
echo Impossible d'activer les extensions
goto END
)
set SRC_FILES=
for /r %1 %%X in (*.java) do (set SRC_FILES=!SRC_FILES! "%%X")
setlocal DISABLEDELAYEDEXPANSION
set SRC_FILES=%SRC_FILES:\=/%
echo %SRC_FILES% > javasrc.tmp~
if ERRORLEVEL 1 (
echo Cannot find Java source files in %1
goto END
)
rem Compile Java sources
"%JAVAC%" -d "%OUTPUT%" -cp "%FRASCATI_LIB%\sca-api-0.90-incubating.jar" @javasrc.tmp~
rem Copy composite files
for /r %1 %%X in (*.composite) do (copy /Y "%%X" "%OUTPUT%")
rem Build jar file
cd %OUTPUT%
"%JAR%" cf ../%2.jar *
cd %CURRENT_DIR%
echo Library %2.jar created
rem clean up
rmdir /S/Q "%OUTPUT%"
del /Q javasrc.tmp~
goto END
:COMPILE_USAGE
echo Usage: frascati compile [src] [name]
echo [src] = directory of the sources to compile
echo [name] = name of the jar to build
:END
\ No newline at end of file
grant {
// Allow everything for now.
permission java.security.AllPermission;
};
############################################################
# Default Logging Configuration File
#
# You can use a different file by specifying a filename
# with the java.util.logging.config.file system property.
# For example java -Djava.util.logging.config.file=myfile
############################################################
############################################################
# Global properties
############################################################
# "handlers" specifies a comma separated list of log Handler
# classes. These handlers will be installed during VM startup.
# Note that these classes must be on the system classpath.
# By default we only configure a ConsoleHandler, which will only
# show messages at the INFO and above levels.
handlers= java.util.logging.ConsoleHandler
# To also add the FileHandler, use the following line instead.
#handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
# Default global logging level.
# This specifies which kinds of events are logged across
# all loggers. For any given facility this global level
# can be overriden by a facility specific level
# Note that the ConsoleHandler also has a separate level
# setting to limit messages printed to the console.
.level = OFF
############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################
# default file output is in user's home directory.
java.util.logging.FileHandler.pattern = %h/java%u.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
# Limit the message that are printed on the console to INFO and above.
java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################
# For example, set the com.xyz.foo logger to only log SEVERE
# messages: com.xyz.foo.level = SEVERE
spoonlet.level = OFF
spoonlet.fractal.level = OFF
spoonlet.fractaladl.level = OFF
org.objectweb.fractal.bf.level = OFF
org.scorware.assembly.level = INFO
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Chapter&nbsp;1.&nbsp;About OW2 FraSCAti</title><link rel="stylesheet" href="css/ow2-style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="frascati-userguide.html" title="OW2 FraSCAti User Guide"><link rel="up" href="frascati-userguide.html" title="OW2 FraSCAti User Guide"><link rel="prev" href="frascati-userguide.html" title="OW2 FraSCAti User Guide"><link rel="next" href="ch01s02.html" title="Requirements"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter&nbsp;1.&nbsp;About OW2 FraSCAti</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="frascati-userguide.html">Prev</a>&nbsp;</td><th width="60%" align="center">&nbsp;</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="ch01s02.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="d0e40"></a>Chapter&nbsp;1.&nbsp;About OW2 FraSCAti</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="ch01.html#d0e83">Getting OW2 FraSCAti</a></span></dt><dt><span class="section"><a href="ch01s02.html">Requirements</a></span></dt><dt><span class="section"><a href="ch01s03.html">Installation</a></span></dt></dl></div><p>OW2 FraSCAti is a component framework providing runtime support for
the Service Component Architecture (have a look at SCA specifications).
The OW2 FraSCAti runtime supports SCA composite definitions which are
conform to the SCA Assembly Model V1.0 specification, Java component
implementation (SCA Java Component Implementation V1.0 and SCA Java Common
Annotations and APIs V1.0), remote component bindings using Web Services
and Java RMI protocols.</p><p>For more details on SCA, here are a few helpful links:</p><div class="itemizedlist"><ul type="disc"><li><p>White paper - <a class="ulink" href="http://www.davidchappell.com/articles/Introducing_SCA.pdf" target="_top">Introducing
SCA</a> - David Chappell</p></li><li><p>Presentations - <a class="ulink" href="http://www.osoa.org/download/attachments/250/Composing_Business_Solutions_Using_SCA.pdf?version=1" target="_top">Composing
Business Solutions using SCA</a> and <a class="ulink" href="http://www.osoa.org/download/attachments/250/SCA_Approach_To_Policy_and_Bindings.pdf?version=1" target="_top">SCA
Approach to Policy and Bindings</a> - Dr Mike Edwards - IBM
Hursley</p></li><li><p>Article - <a class="ulink" href="http://www.infoq.com/news/2008/06/SCAPresentations" target="_top">Composing SCA
Solutions and SCA&#8217;s Approach to Policy and Bindings
Presentations</a> - Boris Lublinsky</p></li><li><p>SCA specifications : <a class="ulink" href="http://www.osoa.org/display/Main/Service+Component+Architecture+Home" target="_top">OSOA</a>
and <a class="ulink" href="http://www.oasis-opencsa.org/sca" target="_top">OASIS</a> web
sites</p></li><li><p><a class="ulink" href="http://osoa.org/display/Main/SCA+Resources" target="_top">Other
SCA resources</a>.</p></li></ul></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e83"></a>Getting OW2 FraSCAti</h2></div></div></div><p>Binary distributions are available on the OW2 FraSCAti forge:
<a class="ulink" href="http://forge.objectweb.org/project/showfiles.php?group_id=329" target="_top">http://forge.objectweb.org/project/showfiles.php?group_id=329</a>.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="frascati-userguide.html">Prev</a>&nbsp;</td><td width="20%" align="center">&nbsp;</td><td width="40%" align="right">&nbsp;<a accesskey="n" href="ch01s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">OW2 FraSCAti User Guide&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="frascati-userguide.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;Requirements</td></tr></table></div></body></html>
\ No newline at end of file
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Requirements</title><link rel="stylesheet" href="css/ow2-style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="frascati-userguide.html" title="OW2 FraSCAti User Guide"><link rel="up" href="ch01.html" title="Chapter&nbsp;1.&nbsp;About OW2 FraSCAti"><link rel="prev" href="ch01.html" title="Chapter&nbsp;1.&nbsp;About OW2 FraSCAti"><link rel="next" href="ch01s03.html" title="Installation"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Requirements</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch01.html">Prev</a>&nbsp;</td><th width="60%" align="center">Chapter&nbsp;1.&nbsp;About OW2 FraSCAti</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="ch01s03.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e91"></a>Requirements</h2></div></div></div><p>Java SE 1.5 (or later) is required to compile and run SCA
components on top of OW2 FraSCAti.</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch01.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="ch01.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="ch01s03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&nbsp;1.&nbsp;About OW2 FraSCAti&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="frascati-userguide.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;Installation</td></tr></table></div></body></html>
\ No newline at end of file
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Installation</title><link rel="stylesheet" href="css/ow2-style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="frascati-userguide.html" title="OW2 FraSCAti User Guide"><link rel="up" href="ch01.html" title="Chapter&nbsp;1.&nbsp;About OW2 FraSCAti"><link rel="prev" href="ch01s02.html" title="Requirements"><link rel="next" href="ch02.html" title="Chapter&nbsp;2.&nbsp;Create your first application"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Installation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch01s02.html">Prev</a>&nbsp;</td><th width="60%" align="center">Chapter&nbsp;1.&nbsp;About OW2 FraSCAti</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="ch02.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e96"></a>Installation</h2></div></div></div><p>Unzip the OW2 FraSCAti distribution archive and you get the
following directory structure:</p><div class="itemizedlist"><ul type="disc"><li><p><span class="emphasis"><em>bin</em></span> : Launch scripts allowing to compile
and run SCA components,</p></li><li><p><span class="emphasis"><em>lib</em></span> : OW2 FraSCAti libraries,</p></li><li><p><span class="emphasis"><em>examples</em></span> : SCA component implementation
and composite examples,</p></li><li><p><span class="emphasis"><em>conf</em></span> : OW2 FraSCAti configuration
files.</p></li></ul></div><p>To compile and run SCA composites with OW2 FraSCAti, you also have
to set the <code class="varname">FRASCATI_HOME</code> system environment variable.
<code class="varname">FRASCATI_HOME</code> has to point to the directory where the
OW2 FraSCAti runtime distribution was extracted.</p><pre class="programlisting">export FRASCATI_HOME=/path/to/your/FraSCAti/runtime/distribution</pre><p>Now, you are ready to develop and run SCA applications with OW2
FraSCAti.</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch01s02.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="ch01.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="ch02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Requirements&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="frascati-userguide.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;Chapter&nbsp;2.&nbsp;Create your first application</td></tr></table></div></body></html>
\ No newline at end of file
This diff is collapsed.
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>SCA Java annotations</title><link rel="stylesheet" href="css/ow2-style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="frascati-userguide.html" title="OW2 FraSCAti User Guide"><link rel="up" href="ch02.html" title="Chapter&nbsp;2.&nbsp;Create your first application"><link rel="prev" href="ch02.html" title="Chapter&nbsp;2.&nbsp;Create your first application"><link rel="next" href="ch03.html" title="Chapter&nbsp;3.&nbsp;OW2 FraSCAti Explorer"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SCA Java annotations</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02.html">Prev</a>&nbsp;</td><th width="60%" align="center">Chapter&nbsp;2.&nbsp;Create your first application</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="ch03.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e440"></a>SCA Java annotations</h2></div></div></div><p>TO BE DONE</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="ch02.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="ch03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&nbsp;2.&nbsp;Create your first application&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="frascati-userguide.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;Chapter&nbsp;3.&nbsp;OW2 FraSCAti Explorer</td></tr></table></div></body></html>
\ No newline at end of file
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Chapter&nbsp;3.&nbsp;OW2 FraSCAti Explorer</title><link rel="stylesheet" href="css/ow2-style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="frascati-userguide.html" title="OW2 FraSCAti User Guide"><link rel="up" href="frascati-userguide.html" title="OW2 FraSCAti User Guide"><link rel="prev" href="ch02s02.html" title="SCA Java annotations"><link rel="next" href="ch03s02.html" title="Usage"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter&nbsp;3.&nbsp;OW2 FraSCAti Explorer</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s02.html">Prev</a>&nbsp;</td><th width="60%" align="center">&nbsp;</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="ch03s02.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="d0e445"></a>Chapter&nbsp;3.&nbsp;OW2 FraSCAti Explorer</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="ch03.html#d0e448">Description</a></span></dt><dd><dl><dt><span class="section"><a href="ch03.html#d0e458">Functionalities</a></span></dt></dl></dd><dt><span class="section"><a href="ch03s02.html">Usage</a></span></dt><dd><dl><dt><span class="section"><a href="ch03s02.html#d0e498">Launching FraSCAti Explorer</a></span></dt><dt><span class="section"><a href="ch03s02.html#d0e523">Loading an SCA composite description</a></span></dt><dt><span class="section"><a href="ch03s02.html#d0e549">Browsing an SCA application</a></span></dt></dl></dd></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e448"></a>Description</h2></div></div></div><p>OW2 FraSCAti Explorer is a management tool for SCA-based
applications running on top of OW2 FraSCAti.</p><p>It relies on the Fractal Explorer (<a class="ulink" href="http://fractal.objectweb.org/fractalexplorer/" target="_top">http://fractal.objectweb.org/fractalexplorer/</a>)
tool.</p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="d0e458"></a>Functionalities</h3></div></div></div><p>A non-exhaustive list of functionalities:</p><div class="itemizedlist"><ul type="disc"><li><p>loading and starting an SCA composite file (from a file system
or inside a jar)</p></li><li><p>exploring a running SCA application</p><div class="itemizedlist"><ul type="circle"><li><p>discovering SCA composites</p></li><li><p>discovering SCA components</p></li><li><p>discovering SCA services and references</p></li><li><p>discovering SCA properties</p></li><li><p>discovering SCA bindings (not yet implemented)</p></li></ul></div></li><li><p>start/stop components or composites</p></li><li><p>invoke methods (only the run() method at this time)</p></li><li><p>Switch from the SCA view to the Fractal View.</p></li></ul></div></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s02.html">Prev</a>&nbsp;</td><td width="20%" align="center">&nbsp;</td><td width="40%" align="right">&nbsp;<a accesskey="n" href="ch03s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SCA Java annotations&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="frascati-userguide.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;Usage</td></tr></table></div></body></html>
\ No newline at end of file
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Usage</title><link rel="stylesheet" href="css/ow2-style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="frascati-userguide.html" title="OW2 FraSCAti User Guide"><link rel="up" href="ch03.html" title="Chapter&nbsp;3.&nbsp;OW2 FraSCAti Explorer"><link rel="prev" href="ch03.html" title="Chapter&nbsp;3.&nbsp;OW2 FraSCAti Explorer"><link rel="next" href="ch04.html" title="Chapter&nbsp;4.&nbsp;SCA intents with OW2 FraSCAti"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Usage</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03.html">Prev</a>&nbsp;</td><th width="60%" align="center">Chapter&nbsp;3.&nbsp;OW2 FraSCAti Explorer</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="ch04.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e495"></a>Usage</h2></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="d0e498"></a>Launching FraSCAti Explorer</h3></div></div></div><p>You just have to run Maven with the explorer profile</p><pre class="programlisting">frascati explorer</pre><p>The following GUI will appear.</p><div class="screenshot"><div class="mediaobject"><img src="./images/explorer-launch.png"></div></div><p>As you can see, the FraSCAti Explorer is split in three
parts:</p><div class="itemizedlist"><ul type="disc"><li><p>a menu bar on the top that displays actions available on
selected items, allows you to switch from a SCA view to a Fractal
view (roles),</p></li><li><p>a tree structure on the left, and</p></li><li><p>a panel on the right (displayed items on this panel are bound
to selected item on the tree).</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="d0e523"></a>Loading an SCA composite description</h3></div></div></div><p>The root element of the tree is named <span class="emphasis"><em>SCA
Factory</em></span> and allows you to load SCA composite description
files (<em class="parameter"><code>.composite</code></em> extension).</p><div class="screenshot"><div class="mediaobject"><img src="./images/explorer-load-composite.png"></div></div><p>The load menu item will display a dialog box that allows you to
browse the file system or a jar file in order to select an SCA composite
description file.</p><div class="screenshot"><div class="mediaobject"><img src="./images/explorer-load-composite-selection.png"></div></div><p>If the selected composite file comes from a jar file, this one
will be automatically add to the classpath. Otherwise, you have to add