You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by di...@apache.org on 2004/11/10 20:35:04 UTC

cvs commit: ws-site/targets/ews/xref/org/apache/geronimo/ews/ws4j2ee/toWs/ejb EJBDDWriter.html EJBGenerator.html EJBHomeWriter.html EJBLocalHomeWriter.html EJBLocalWriter.html EJBRemoteWriter.html package-frame.html package-summary.html SessionBeanWriter.html

dims        2004/11/10 11:35:04

  Added:       targets/ews/xref/org/apache/geronimo/ews/ws4j2ee/toWs/ejb
                        EJBDDWriter.html EJBGenerator.html
                        EJBHomeWriter.html EJBLocalHomeWriter.html
                        EJBLocalWriter.html EJBRemoteWriter.html
                        package-frame.html package-summary.html
                        SessionBeanWriter.html
  Log:
  Adding a web site for EWS
  
  Revision  Changes    Path
  1.1                  ws-site/targets/ews/xref/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBDDWriter.html
  
  Index: EJBDDWriter.html
  ===================================================================
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>EJBDDWriter xref</title>
  <link type="text/css" rel="stylesheet" href="../../../../../../../stylesheet.css" />
  </head>
  <body>
  <div id="overview"><a href="../../../../../../../../apidocs/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBDDWriter.html">View Javadoc</a></div><pre>
  
  <a name="1" href="#1">1</a>   <em class="comment">/*</em>
  <a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2001-2004 The Apache Software Foundation.</em>
  <a name="3" href="#3">3</a>   <em class="comment"> * </em>
  <a name="4" href="#4">4</a>   <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
  <a name="5" href="#5">5</a>   <em class="comment"> * you may not use this file except in compliance with the License.</em>
  <a name="6" href="#6">6</a>   <em class="comment"> * You may obtain a copy of the License at</em>
  <a name="7" href="#7">7</a>   <em class="comment"> * </em>
  <a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
  <a name="9" href="#9">9</a>   <em class="comment"> * </em>
  <a name="10" href="#10">10</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
  <a name="11" href="#11">11</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
  <a name="12" href="#12">12</a>  <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
  <a name="13" href="#13">13</a>  <em class="comment"> * See the License for the specific language governing permissions and</em>
  <a name="14" href="#14">14</a>  <em class="comment"> * limitations under the License.</em>
  <a name="15" href="#15">15</a>  <em class="comment"> */</em>
  <a name="16" href="#16">16</a>  
  <a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/package-summary.html">org.apache.geronimo.ews.ws4j2ee.toWs.ejb</a>;
  <a name="18" href="#18">18</a>  
  <a name="19" href="#19">19</a>  <em class="comment">/*</em>
  <a name="20" href="#20">20</a>  <em class="comment">import javax.xml.bind.JAXBContext;</em>
  <a name="21" href="#21">21</a>  <em class="comment">import javax.xml.bind.JAXBException;</em>
  <a name="22" href="#22">22</a>  <em class="comment">import javax.xml.bind.Marshaller;</em>
  <a name="23" href="#23">23</a>  <em class="comment">import javax.xml.bind.PropertyException; */</em>
  <a name="24" href="#24">24</a>  
  <a name="25" href="#25">25</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext;
  <a name="26" href="#26">26</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext;
  <a name="27" href="#27">27</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.AbstractWriter;
  <a name="28" href="#28">28</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.GenerationConstants;
  <a name="29" href="#29">29</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
  <a name="30" href="#30">30</a>  
  <a name="31" href="#31">31</a>  <em>/**<em>*</em></em>
  <a name="32" href="#32">32</a>  <em> * We are plan to use the JAXB to genarate and parse the</em>
  <a name="33" href="#33">33</a>  <em> * ejb-jar.xml file. this code is just for the get very simple</em>
  <a name="34" href="#34">34</a>  <em> * DD created</em>
  <a name="35" href="#35">35</a>  <em> *</em>
  <a name="36" href="#36">36</a>  <em> * @author Srinath Perera(hemapani@opensource.lk)</em>
  <a name="37" href="#37">37</a>  <em> */</em>
  <a name="38" href="#38">38</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBDDWriter.html">EJBDDWriter</a> <strong>extends</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/AbstractWriter.html">AbstractWriter</a> {
  <a name="39" href="#39">39</a>      <strong>protected</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext;
  <a name="40" href="#40">40</a>  
  <a name="41" href="#41">41</a>      <em>/**<em>*</em></em>
  <a name="42" href="#42">42</a>  <em>     * @param j2eewscontext</em>
  <a name="43" href="#43">43</a>  <em>     * @throws GenerationFault</em>
  <a name="44" href="#44">44</a>  <em>     */</em>
  <a name="45" href="#45">45</a>      <strong>public</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBDDWriter.html">EJBDDWriter</a>(J2EEWebServiceContext j2eewscontext, <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext)
  <a name="46" href="#46">46</a>              throws <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/GenerationFault.html">GenerationFault</a> {
  <a name="47" href="#47">47</a>          <strong>super</strong>(j2eewscontext, j2eewscontext.getMiscInfo().getOutPutPath() + <span class="string">"/META-INF/ejb-jar.xml"</span>);
  <a name="48" href="#48">48</a>          <strong>this</strong>.ejbcontext = ejbcontext;
  <a name="49" href="#49">49</a>      }
  <a name="50" href="#50">50</a>  
  <a name="51" href="#51">51</a>      <strong>public</strong> <strong>void</strong> writeCode() throws GenerationFault {
  <a name="52" href="#52">52</a>          <strong>if</strong> (out != <strong>null</strong>)
  <a name="53" href="#53">53</a>              writeSessionDD();
  <a name="54" href="#54">54</a>      }
  <a name="55" href="#55">55</a>  
  <a name="56" href="#56">56</a>      <strong>public</strong> <strong>void</strong> writeSessionDD() throws GenerationFault {
  <a name="57" href="#57">57</a>          String ejbname = j2eewscontext.getWSDLContext().getTargetPortType().getName().toLowerCase();
  <a name="58" href="#58">58</a>          <strong>int</strong> index = ejbname.lastIndexOf(<span class="string">"."</span>);
  <a name="59" href="#59">59</a>          <strong>if</strong> (index > 0) {
  <a name="60" href="#60">60</a>              ejbname = ejbname.substring(index + 1);
  <a name="61" href="#61">61</a>          }
  <a name="62" href="#62">62</a>          String version = GenerationConstants.J2EE_VERSION_1_4;
  <a name="63" href="#63">63</a>          out.write(<span class="string">"&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-8\&quot;?>\n"</span>);
  <a name="64" href="#64">64</a>  <em class="comment">//let us stack to the J2EE 1.4 and by the wy 1.3 has nothing to do with web services :) </em>
  <a name="65" href="#65">65</a>  <em class="comment">//		if(version == GenerationConstants.J2EE_VERSION_1_3){</em>
  <a name="66" href="#66">66</a>  <em class="comment">//			out.write("&lt;!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>\n");</em>
  <a name="67" href="#67">67</a>  <em class="comment">//			out.write("&lt;ejb-jar>\n");</em>
  <a name="68" href="#68">68</a>  <em class="comment">//		}else{</em>
  <a name="69" href="#69">69</a>  <em class="comment">//		}</em>
  <a name="70" href="#70">70</a>          out.write(<span class="string">"&lt;ejb-jar xmlns=\&quot;http://java.sun.com/xml/ns/j2ee\&quot;\n"</span>);
  <a name="71" href="#71">71</a>          out.write(<span class="string">"		 xmlns:xsi=\&quot;http://www.w3.org/2001/XMLSchema-instance\&quot;\n"</span>);
  <a name="72" href="#72">72</a>          out.write(<span class="string">"		 xsi:schemaLocation=\&quot;http://java.sun.com/xml/ns/j2ee&#47;&#47;n"</span>);
  <a name="73" href="#73">73</a>          out.write(<span class="string">"		 http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd\&quot;\n"</span>);
  <a name="74" href="#74">74</a>          out.write(<span class="string">"		 version=\&quot;2.1\&quot;>\n"</span>);
  <a name="75" href="#75">75</a>  
  <a name="76" href="#76">76</a>          <em class="comment">//out.write("&lt;display-name>" + j2eewscontext.getWSCFContext().getWscfdWsDesxription().getDisplayName() + "&lt;/display-name>\n");</em>
  <a name="77" href="#77">77</a>          out.write(<span class="string">"\t&lt;enterprise-beans>\n"</span>);
  <a name="78" href="#78">78</a>          out.write(<span class="string">"\t\t&lt;session>\n"</span>);
  <a name="79" href="#79">79</a>          out.write(<span class="string">"\t\t\t&lt;display-name>"</span> + j2eewscontext.getWSCFContext().getWscfdWsDesxription().getDisplayName() + <span class="string">"&lt;/display-name>\n"</span>);
  <a name="80" href="#80">80</a>          out.write(<span class="string">"\t\t\t&lt;ejb-name>"</span> + ejbname + <span class="string">"&lt;/ejb-name>\n"</span>);
  <a name="81" href="#81">81</a>          String implStyle = j2eewscontext.getMiscInfo().getImplStyle();
  <a name="82" href="#82">82</a>          <strong>if</strong> (GenerationConstants.USE_LOCAL_AND_REMOTE.equals(implStyle)
  <a name="83" href="#83">83</a>                  || GenerationConstants.USE_REMOTE.equals(implStyle)
  <a name="84" href="#84">84</a>                  || GenerationConstants.USE_INTERNALS.equals(implStyle)) {
  <a name="85" href="#85">85</a>              out.write(<span class="string">"\t\t\t&lt;home>"</span> + ejbcontext.getEjbhomeInterface() + <span class="string">"&lt;/home>\n"</span>);
  <a name="86" href="#86">86</a>              out.write(<span class="string">"\t\t\t&lt;remote>"</span> + ejbcontext.getEjbRemoteInterface() + <span class="string">"&lt;/remote>\n"</span>);
  <a name="87" href="#87">87</a>          }
  <a name="88" href="#88">88</a>          <strong>if</strong> (GenerationConstants.USE_LOCAL_AND_REMOTE.equals(implStyle)
  <a name="89" href="#89">89</a>                  || GenerationConstants.USE_LOCAL.equals(implStyle)) {
  <a name="90" href="#90">90</a>              out.write(<span class="string">"\t\t\t&lt;local-home>"</span> + ejbcontext.getEjbLocalHomeInterfce() + <span class="string">"&lt;/local-home>"</span>);
  <a name="91" href="#91">91</a>              out.write(<span class="string">"\t\t\t&lt;local>"</span> + ejbcontext.getEjbLocalInterface() + <span class="string">"&lt;/local>"</span>);
  <a name="92" href="#92">92</a>          }
  <a name="93" href="#93">93</a>          out.write(<span class="string">"\t\t\t&lt;ejb-class>"</span> + ejbcontext.getImplBean() + <span class="string">"&lt;/ejb-class>\n"</span>);
  <a name="94" href="#94">94</a>          out.write(<span class="string">"\t\t\t&lt;session-type>Stateless&lt;/session-type>\n"</span>);
  <a name="95" href="#95">95</a>          out.write(<span class="string">"\t\t\t&lt;transaction-type>Bean&lt;/transaction-type>\n"</span>);
  <a name="96" href="#96">96</a>          out.write(<span class="string">"\t\t\t&lt;security-identity>\n"</span>);
  <a name="97" href="#97">97</a>          out.write(<span class="string">"\t\t\t\t&lt;description>&lt;/description>\n"</span>);
  <a name="98" href="#98">98</a>          out.write(<span class="string">"\t\t\t\t&lt;use-caller-identity>&lt;/use-caller-identity>\n"</span>);
  <a name="99" href="#99">99</a>          out.write(<span class="string">"\t\t\t&lt;/security-identity>\n"</span>);
  <a name="100" href="#100">100</a>         out.write(<span class="string">"\t\t&lt;/session\n>"</span>);
  <a name="101" href="#101">101</a>         out.write(<span class="string">"\t&lt;/enterprise-beans>\n"</span>);
  <a name="102" href="#102">102</a>         out.write(<span class="string">"\t&lt;assembly-descriptor>\n"</span>);
  <a name="103" href="#103">103</a>         out.write(<span class="string">"\t    &lt;method-permission>\n"</span>);
  <a name="104" href="#104">104</a>         out.write(<span class="string">"\t        &lt;unchecked/>\n"</span>);
  <a name="105" href="#105">105</a>         out.write(<span class="string">"\t        &lt;method>\n"</span>);
  <a name="106" href="#106">106</a>         out.write(<span class="string">"\t		     &lt;ejb-name>"</span> + ejbname + <span class="string">"&lt;/ejb-name>\n"</span>);
  <a name="107" href="#107">107</a>         out.write(<span class="string">"\t			 &lt;method-name>*&lt;/method-name>\n"</span>);
  <a name="108" href="#108">108</a>         out.write(<span class="string">"\t		&lt;/method>\n"</span>);
  <a name="109" href="#109">109</a>         out.write(<span class="string">"\t     &lt;/method-permission>\n"</span>);
  <a name="110" href="#110">110</a>         out.write(<span class="string">"\t&lt;/assembly-descriptor>\n"</span>);
  <a name="111" href="#111">111</a>         out.write(<span class="string">"&lt;/ejb-jar>\n"</span>);
  <a name="112" href="#112">112</a>     }
  <a name="113" href="#113">113</a> }
  </pre>
  <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
  </html>
  
  
  
  
  1.1                  ws-site/targets/ews/xref/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBGenerator.html
  
  Index: EJBGenerator.html
  ===================================================================
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>EJBGenerator xref</title>
  <link type="text/css" rel="stylesheet" href="../../../../../../../stylesheet.css" />
  </head>
  <body>
  <div id="overview"><a href="../../../../../../../../apidocs/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBGenerator.html">View Javadoc</a></div><pre>
  
  <a name="1" href="#1">1</a>   <em class="comment">/*</em>
  <a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2001-2004 The Apache Software Foundation.</em>
  <a name="3" href="#3">3</a>   <em class="comment"> * </em>
  <a name="4" href="#4">4</a>   <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
  <a name="5" href="#5">5</a>   <em class="comment"> * you may not use this file except in compliance with the License.</em>
  <a name="6" href="#6">6</a>   <em class="comment"> * You may obtain a copy of the License at</em>
  <a name="7" href="#7">7</a>   <em class="comment"> * </em>
  <a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
  <a name="9" href="#9">9</a>   <em class="comment"> * </em>
  <a name="10" href="#10">10</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
  <a name="11" href="#11">11</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
  <a name="12" href="#12">12</a>  <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
  <a name="13" href="#13">13</a>  <em class="comment"> * See the License for the specific language governing permissions and</em>
  <a name="14" href="#14">14</a>  <em class="comment"> * limitations under the License.</em>
  <a name="15" href="#15">15</a>  <em class="comment"> */</em>
  <a name="16" href="#16">16</a>  
  <a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/package-summary.html">org.apache.geronimo.ews.ws4j2ee.toWs.ejb</a>;
  <a name="18" href="#18">18</a>  
  <a name="19" href="#19">19</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext;
  <a name="20" href="#20">20</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext;
  <a name="21" href="#21">21</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.GenerationConstants;
  <a name="22" href="#22">22</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
  <a name="23" href="#23">23</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.Generator;
  <a name="24" href="#24">24</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.UnrecoverableGenerationFault;
  <a name="25" href="#25">25</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.Writer;
  <a name="26" href="#26">26</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeFactory;
  <a name="27" href="#27">27</a>  
  <a name="28" href="#28">28</a>  <em>/**<em>*</em></em>
  <a name="29" href="#29">29</a>  <em> * &lt;p>This class crete the nessacsaary EJB artifacts&lt;/p></em>
  <a name="30" href="#30">30</a>  <em> *</em>
  <a name="31" href="#31">31</a>  <em> * @author Srinath Perera(hemapani@opensource.lk)</em>
  <a name="32" href="#32">32</a>  <em> */</em>
  <a name="33" href="#33">33</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBGenerator.html">EJBGenerator</a> implements <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/Generator.html">Generator</a> {
  <a name="34" href="#34">34</a>      <strong>private</strong> J2EEWebServiceContext context;
  <a name="35" href="#35">35</a>      <strong>private</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/Writer.html">Writer</a> homewriter;
  <a name="36" href="#36">36</a>      <strong>private</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/Writer.html">Writer</a> remotewriter;
  <a name="37" href="#37">37</a>      <strong>private</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/Writer.html">Writer</a> beanwriter;
  <a name="38" href="#38">38</a>      <strong>private</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/Writer.html">Writer</a> ddwriter;
  <a name="39" href="#39">39</a>      <strong>private</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/Writer.html">Writer</a> localwriter;
  <a name="40" href="#40">40</a>      <strong>private</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/Writer.html">Writer</a> localhomewriter;
  <a name="41" href="#41">41</a>      <strong>protected</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext;
  <a name="42" href="#42">42</a>      <strong>private</strong> Ws4J2eeFactory factory;
  <a name="43" href="#43">43</a>  
  <a name="44" href="#44">44</a>      <strong>public</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBGenerator.html">EJBGenerator</a>(J2EEWebServiceContext context) throws GenerationFault {
  <a name="45" href="#45">45</a>          <strong>this</strong>.context = context;
  <a name="46" href="#46">46</a>          ejbcontext = context.getEJBDDContext();
  <a name="47" href="#47">47</a>          <strong>if</strong> (ejbcontext == <strong>null</strong>) {
  <a name="48" href="#48">48</a>              <strong>throw</strong> <strong>new</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/UnrecoverableGenerationFault.html">UnrecoverableGenerationFault</a>(<span class="string">"for ejbbased Impl"</span> +
  <a name="49" href="#49">49</a>                      <span class="string">" the EJBDDContext must not be null"</span>);
  <a name="50" href="#50">50</a>          }
  <a name="51" href="#51">51</a>          factory = context.getFactory();
  <a name="52" href="#52">52</a>          String implStyle = context.getMiscInfo().getImplStyle();
  <a name="53" href="#53">53</a>          <strong>if</strong> (GenerationConstants.USE_LOCAL_AND_REMOTE.equals(implStyle)
  <a name="54" href="#54">54</a>                  || GenerationConstants.USE_REMOTE.equals(implStyle)) {
  <a name="55" href="#55">55</a>              homewriter = factory.getGenerationFactory().createEJBWriter(context, ejbcontext, GenerationConstants.EJB_HOME_INTERFACE_WRITER);
  <a name="56" href="#56">56</a>              remotewriter = factory.getGenerationFactory().createEJBWriter(context, ejbcontext, GenerationConstants.EJB_REMOTE_INTERFACE_WRITER);
  <a name="57" href="#57">57</a>          } <strong>else</strong> <strong>if</strong> (GenerationConstants.USE_LOCAL_AND_REMOTE.equals(implStyle)
  <a name="58" href="#58">58</a>                  || GenerationConstants.USE_LOCAL.equals(implStyle)) {
  <a name="59" href="#59">59</a>              localhomewriter = factory.getGenerationFactory().createEJBWriter(context, ejbcontext, GenerationConstants.EJB_LOCAL_HOME_INTERFACE_WRITER);
  <a name="60" href="#60">60</a>              localwriter = factory.getGenerationFactory().createEJBWriter(context, ejbcontext, GenerationConstants.EJB_LOCAL_INTERFACE_WRITER);
  <a name="61" href="#61">61</a>          } <strong>else</strong> <strong>if</strong> (GenerationConstants.USE_INTERNALS.equals(implStyle)) {
  <a name="62" href="#62">62</a>              homewriter = factory.getGenerationFactory().createEJBWriter(context, ejbcontext, GenerationConstants.EJB_HOME_INTERFACE_WRITER);
  <a name="63" href="#63">63</a>              remotewriter = factory.getGenerationFactory().createEJBWriter(context, ejbcontext, GenerationConstants.EJB_REMOTE_INTERFACE_WRITER);
  <a name="64" href="#64">64</a>          }
  <a name="65" href="#65">65</a>          <strong>if</strong> (!context.getMiscInfo().isImplAvalible()) {
  <a name="66" href="#66">66</a>              beanwriter = factory.getGenerationFactory().createEJBWriter(context, ejbcontext, GenerationConstants.EJB_IMPLEMENTATION_BEAN_WRITER);
  <a name="67" href="#67">67</a>          }
  <a name="68" href="#68">68</a>          ddwriter = factory.getGenerationFactory().createEJBWriter(context, ejbcontext, GenerationConstants.EJB_DD_WRITER);
  <a name="69" href="#69">69</a>      }
  <a name="70" href="#70">70</a>  
  <a name="71" href="#71">71</a>      <strong>public</strong> <strong>void</strong> generate() throws GenerationFault {
  <a name="72" href="#72">72</a>          <strong>if</strong> (homewriter != <strong>null</strong>)
  <a name="73" href="#73">73</a>              homewriter.write();
  <a name="74" href="#74">74</a>          <strong>if</strong> (remotewriter != <strong>null</strong>)
  <a name="75" href="#75">75</a>              remotewriter.write();
  <a name="76" href="#76">76</a>          <strong>if</strong> (beanwriter != <strong>null</strong>)
  <a name="77" href="#77">77</a>              beanwriter.write();
  <a name="78" href="#78">78</a>          <strong>if</strong> (ddwriter != <strong>null</strong>)
  <a name="79" href="#79">79</a>              ddwriter.write();
  <a name="80" href="#80">80</a>          <strong>if</strong> (localwriter != <strong>null</strong>) {
  <a name="81" href="#81">81</a>              localwriter.write();
  <a name="82" href="#82">82</a>          }
  <a name="83" href="#83">83</a>          <strong>if</strong> (localhomewriter != <strong>null</strong>) {
  <a name="84" href="#84">84</a>              localhomewriter.write();
  <a name="85" href="#85">85</a>          }
  <a name="86" href="#86">86</a>      }
  <a name="87" href="#87">87</a>  
  <a name="88" href="#88">88</a>  }
  </pre>
  <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
  </html>
  
  
  
  
  1.1                  ws-site/targets/ews/xref/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBHomeWriter.html
  
  Index: EJBHomeWriter.html
  ===================================================================
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>EJBHomeWriter xref</title>
  <link type="text/css" rel="stylesheet" href="../../../../../../../stylesheet.css" />
  </head>
  <body>
  <div id="overview"><a href="../../../../../../../../apidocs/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBHomeWriter.html">View Javadoc</a></div><pre>
  
  <a name="1" href="#1">1</a>   <em class="comment">/*</em>
  <a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2001-2004 The Apache Software Foundation.</em>
  <a name="3" href="#3">3</a>   <em class="comment"> * </em>
  <a name="4" href="#4">4</a>   <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
  <a name="5" href="#5">5</a>   <em class="comment"> * you may not use this file except in compliance with the License.</em>
  <a name="6" href="#6">6</a>   <em class="comment"> * You may obtain a copy of the License at</em>
  <a name="7" href="#7">7</a>   <em class="comment"> * </em>
  <a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
  <a name="9" href="#9">9</a>   <em class="comment"> * </em>
  <a name="10" href="#10">10</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
  <a name="11" href="#11">11</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
  <a name="12" href="#12">12</a>  <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
  <a name="13" href="#13">13</a>  <em class="comment"> * See the License for the specific language governing permissions and</em>
  <a name="14" href="#14">14</a>  <em class="comment"> * limitations under the License.</em>
  <a name="15" href="#15">15</a>  <em class="comment"> */</em>
  <a name="16" href="#16">16</a>  <strong>package</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/package-summary.html">org.apache.geronimo.ews.ws4j2ee.toWs.ejb</a>;
  <a name="17" href="#17">17</a>  
  <a name="18" href="#18">18</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext;
  <a name="19" href="#19">19</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext;
  <a name="20" href="#20">20</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
  <a name="21" href="#21">21</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.JavaInterfaceWriter;
  <a name="22" href="#22">22</a>  
  <a name="23" href="#23">23</a>  <em>/**<em>*</em></em>
  <a name="24" href="#24">24</a>  <em> * This class can be used to write the appropriate EJB Home interface</em>
  <a name="25" href="#25">25</a>  <em> * class for the given port type.</em>
  <a name="26" href="#26">26</a>  <em> *</em>
  <a name="27" href="#27">27</a>  <em> * @author Rajith Priyanga</em>
  <a name="28" href="#28">28</a>  <em> * @author Srinath Perera</em>
  <a name="29" href="#29">29</a>  <em> * @date Nov 26, 2003</em>
  <a name="30" href="#30">30</a>  <em> */</em>
  <a name="31" href="#31">31</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBHomeWriter.html">EJBHomeWriter</a> <strong>extends</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/JavaInterfaceWriter.html">JavaInterfaceWriter</a> {
  <a name="32" href="#32">32</a>      <strong>private</strong> String name;
  <a name="33" href="#33">33</a>      <strong>protected</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext;
  <a name="34" href="#34">34</a>  
  <a name="35" href="#35">35</a>      <em>/**<em>*</em></em>
  <a name="36" href="#36">36</a>  <em>     * Constructs a EJBHomeWriter.</em>
  <a name="37" href="#37">37</a>  <em>     *</em>
  <a name="38" href="#38">38</a>  <em>     * @param portType The port type which contains the details.</em>
  <a name="39" href="#39">39</a>  <em>     * @throws GenerationFault</em>
  <a name="40" href="#40">40</a>  <em>     */</em>
  <a name="41" href="#41">41</a>      <strong>public</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBHomeWriter.html">EJBHomeWriter</a>(J2EEWebServiceContext context, <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext) throws GenerationFault {
  <a name="42" href="#42">42</a>          <strong>super</strong>(context, ejbcontext.getEjbhomeInterface());
  <a name="43" href="#43">43</a>          <strong>this</strong>.ejbcontext = ejbcontext;
  <a name="44" href="#44">44</a>      }
  <a name="45" href="#45">45</a>  <em class="comment">//TODO</em>
  <a name="46" href="#46">46</a>  <em class="comment">//	</em><em>/**<em>*</em></em>
  <a name="47" href="#47">47</a>  <em>//	 * Returns the complete file name of the source code file which is</em>
  <a name="48" href="#48">48</a>  <em>//	 * generated by the writer.</em>
  <a name="49" href="#49">49</a>  <em>//	 */</em>
  <a name="50" href="#50">50</a>  <em class="comment">//	public String getFileName() {</em>
  <a name="51" href="#51">51</a>  <em class="comment">//		name = ejbcontext.getEjbhomeInterface();</em>
  <a name="52" href="#52">52</a>  <em class="comment">//		String outdir = j2eewscontext.getMiscInfo().getOutPutPath();</em>
  <a name="53" href="#53">53</a>  <em class="comment">//		if (!outdir.endsWith("/"))</em>
  <a name="54" href="#54">54</a>  <em class="comment">//			outdir = outdir + "/";</em>
  <a name="55" href="#55">55</a>  <em class="comment">//</em>
  <a name="56" href="#56">56</a>  <em class="comment">//		return outdir + name.replace('.', '/') + ".java";</em>
  <a name="57" href="#57">57</a>  <em class="comment">//	}</em>
  <a name="58" href="#58">58</a>  
  <a name="59" href="#59">59</a>      <strong>protected</strong> <strong>void</strong> writeAttributes() throws GenerationFault {
  <a name="60" href="#60">60</a>      }
  <a name="61" href="#61">61</a>  
  <a name="62" href="#62">62</a>      <strong>protected</strong> <strong>void</strong> writeMethods() throws GenerationFault {
  <a name="63" href="#63">63</a>          out.write(<span class="string">"\tpublic "</span> + ejbcontext.getEjbRemoteInterface() + <span class="string">" create()throws java.rmi.RemoteException,javax.ejb.CreateException;\n"</span>);
  <a name="64" href="#64">64</a>      }
  <a name="65" href="#65">65</a>  
  <a name="66" href="#66">66</a>      <strong>protected</strong> String getExtendsPart() {
  <a name="67" href="#67">67</a>          <strong>return</strong> <span class="string">" extends javax.ejb.EJBHome"</span>;
  <a name="68" href="#68">68</a>      }
  <a name="69" href="#69">69</a>  
  <a name="70" href="#70">70</a>  }
  </pre>
  <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
  </html>
  
  
  
  
  1.1                  ws-site/targets/ews/xref/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBLocalHomeWriter.html
  
  Index: EJBLocalHomeWriter.html
  ===================================================================
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>EJBLocalHomeWriter xref</title>
  <link type="text/css" rel="stylesheet" href="../../../../../../../stylesheet.css" />
  </head>
  <body>
  <div id="overview"><a href="../../../../../../../../apidocs/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBLocalHomeWriter.html">View Javadoc</a></div><pre>
  
  <a name="1" href="#1">1</a>   <em class="comment">/*</em>
  <a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2001-2004 The Apache Software Foundation.</em>
  <a name="3" href="#3">3</a>   <em class="comment"> * </em>
  <a name="4" href="#4">4</a>   <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
  <a name="5" href="#5">5</a>   <em class="comment"> * you may not use this file except in compliance with the License.</em>
  <a name="6" href="#6">6</a>   <em class="comment"> * You may obtain a copy of the License at</em>
  <a name="7" href="#7">7</a>   <em class="comment"> * </em>
  <a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
  <a name="9" href="#9">9</a>   <em class="comment"> * </em>
  <a name="10" href="#10">10</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
  <a name="11" href="#11">11</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
  <a name="12" href="#12">12</a>  <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
  <a name="13" href="#13">13</a>  <em class="comment"> * See the License for the specific language governing permissions and</em>
  <a name="14" href="#14">14</a>  <em class="comment"> * limitations under the License.</em>
  <a name="15" href="#15">15</a>  <em class="comment"> */</em>
  <a name="16" href="#16">16</a>  <strong>package</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/package-summary.html">org.apache.geronimo.ews.ws4j2ee.toWs.ejb</a>;
  <a name="17" href="#17">17</a>  
  <a name="18" href="#18">18</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext;
  <a name="19" href="#19">19</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext;
  <a name="20" href="#20">20</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
  <a name="21" href="#21">21</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.JavaInterfaceWriter;
  <a name="22" href="#22">22</a>  
  <a name="23" href="#23">23</a>  <em>/**<em>*</em></em>
  <a name="24" href="#24">24</a>  <em> * This class can be used to write the appropriate EJB LocalHome interface</em>
  <a name="25" href="#25">25</a>  <em> * class for the given port type.</em>
  <a name="26" href="#26">26</a>  <em> *</em>
  <a name="27" href="#27">27</a>  <em> * @author Rajith Priyanga</em>
  <a name="28" href="#28">28</a>  <em> * @author Srinath Perera</em>
  <a name="29" href="#29">29</a>  <em> * @date Nov 26, 2003</em>
  <a name="30" href="#30">30</a>  <em> */</em>
  <a name="31" href="#31">31</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBLocalHomeWriter.html">EJBLocalHomeWriter</a> <strong>extends</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/JavaInterfaceWriter.html">JavaInterfaceWriter</a> {
  <a name="32" href="#32">32</a>      <strong>private</strong> String name;
  <a name="33" href="#33">33</a>      <strong>protected</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext;
  <a name="34" href="#34">34</a>  
  <a name="35" href="#35">35</a>      <em>/**<em>*</em></em>
  <a name="36" href="#36">36</a>  <em>     * Constructs a EJBLocalHomeWriter.</em>
  <a name="37" href="#37">37</a>  <em>     *</em>
  <a name="38" href="#38">38</a>  <em>     * @param portType The port type which contains the details.</em>
  <a name="39" href="#39">39</a>  <em>     * @throws GenerationFault</em>
  <a name="40" href="#40">40</a>  <em>     */</em>
  <a name="41" href="#41">41</a>      <strong>public</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBLocalHomeWriter.html">EJBLocalHomeWriter</a>(J2EEWebServiceContext context, <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext) throws GenerationFault {
  <a name="42" href="#42">42</a>          <strong>super</strong>(context, ejbcontext.getEjbLocalHomeInterfce());
  <a name="43" href="#43">43</a>          <strong>this</strong>.ejbcontext = ejbcontext;
  <a name="44" href="#44">44</a>      }
  <a name="45" href="#45">45</a>  
  <a name="46" href="#46">46</a>      <strong>protected</strong> <strong>void</strong> writeAttributes() throws GenerationFault {
  <a name="47" href="#47">47</a>      }
  <a name="48" href="#48">48</a>  
  <a name="49" href="#49">49</a>      <strong>protected</strong> <strong>void</strong> writeMethods() throws GenerationFault {
  <a name="50" href="#50">50</a>          out.write(<span class="string">"\tpublic "</span> + ejbcontext.getEjbLocalInterface() + <span class="string">" create()throws javax.ejb.CreateException;\n"</span>);
  <a name="51" href="#51">51</a>      }
  <a name="52" href="#52">52</a>  
  <a name="53" href="#53">53</a>      <strong>protected</strong> String getExtendsPart() {
  <a name="54" href="#54">54</a>          <strong>return</strong> <span class="string">" extends javax.ejb.EJBLocalHome "</span>;
  <a name="55" href="#55">55</a>      }
  <a name="56" href="#56">56</a>  
  <a name="57" href="#57">57</a>  }
  </pre>
  <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
  </html>
  
  
  
  
  1.1                  ws-site/targets/ews/xref/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBLocalWriter.html
  
  Index: EJBLocalWriter.html
  ===================================================================
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>EJBLocalWriter xref</title>
  <link type="text/css" rel="stylesheet" href="../../../../../../../stylesheet.css" />
  </head>
  <body>
  <div id="overview"><a href="../../../../../../../../apidocs/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBLocalWriter.html">View Javadoc</a></div><pre>
  
  <a name="1" href="#1">1</a>   <em class="comment">/*</em>
  <a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2001-2004 The Apache Software Foundation.</em>
  <a name="3" href="#3">3</a>   <em class="comment"> * </em>
  <a name="4" href="#4">4</a>   <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
  <a name="5" href="#5">5</a>   <em class="comment"> * you may not use this file except in compliance with the License.</em>
  <a name="6" href="#6">6</a>   <em class="comment"> * You may obtain a copy of the License at</em>
  <a name="7" href="#7">7</a>   <em class="comment"> * </em>
  <a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
  <a name="9" href="#9">9</a>   <em class="comment"> * </em>
  <a name="10" href="#10">10</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
  <a name="11" href="#11">11</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
  <a name="12" href="#12">12</a>  <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
  <a name="13" href="#13">13</a>  <em class="comment"> * See the License for the specific language governing permissions and</em>
  <a name="14" href="#14">14</a>  <em class="comment"> * limitations under the License.</em>
  <a name="15" href="#15">15</a>  <em class="comment"> */</em>
  <a name="16" href="#16">16</a>  <strong>package</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/package-summary.html">org.apache.geronimo.ews.ws4j2ee.toWs.ejb</a>;
  <a name="17" href="#17">17</a>  
  <a name="18" href="#18">18</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext;
  <a name="19" href="#19">19</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.SEIOperation;
  <a name="20" href="#20">20</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext;
  <a name="21" href="#21">21</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
  <a name="22" href="#22">22</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.JavaInterfaceWriter;
  <a name="23" href="#23">23</a>  
  <a name="24" href="#24">24</a>  <strong>import</strong> java.util.ArrayList;
  <a name="25" href="#25">25</a>  <strong>import</strong> java.util.Iterator;
  <a name="26" href="#26">26</a>  
  <a name="27" href="#27">27</a>  <em>/**<em>*</em></em>
  <a name="28" href="#28">28</a>  <em> * This class can be used to write the appropriate EJB Remote interface</em>
  <a name="29" href="#29">29</a>  <em> * class for the given port type.</em>
  <a name="30" href="#30">30</a>  <em> *</em>
  <a name="31" href="#31">31</a>  <em> * @author Rajith Priyanga</em>
  <a name="32" href="#32">32</a>  <em> * @author Srinath Perera</em>
  <a name="33" href="#33">33</a>  <em> * @date Nov 26, 2003</em>
  <a name="34" href="#34">34</a>  <em> */</em>
  <a name="35" href="#35">35</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBLocalWriter.html">EJBLocalWriter</a> <strong>extends</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/JavaInterfaceWriter.html">JavaInterfaceWriter</a> {
  <a name="36" href="#36">36</a>      <strong>private</strong> String name;
  <a name="37" href="#37">37</a>      <strong>protected</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext;
  <a name="38" href="#38">38</a>  
  <a name="39" href="#39">39</a>      <em>/**<em>*</em></em>
  <a name="40" href="#40">40</a>  <em>     * Constructs a EJBRemoteWriter.</em>
  <a name="41" href="#41">41</a>  <em>     *</em>
  <a name="42" href="#42">42</a>  <em>     * @param portType The port type which contains the details.</em>
  <a name="43" href="#43">43</a>  <em>     * @throws GenerationFault</em>
  <a name="44" href="#44">44</a>  <em>     */</em>
  <a name="45" href="#45">45</a>      <strong>public</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBLocalWriter.html">EJBLocalWriter</a>(J2EEWebServiceContext context, <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext) throws GenerationFault {
  <a name="46" href="#46">46</a>          <strong>super</strong>(context, ejbcontext.getEjbLocalInterface());
  <a name="47" href="#47">47</a>          <strong>this</strong>.ejbcontext = ejbcontext;
  <a name="48" href="#48">48</a>      }
  <a name="49" href="#49">49</a>  
  <a name="50" href="#50">50</a>      <strong>protected</strong> String getExtendsPart() {
  <a name="51" href="#51">51</a>          <strong>return</strong> <span class="string">" extends javax.ejb.EJBLocalObject"</span>;
  <a name="52" href="#52">52</a>      }
  <a name="53" href="#53">53</a>  
  <a name="54" href="#54">54</a>      <strong>protected</strong> <strong>void</strong> writeAttributes() throws GenerationFault {
  <a name="55" href="#55">55</a>      }
  <a name="56" href="#56">56</a>  
  <a name="57" href="#57">57</a>      <strong>protected</strong> <strong>void</strong> writeMethods() throws GenerationFault {
  <a name="58" href="#58">58</a>          String parmlistStr = <span class="string">""</span>;
  <a name="59" href="#59">59</a>          ArrayList operations = j2eewscontext.getMiscInfo().getSEIOperations();
  <a name="60" href="#60">60</a>          <strong>for</strong> (<strong>int</strong> i = 0; i &lt; operations.size(); i++) {
  <a name="61" href="#61">61</a>              <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/SEIOperation.html">SEIOperation</a> op = (SEIOperation) operations.get(i);
  <a name="62" href="#62">62</a>              String returnType = op.getReturnType();
  <a name="63" href="#63">63</a>              <strong>if</strong> (returnType == <strong>null</strong>)
  <a name="64" href="#64">64</a>                  returnType = <span class="string">"void"</span>;
  <a name="65" href="#65">65</a>              out.write(<span class="string">"\tpublic "</span> + returnType + <span class="string">" "</span> + op.getMethodName() + <span class="string">"("</span>);
  <a name="66" href="#66">66</a>              Iterator pas = op.getParameterNames().iterator();
  <a name="67" href="#67">67</a>              <strong>boolean</strong> first = <strong>true</strong>;
  <a name="68" href="#68">68</a>              <strong>while</strong> (pas.hasNext()) {
  <a name="69" href="#69">69</a>                  String name = (String) pas.next();
  <a name="70" href="#70">70</a>                  String type = (String) op.getParameterType(name);
  <a name="71" href="#71">71</a>                  <strong>if</strong> (first) {
  <a name="72" href="#72">72</a>                      first = false;
  <a name="73" href="#73">73</a>                      out.write(type + <span class="string">" "</span> + name);
  <a name="74" href="#74">74</a>                      parmlistStr = parmlistStr + name;
  <a name="75" href="#75">75</a>                  } <strong>else</strong> {
  <a name="76" href="#76">76</a>                      out.write(<span class="string">","</span> + type + <span class="string">" "</span> + name);
  <a name="77" href="#77">77</a>                      parmlistStr = <span class="string">","</span> + name;
  <a name="78" href="#78">78</a>                  }
  <a name="79" href="#79">79</a>              }
  <a name="80" href="#80">80</a>              out.write(<span class="string">")"</span>);
  <a name="81" href="#81">81</a>  <em class="comment">//ejb giving problems deploying check this            </em>
  <a name="82" href="#82">82</a>  <em class="comment">//			  ArrayList faults = op.getFaults();</em>
  <a name="83" href="#83">83</a>  <em class="comment">//			  for (int j = 0; j &lt; faults.size(); j++) {</em>
  <a name="84" href="#84">84</a>  <em class="comment">//				  out.write("," + (String) faults.get(i));</em>
  <a name="85" href="#85">85</a>  <em class="comment">//			  }</em>
  <a name="86" href="#86">86</a>              out.write(<span class="string">";\n"</span>);
  <a name="87" href="#87">87</a>          }
  <a name="88" href="#88">88</a>      }
  <a name="89" href="#89">89</a>  
  <a name="90" href="#90">90</a>  }
  </pre>
  <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
  </html>
  
  
  
  
  1.1                  ws-site/targets/ews/xref/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBRemoteWriter.html
  
  Index: EJBRemoteWriter.html
  ===================================================================
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>EJBRemoteWriter xref</title>
  <link type="text/css" rel="stylesheet" href="../../../../../../../stylesheet.css" />
  </head>
  <body>
  <div id="overview"><a href="../../../../../../../../apidocs/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBRemoteWriter.html">View Javadoc</a></div><pre>
  
  <a name="1" href="#1">1</a>   <em class="comment">/*</em>
  <a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2001-2004 The Apache Software Foundation.</em>
  <a name="3" href="#3">3</a>   <em class="comment"> * </em>
  <a name="4" href="#4">4</a>   <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
  <a name="5" href="#5">5</a>   <em class="comment"> * you may not use this file except in compliance with the License.</em>
  <a name="6" href="#6">6</a>   <em class="comment"> * You may obtain a copy of the License at</em>
  <a name="7" href="#7">7</a>   <em class="comment"> * </em>
  <a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
  <a name="9" href="#9">9</a>   <em class="comment"> * </em>
  <a name="10" href="#10">10</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
  <a name="11" href="#11">11</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
  <a name="12" href="#12">12</a>  <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
  <a name="13" href="#13">13</a>  <em class="comment"> * See the License for the specific language governing permissions and</em>
  <a name="14" href="#14">14</a>  <em class="comment"> * limitations under the License.</em>
  <a name="15" href="#15">15</a>  <em class="comment"> */</em>
  <a name="16" href="#16">16</a>  
  <a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/package-summary.html">org.apache.geronimo.ews.ws4j2ee.toWs.ejb</a>;
  <a name="18" href="#18">18</a>  
  <a name="19" href="#19">19</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext;
  <a name="20" href="#20">20</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.SEIOperation;
  <a name="21" href="#21">21</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext;
  <a name="22" href="#22">22</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
  <a name="23" href="#23">23</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.JavaInterfaceWriter;
  <a name="24" href="#24">24</a>  
  <a name="25" href="#25">25</a>  <strong>import</strong> java.util.ArrayList;
  <a name="26" href="#26">26</a>  <strong>import</strong> java.util.Iterator;
  <a name="27" href="#27">27</a>  
  <a name="28" href="#28">28</a>  <em>/**<em>*</em></em>
  <a name="29" href="#29">29</a>  <em> * This class can be used to write the appropriate EJB Remote interface</em>
  <a name="30" href="#30">30</a>  <em> * class for the given port type.</em>
  <a name="31" href="#31">31</a>  <em> *</em>
  <a name="32" href="#32">32</a>  <em> * @author Rajith Priyanga</em>
  <a name="33" href="#33">33</a>  <em> * @author Srinath Perera</em>
  <a name="34" href="#34">34</a>  <em> * @date Nov 26, 2003</em>
  <a name="35" href="#35">35</a>  <em> */</em>
  <a name="36" href="#36">36</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBRemoteWriter.html">EJBRemoteWriter</a> <strong>extends</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/JavaInterfaceWriter.html">JavaInterfaceWriter</a> {
  <a name="37" href="#37">37</a>      <strong>private</strong> String name;
  <a name="38" href="#38">38</a>      <strong>protected</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext;
  <a name="39" href="#39">39</a>  
  <a name="40" href="#40">40</a>      <em>/**<em>*</em></em>
  <a name="41" href="#41">41</a>  <em>     * Constructs a EJBRemoteWriter.</em>
  <a name="42" href="#42">42</a>  <em>     *</em>
  <a name="43" href="#43">43</a>  <em>     * @param portType The port type which contains the details.</em>
  <a name="44" href="#44">44</a>  <em>     * @throws GenerationFault</em>
  <a name="45" href="#45">45</a>  <em>     */</em>
  <a name="46" href="#46">46</a>      <strong>public</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/EJBRemoteWriter.html">EJBRemoteWriter</a>(J2EEWebServiceContext context, <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext) throws GenerationFault {
  <a name="47" href="#47">47</a>          <strong>super</strong>(context, ejbcontext.getEjbRemoteInterface());
  <a name="48" href="#48">48</a>          <strong>this</strong>.ejbcontext = ejbcontext;
  <a name="49" href="#49">49</a>      }
  <a name="50" href="#50">50</a>  
  <a name="51" href="#51">51</a>      <strong>protected</strong> String getExtendsPart() {
  <a name="52" href="#52">52</a>          <strong>return</strong> <span class="string">" extends javax.ejb.EJBObject"</span>;
  <a name="53" href="#53">53</a>      }
  <a name="54" href="#54">54</a>  
  <a name="55" href="#55">55</a>      <strong>protected</strong> <strong>void</strong> writeAttributes() throws GenerationFault {
  <a name="56" href="#56">56</a>      }
  <a name="57" href="#57">57</a>  
  <a name="58" href="#58">58</a>      <strong>protected</strong> <strong>void</strong> writeMethods() throws GenerationFault {
  <a name="59" href="#59">59</a>          String parmlistStr = <span class="string">""</span>;
  <a name="60" href="#60">60</a>          ArrayList operations = j2eewscontext.getMiscInfo().getSEIOperations();
  <a name="61" href="#61">61</a>          <strong>for</strong> (<strong>int</strong> i = 0; i &lt; operations.size(); i++) {
  <a name="62" href="#62">62</a>              <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/SEIOperation.html">SEIOperation</a> op = (SEIOperation) operations.get(i);
  <a name="63" href="#63">63</a>              String returnType = op.getReturnType();
  <a name="64" href="#64">64</a>              <strong>if</strong> (returnType == <strong>null</strong>)
  <a name="65" href="#65">65</a>                  returnType = <span class="string">"void"</span>;
  <a name="66" href="#66">66</a>              out.write(<span class="string">"\tpublic "</span> + returnType + <span class="string">" "</span> + op.getMethodName() + <span class="string">"("</span>);
  <a name="67" href="#67">67</a>              Iterator pas = op.getParameterNames().iterator();
  <a name="68" href="#68">68</a>              <strong>boolean</strong> first = <strong>true</strong>;
  <a name="69" href="#69">69</a>              <strong>while</strong> (pas.hasNext()) {
  <a name="70" href="#70">70</a>                  String name = (String) pas.next();
  <a name="71" href="#71">71</a>                  String type = (String) op.getParameterType(name);
  <a name="72" href="#72">72</a>                  <strong>if</strong> (first) {
  <a name="73" href="#73">73</a>                      first = false;
  <a name="74" href="#74">74</a>                      out.write(type + <span class="string">" "</span> + name);
  <a name="75" href="#75">75</a>                      parmlistStr = parmlistStr + name;
  <a name="76" href="#76">76</a>                  } <strong>else</strong> {
  <a name="77" href="#77">77</a>                      out.write(<span class="string">","</span> + type + <span class="string">" "</span> + name);
  <a name="78" href="#78">78</a>                      parmlistStr = <span class="string">","</span> + name;
  <a name="79" href="#79">79</a>                  }
  <a name="80" href="#80">80</a>              }
  <a name="81" href="#81">81</a>              out.write(<span class="string">") throws java.rmi.RemoteException"</span>);
  <a name="82" href="#82">82</a>  <em class="comment">//ejb giving problems deploying check this            </em>
  <a name="83" href="#83">83</a>  <em class="comment">//			  ArrayList faults = op.getFaults();</em>
  <a name="84" href="#84">84</a>  <em class="comment">//			  for (int j = 0; j &lt; faults.size(); j++) {</em>
  <a name="85" href="#85">85</a>  <em class="comment">//				  out.write("," + (String) faults.get(i));</em>
  <a name="86" href="#86">86</a>  <em class="comment">//			  }</em>
  <a name="87" href="#87">87</a>              out.write(<span class="string">";\n"</span>);
  <a name="88" href="#88">88</a>          }
  <a name="89" href="#89">89</a>      }
  <a name="90" href="#90">90</a>  
  <a name="91" href="#91">91</a>  }
  </pre>
  <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
  </html>
  
  
  
  
  1.1                  ws-site/targets/ews/xref/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/package-frame.html
  
  Index: package-frame.html
  ===================================================================
  
  
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
    <html lang="en">
      <head>
        <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
        <title>Enterprise Web Services 1.0 Reference Package org.apache.geronimo.ews.ws4j2ee.toWs.ejb</title>
        <link rel="stylesheet" href="../../../../../../../stylesheet.css" type="text/css" title="style"></link>
      </head>
      <body>
  
        <h3>
          <a href="package-summary.html" target="classFrame">org.apache.geronimo.ews.ws4j2ee.toWs.ejb</a>
        </h3>
  
        <h3>Classes</h3>
  
        <ul>
          
            <li>
              <a href="EJBDDWriter.html" target="classFrame">EJBDDWriter</a>
            </li>
          
            <li>
              <a href="EJBGenerator.html" target="classFrame">EJBGenerator</a>
            </li>
          
            <li>
              <a href="EJBHomeWriter.html" target="classFrame">EJBHomeWriter</a>
            </li>
          
            <li>
              <a href="EJBLocalHomeWriter.html" target="classFrame">EJBLocalHomeWriter</a>
            </li>
          
            <li>
              <a href="EJBLocalWriter.html" target="classFrame">EJBLocalWriter</a>
            </li>
          
            <li>
              <a href="EJBRemoteWriter.html" target="classFrame">EJBRemoteWriter</a>
            </li>
          
            <li>
              <a href="SessionBeanWriter.html" target="classFrame">SessionBeanWriter</a>
            </li>
          
        </ul>
  
      </body>
    </html>
  
  
  
  1.1                  ws-site/targets/ews/xref/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/package-summary.html
  
  Index: package-summary.html
  ===================================================================
  
  
    
  
    
      
  
      
  
      
  
    
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
        <html lang="en">
          <head>
            <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
            <title>Enterprise Web Services 1.0 Reference Package </title>
            <link rel="stylesheet" href="../../../../../../../stylesheet.css" type="text/css" title="style"></link>
          </head>
          <body>
  
            
        
        
  
        <div class="overview">
          <ul>
            <li>
              <a href="../../../../../../../overview-summary.html">Overview</a>
            </li>
            <li class="selected">Package</li>
          </ul>
        </div>
        <div class="framenoframe">
          <ul>
            <li>
              <a href="../../../../../../../index.html" target="_top">FRAMES</a>
            </li>
            <li>
              <a href="package-summary.html" target="_top">NO FRAMES</a>
            </li>
          </ul>
        </div>
  
        
  
      
        
        <h2>Package org.apache.geronimo.ews.ws4j2ee.toWs.ejb</h2>
  
        <table class="summary">
          <thead>
            <tr>
              <th>Class Summary</th>
            </tr>
          </thead>
  
          <tbody>
            
              <tr>
                <td>
                  <a href="EJBDDWriter.html" target="classFrame">EJBDDWriter</a>
                </td>
              </tr>
            
              <tr>
                <td>
                  <a href="EJBGenerator.html" target="classFrame">EJBGenerator</a>
                </td>
              </tr>
            
              <tr>
                <td>
                  <a href="EJBHomeWriter.html" target="classFrame">EJBHomeWriter</a>
                </td>
              </tr>
            
              <tr>
                <td>
                  <a href="EJBLocalHomeWriter.html" target="classFrame">EJBLocalHomeWriter</a>
                </td>
              </tr>
            
              <tr>
                <td>
                  <a href="EJBLocalWriter.html" target="classFrame">EJBLocalWriter</a>
                </td>
              </tr>
            
              <tr>
                <td>
                  <a href="EJBRemoteWriter.html" target="classFrame">EJBRemoteWriter</a>
                </td>
              </tr>
            
              <tr>
                <td>
                  <a href="SessionBeanWriter.html" target="classFrame">SessionBeanWriter</a>
                </td>
              </tr>
            
          </tbody>
        </table>
  
      
        
        
  
        <div class="overview">
          <ul>
            <li>
              <a href="../../../../../../../overview-summary.html">Overview</a>
            </li>
            <li class="selected">Package</li>
          </ul>
        </div>
        <div class="framenoframe">
          <ul>
            <li>
              <a href="../../../../../../../index.html" target="_top">FRAMES</a>
            </li>
            <li>
              <a href="package-summary.html" target="_top">NO FRAMES</a>
            </li>
          </ul>
        </div>
  
        
  
      
      
  
            <hr></hr>
  
            Copyright &copy;  Apache Software Foundation. All Rights Reserved.
          </body>
        </html>
      
  
  
  
  1.1                  ws-site/targets/ews/xref/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/SessionBeanWriter.html
  
  Index: SessionBeanWriter.html
  ===================================================================
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>SessionBeanWriter xref</title>
  <link type="text/css" rel="stylesheet" href="../../../../../../../stylesheet.css" />
  </head>
  <body>
  <div id="overview"><a href="../../../../../../../../apidocs/org/apache/geronimo/ews/ws4j2ee/toWs/ejb/SessionBeanWriter.html">View Javadoc</a></div><pre>
  
  <a name="1" href="#1">1</a>   <em class="comment">/*</em>
  <a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2001-2004 The Apache Software Foundation.</em>
  <a name="3" href="#3">3</a>   <em class="comment"> * </em>
  <a name="4" href="#4">4</a>   <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
  <a name="5" href="#5">5</a>   <em class="comment"> * you may not use this file except in compliance with the License.</em>
  <a name="6" href="#6">6</a>   <em class="comment"> * You may obtain a copy of the License at</em>
  <a name="7" href="#7">7</a>   <em class="comment"> * </em>
  <a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
  <a name="9" href="#9">9</a>   <em class="comment"> * </em>
  <a name="10" href="#10">10</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
  <a name="11" href="#11">11</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
  <a name="12" href="#12">12</a>  <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
  <a name="13" href="#13">13</a>  <em class="comment"> * See the License for the specific language governing permissions and</em>
  <a name="14" href="#14">14</a>  <em class="comment"> * limitations under the License.</em>
  <a name="15" href="#15">15</a>  <em class="comment"> */</em>
  <a name="16" href="#16">16</a>  
  <a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/package-summary.html">org.apache.geronimo.ews.ws4j2ee.toWs.ejb</a>;
  <a name="18" href="#18">18</a>  
  <a name="19" href="#19">19</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext;
  <a name="20" href="#20">20</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.SEIOperation;
  <a name="21" href="#21">21</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext;
  <a name="22" href="#22">22</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
  <a name="23" href="#23">23</a>  <strong>import</strong> org.apache.geronimo.ews.ws4j2ee.toWs.JavaClassWriter;
  <a name="24" href="#24">24</a>  
  <a name="25" href="#25">25</a>  <strong>import</strong> java.util.ArrayList;
  <a name="26" href="#26">26</a>  <strong>import</strong> java.util.Iterator;
  <a name="27" href="#27">27</a>  
  <a name="28" href="#28">28</a>  <em>/**<em>*</em></em>
  <a name="29" href="#29">29</a>  <em> * &lt;p>This class can be used to write the appropriate SessionBean</em>
  <a name="30" href="#30">30</a>  <em> * class for the given port type.</em>
  <a name="31" href="#31">31</a>  <em> * A Stateless Session Bean, as defined by the Enterprise JavaBeans specification,</em>
  <a name="32" href="#32">32</a>  <em> * can be used to implement a Web service to be deployed in the EJB container.</em>
  <a name="33" href="#33">33</a>  <em> * A Stateless Session Bean does not have to worry about multi-threaded access.</em>
  <a name="34" href="#34">34</a>  <em> * The EJB container is required to serialize request flow through any particular</em>
  <a name="35" href="#35">35</a>  <em> * instance of a Service Implementation Bean. The requirements for creating a Service</em>
  <a name="36" href="#36">36</a>  <em> * Implementation Bean as a Stateless Session EJB are repeated in part here.&lt;/p></em>
  <a name="37" href="#37">37</a>  <em> * &lt;ol></em>
  <a name="38" href="#38">38</a>  <em> * &lt;li>The Service Implementation Bean must have a default public constructor.&lt;/li></em>
  <a name="39" href="#39">39</a>  <em> * &lt;li>The Service Implementation Bean may implement the Service Endpoint Interface,</em>
  <a name="40" href="#40">40</a>  <em> * but it is not required to do so. The bean must implement all the method</em>
  <a name="41" href="#41">41</a>  <em> * signatures of the SEI.&lt;li></em>
  <a name="42" href="#42">42</a>  <em> * &lt;li>The Service Implementation Bean methods are not required to throw</em>
  <a name="43" href="#43">43</a>  <em> * javax.rmi.RemoteException. The business methods of the bean must be public</em>
  <a name="44" href="#44">44</a>  <em> * and must not be final or static. It may implement other methods in addition</em>
  <a name="45" href="#45">45</a>  <em> * to those defined by the SEI.&lt;/li></em>
  <a name="46" href="#46">46</a>  <em> * &lt;li>A Service Implementation Bean must be a stateless object.</em>
  <a name="47" href="#47">47</a>  <em> * A Service Implementation Bean must not save client specific state</em>
  <a name="48" href="#48">48</a>  <em> * across method calls either within the bean instance�s data members or</em>
  <a name="49" href="#49">49</a>  <em> * external to the instance.&lt;/li></em>
  <a name="50" href="#50">50</a>  <em> * &lt;li>The class must be public, must not be final and must not be abstract.&lt;/li></em>
  <a name="51" href="#51">51</a>  <em> * &lt;li>The class must not define the finalize() method.&lt;/li></em>
  <a name="52" href="#52">52</a>  <em> * &lt;li>Currently, it must implement the ejbCreate() and ejbRemove() methods which</em>
  <a name="53" href="#53">53</a>  <em> * take no arguments. This is a requirement of the EJB container, but generally</em>
  <a name="54" href="#54">54</a>  <em> * can be stubbed out with an empty implementation.&lt;/li></em>
  <a name="55" href="#55">55</a>  <em> * &lt;li>Currently, a Stateless Session Bean must implement the javax.ejb.SessionBean</em>
  <a name="56" href="#56">56</a>  <em> * interface either directly or indirectly. This interface allows the container to notify the Service Implementation Bean of impending changes in its state. The full requirements of this interface are defined in the Enterprise JavaBeans specification section 7.5.1.&lt;/li></em>
  <a name="57" href="#57">57</a>  <em> * &lt;li>The Enterprise JavaBeans specification section 7.8.2 defines the allowed</em>
  <a name="58" href="#58">58</a>  <em> * container service access requirements.&lt;/li></em>
  <a name="59" href="#59">59</a>  <em> * &lt;/ol></em>
  <a name="60" href="#60">60</a>  <em> * &lt;h5>Exposing an existing EJB&lt;/h5></em>
  <a name="61" href="#61">61</a>  <em> * &lt;p>An existing Enterprise JavaBean may be used as a Service Implementation Bean if it meets the following requirements:&lt;/p></em>
  <a name="62" href="#62">62</a>  <em> * &lt;ol></em>
  <a name="63" href="#63">63</a>  <em> * &lt;li>The business methods of the EJB bean class that are exposed on the SEI must meet the Service&lt;/li></em>
  <a name="64" href="#64">64</a>  <em> * &lt;li>Implementation Bean requirements defined in section 5.3.1.&lt;/li></em>
  <a name="65" href="#65">65</a>  <em> * &lt;li>The SEI must meet the requirements described in the JAX-RPC specification for Service Endpoint Interfaces.&lt;/li></em>
  <a name="66" href="#66">66</a>  <em> * &lt;li>The transaction attributes of the SEI methods must not include Mandatory.&lt;/li></em>
  <a name="67" href="#67">67</a>  <em> * &lt;li>The developer must package the Web service as described in section 5.4 and must specify an ejb-link from the port in the Web services deployment descriptor to the existing EJB.&lt;/li></em>
  <a name="68" href="#68">68</a>  <em> * &lt;ol></em>
  <a name="69" href="#69">69</a>  <em> *</em>
  <a name="70" href="#70">70</a>  <em> * @author Rajith Priyanga</em>
  <a name="71" href="#71">71</a>  <em> * @author Srinath Perera</em>
  <a name="72" href="#72">72</a>  <em> * @date Nov 26, 2003</em>
  <a name="73" href="#73">73</a>  <em> */</em>
  <a name="74" href="#74">74</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/SessionBeanWriter.html">SessionBeanWriter</a> <strong>extends</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/JavaClassWriter.html">JavaClassWriter</a> {
  <a name="75" href="#75">75</a>      <strong>private</strong> String name;
  <a name="76" href="#76">76</a>      <strong>protected</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext;
  <a name="77" href="#77">77</a>  
  <a name="78" href="#78">78</a>      <em>/**<em>*</em></em>
  <a name="79" href="#79">79</a>  <em>     * Constructs a SessionBeanWriter.</em>
  <a name="80" href="#80">80</a>  <em>     *</em>
  <a name="81" href="#81">81</a>  <em>     * @param portType The port type which contains the details.</em>
  <a name="82" href="#82">82</a>  <em>     * @throws GenerationFault</em>
  <a name="83" href="#83">83</a>  <em>     */</em>
  <a name="84" href="#84">84</a>      <strong>public</strong> <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/toWs/ejb/SessionBeanWriter.html">SessionBeanWriter</a>(J2EEWebServiceContext context, <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/j2eeDD/EJBContext.html">EJBContext</a> ejbcontext) throws GenerationFault {
  <a name="85" href="#85">85</a>          <strong>super</strong>(context, ejbcontext.getImplBean());
  <a name="86" href="#86">86</a>          <strong>this</strong>.ejbcontext = ejbcontext;
  <a name="87" href="#87">87</a>      }
  <a name="88" href="#88">88</a>  
  <a name="89" href="#89">89</a>      <strong>protected</strong> <strong>void</strong> writeAttributes() throws GenerationFault {
  <a name="90" href="#90">90</a>      }
  <a name="91" href="#91">91</a>  
  <a name="92" href="#92">92</a>      <strong>protected</strong> <strong>void</strong> writeConstructors() throws GenerationFault {
  <a name="93" href="#93">93</a>      }
  <a name="94" href="#94">94</a>  
  <a name="95" href="#95">95</a>      <strong>protected</strong> <strong>void</strong> writeMethods() throws GenerationFault {
  <a name="96" href="#96">96</a>          String parmlistStr = <span class="string">""</span>;
  <a name="97" href="#97">97</a>          ArrayList operations = j2eewscontext.getMiscInfo().getSEIOperations();
  <a name="98" href="#98">98</a>          <strong>for</strong> (<strong>int</strong> i = 0; i &lt; operations.size(); i++) {
  <a name="99" href="#99">99</a>              <a href="../../../../../../../org/apache/geronimo/ews/ws4j2ee/context/SEIOperation.html">SEIOperation</a> op = (SEIOperation) operations.get(i);
  <a name="100" href="#100">100</a>             String returnType = op.getReturnType();
  <a name="101" href="#101">101</a>             returnType = (returnType == <strong>null</strong>) ? <span class="string">"void"</span> : returnType;
  <a name="102" href="#102">102</a>             out.write(<span class="string">"\tpublic "</span> + returnType + <span class="string">" "</span> + op.getMethodName() + <span class="string">"("</span>);
  <a name="103" href="#103">103</a>             Iterator pas = op.getParameterNames().iterator();
  <a name="104" href="#104">104</a>             <strong>boolean</strong> first = <strong>true</strong>;
  <a name="105" href="#105">105</a>             <strong>while</strong> (pas.hasNext()) {
  <a name="106" href="#106">106</a>                 String name = (String) pas.next();
  <a name="107" href="#107">107</a>                 String type = (String) op.getParameterType(name);
  <a name="108" href="#108">108</a>                 <strong>if</strong> (first) {
  <a name="109" href="#109">109</a>                     first = false;
  <a name="110" href="#110">110</a>                     out.write(type + <span class="string">" "</span> + name);
  <a name="111" href="#111">111</a>                     parmlistStr = parmlistStr + name;
  <a name="112" href="#112">112</a>                 } <strong>else</strong> {
  <a name="113" href="#113">113</a>                     out.write(<span class="string">","</span> + type + <span class="string">" "</span> + name);
  <a name="114" href="#114">114</a>                     parmlistStr = <span class="string">","</span> + name;
  <a name="115" href="#115">115</a>                 }
  <a name="116" href="#116">116</a>             }
  <a name="117" href="#117">117</a>             out.write(<span class="string">")"</span>);
  <a name="118" href="#118">118</a> <em class="comment">//			out.write(") throws java.rmi.RemoteException");</em>
  <a name="119" href="#119">119</a> <em class="comment">//			ejb giving problems deploying check this            </em>
  <a name="120" href="#120">120</a> <em class="comment">//			  ArrayList faults = op.getFaults();</em>
  <a name="121" href="#121">121</a> <em class="comment">//			  for (int j = 0; j &lt; faults.size(); j++) {</em>
  <a name="122" href="#122">122</a> <em class="comment">//				  out.write("," + (String) faults.get(i));</em>
  <a name="123" href="#123">123</a> <em class="comment">//			  }</em>
  <a name="124" href="#124">124</a>             out.write(<span class="string">"{\n"</span>);
  <a name="125" href="#125">125</a>             <strong>if</strong> (<span class="string">"int"</span>.equals(returnType)) {
  <a name="126" href="#126">126</a>                 out.write(<span class="string">"\t\t\treturn 12;\n"</span>);
  <a name="127" href="#127">127</a>             } <strong>else</strong> <strong>if</strong> (<span class="string">"float"</span>.equals(returnType)) {
  <a name="128" href="#128">128</a>                 out.write(<span class="string">"\t\t\treturn 0.0f;\n"</span>);
  <a name="129" href="#129">129</a>             } <strong>else</strong> <strong>if</strong> (<span class="string">"double"</span>.equals(returnType)) {
  <a name="130" href="#130">130</a>                 out.write(<span class="string">"\t\t\treturn 0.0d;\n"</span>);
  <a name="131" href="#131">131</a>             } <strong>else</strong> <strong>if</strong> (<span class="string">"short"</span>.equals(returnType)) {
  <a name="132" href="#132">132</a>                 out.write(<span class="string">"\t\t\treturn (short)0.0;\n"</span>);
  <a name="133" href="#133">133</a>             } <strong>else</strong> <strong>if</strong> (<span class="string">"boolean"</span>.equals(returnType)) {
  <a name="134" href="#134">134</a>                 out.write(<span class="string">"\t\t\treturn false;\n"</span>);
  <a name="135" href="#135">135</a>             } <strong>else</strong> <strong>if</strong> (<span class="string">"byte"</span>.equals(returnType)) {
  <a name="136" href="#136">136</a>                 out.write(<span class="string">"\t\t\treturn (byte)24;\n"</span>);
  <a name="137" href="#137">137</a>             } <strong>else</strong> <strong>if</strong> (<span class="string">"long"</span>.equals(returnType)) {
  <a name="138" href="#138">138</a>                 out.write(<span class="string">"\t\t\treturn (long)0.0l;\n"</span>);
  <a name="139" href="#139">139</a>             } <strong>else</strong> <strong>if</strong> (<span class="string">"char"</span>.equals(returnType)) {
  <a name="140" href="#140">140</a>                 out.write(<span class="string">"\t\t\treturn 'w';\n"</span>);
  <a name="141" href="#141">141</a>             } <strong>else</strong> <strong>if</strong> (<span class="string">"void"</span>.equals(returnType)) {
  <a name="142" href="#142">142</a>             } <strong>else</strong> {
  <a name="143" href="#143">143</a>                 out.write(<span class="string">"\t\t\treturn null;\n"</span>);
  <a name="144" href="#144">144</a>             }
  <a name="145" href="#145">145</a>             out.write(<span class="string">"\t}\n"</span>);
  <a name="146" href="#146">146</a>         }
  <a name="147" href="#147">147</a>         out.write(<span class="string">"\tpublic javax.naming.Context getInitialContext()throws javax.naming.NamingException{\n"</span>);
  <a name="148" href="#148">148</a>         out.write(<span class="string">"\t	java.util.Properties env = new java.util.Properties();\n"</span>);
  <a name="149" href="#149">149</a>         out.write(<span class="string">"\t	env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,\&quot;org.jnp.interfaces.NamingContextFactory\&quot;);\n"</span>);
  <a name="150" href="#150">150</a>         out.write(<span class="string">"\t	env.put(javax.naming.Context.PROVIDER_URL, \&quot;127.0.0.1:1099\&quot;);\n"</span>);
  <a name="151" href="#151">151</a>         out.write(<span class="string">"\t	return new javax.naming.InitialContext(env);\n"</span>);
  <a name="152" href="#152">152</a>         out.write(<span class="string">"\t}\n"</span>);
  <a name="153" href="#153">153</a>         out.write(<span class="string">"\tpublic void ejbCreate() {}\n"</span>);
  <a name="154" href="#154">154</a>         out.write(<span class="string">"\tpublic void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}\n"</span>);
  <a name="155" href="#155">155</a>         out.write(<span class="string">"\tpublic void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}\n"</span>);
  <a name="156" href="#156">156</a>         out.write(<span class="string">"\tpublic void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException {}\n"</span>);
  <a name="157" href="#157">157</a>         out.write(<span class="string">"\tpublic void setSessionContext(javax.ejb.SessionContext arg0)throws javax.ejb.EJBException, java.rmi.RemoteException {}\n"</span>);
  <a name="158" href="#158">158</a>     }
  <a name="159" href="#159">159</a> 
  <a name="160" href="#160">160</a>     <em class="comment">/*<em class="comment"> (non-Javadoc)</em></em>
  <a name="161" href="#161">161</a> <em class="comment">     * @see org.apache.geronimo.ews.ws4j2ee.toWs.JavaClassWriter#getimplementsPart()</em>
  <a name="162" href="#162">162</a> <em class="comment">     */</em>
  <a name="163" href="#163">163</a>     <strong>protected</strong> String getimplementsPart() {
  <a name="164" href="#164">164</a>         <strong>return</strong> <span class="string">" implements javax.ejb.SessionBean"</span>;
  <a name="165" href="#165">165</a>     }
  <a name="166" href="#166">166</a> 
  <a name="167" href="#167">167</a>     <em class="comment">/*<em class="comment"> (non-Javadoc)</em></em>
  <a name="168" href="#168">168</a> <em class="comment">     * @see org.apache.geronimo.ews.ws4j2ee.toWs.AbstractWriter#isOverWrite()</em>
  <a name="169" href="#169">169</a> <em class="comment">     */</em>
  <a name="170" href="#170">170</a>     <strong>protected</strong> <strong>boolean</strong> isOverWrite() {
  <a name="171" href="#171">171</a>         <strong>return</strong> false;
  <a name="172" href="#172">172</a>     }
  <a name="173" href="#173">173</a> 
  <a name="174" href="#174">174</a> }
  </pre>
  <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
  </html>