Shark EJB - CVS update 20050728

Vladimir Puskas <[email protected]>
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
Hello

EJB wrappers for Shark are on CVS.

Please note, this is an early draft: configuration stuff isn't at its 
best - some paths are in question; build process may not suite you 
'cause it needs Eclipse w. Lomboz - we're using Enhydra's own version 
http://forge.objectweb.org/project/showfiles.php?group_id=21&release_id=1018

Yet it works - we ran EAR on JOnAS and EnhydraEnterprise.

feedback VERY welcome
-- 
Vlada
ejb.html (text/html, 5.3 KB)
<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>EJB in Shark</title><link rel="stylesheet" href="../st.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.61.3"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="d0e1"></a>EJB in Shark</h2></div></div><div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="#d0e4">Intoduction</a></dt><dt><a href="#d0e13">Configuration</a></dt><dt><a href="#d0e48">Procedure</a></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4"></a>Intoduction</h2></div></div><div></div></div><p>The Enterprise JavaBeans (EJB) used in shark are stateful session
    beans. An enterprise bean is a server-side software component that can be
    deployed in a distributed multitier environment.</p><p>Session beans are used to implement business objects that hold
    client-specific business logic. The state of an object consists of the
    values of its instance variables. In a stateful session bean, the instance
    variables represent the state of a unique client-bean session. Because the
    client interacts with its bean, this state is often called the
    conversational state.</p><p>Note: The shark beans build process is only done and tested for
    JOnAS Tomcat EJB container.</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e13"></a>Configuration</h2></div></div><div></div></div><p>For building shark beans the following parameters must be set in
    build.properties file:</p><div class="itemizedlist"><ul type="disc"><li><p>jonas_root - path to JOnAS root directory</p><p>For example: jonas_root=C:/enhydra-enterprise-6.3/multiserver</p></li><li><p>eclipse_root - path to eclipse root directory (xdoclet is used
        for generating all interfaces needed for EJB developement)</p><p>For example: eclipse_root=C:/enhydra-enterprise-6.3/ide/eclipse</p></li><li><p>install_dir - the path to directory where shark is installed</p><p>For example: install_dir=C:/Shark</p></li></ul></div><p>The configuration file used for shark beans configuration is
    Shark.conf.forEJB located in beans jar file (sharkBeans.jar). In this file
    are some parameters defined relative to &lt;install_dir&gt; directory.
    They are needed for resources that shark uses but are outside the beans.
    These parameters are, for example:</p><div class="itemizedlist"><ul type="disc"><li><p>path to shark repository:
        EXTERNAL_PACKAGES_REPOSITORY=&lt;install_dir&gt;/repository/external</p></li><li><p>DODS configuration directory:
        DatabaseManager.ConfigurationDir=&lt;install_dir&gt;/conf/dods</p></li><li><p>database path:
        DatabaseManager.DB.sharkdb.Connection.Url="jdbc:hsqldb:&lt;install_dir&gt;/db/hsql/hsql".</p><p>For now, shark is defined to work with HSQL database.</p></li></ul></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e48"></a>Procedure</h2></div></div><div></div></div><p>After shark installation (or shark source build), the beans are
    generated as EAR (sharkBeans.ear) and placed in &lt;jonas_root&gt;/apps
    directory. This EAR contains two clients:</p><div class="itemizedlist"><ul type="disc"><li><p>client1.jar</p></li><li><p>client2.war (JSP web client)</p></li></ul></div><p>These clients are just a simple demonstration of how shark beans can
    be used.</p><p>After generation, EAR must be deployed in JOnAS EJB container by
    using JOnAS admin tool (URL http://localhost:connection_port/jonasAdmin/).
    For example, JOnAS admin application can be at URL
    http://localhost:9000/jonasAdmin/.</p><p>The web client can be started at URL
    http://localhost:connection_port/shark/.</p><p>To start java client client1.jar enter in command window the
    following command:</p><p>java -jar &lt;jonas_root&gt;/lib/client.jar
    &lt;jonas_root&gt;/apps/sharkBeans.ear -carolFile
    &lt;jonas_root&gt;/conf/carol.properties xpdlName pDefId
    [noOfProcToStart [var1=val1 [var2=val2 ... ]]]")</p><p>where:</p><div class="itemizedlist"><ul type="disc"><li><p>jonas_root is path to JOnAS root directory.</p></li><li><p>xpdlName is path to XPDL file where process definition for the
        process one want to start can be found. This path has to be relative
        to shark's external repository folder.</p></li><li><p>pDefId is id of xpdl process definition.</p></li><li><p>noOfProcToStart is the number of processes that will be started
        (default is 1).</p></li><li><p>vari=vali is the process variable id and its value.</p></li></ul></div><p>For example: java -jar
    C:/enhydra-enterprise-6.3/multiserver/lib/client.jar
    C:/enhydra-enterprise-6.3/multiserver/apps/sharkBeans.ear -carolFile
    C:/enhydra-enterprise-6.3/multiserver/conf/carol.properties
    test-JavaScript.xpdl basic 1</p><p>The command used without the argumens:</p><p>java -jar &lt;jonas_root&gt;/lib/client.jar
    &lt;jonas_root&gt;/apps/sharkBeans.ear -carolFile
    &lt;jonas_root&gt;/conf/carol.properties</p><p>prints the usage of arguments needed for client start.</p></div></div></body></html>
message-footer.txt (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.