Author: azeez
Date: Tue Jun  9 07:12:45 2009
New Revision: 38341
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=38341

Log:
Improving EJB sample



Modified:
   branches/wsas/java/3.1-alpha1/wsas/modules/samples/EJBService/README
   branches/wsas/java/3.1-alpha1/wsas/modules/samples/EJBService/build.xml

Modified: branches/wsas/java/3.1-alpha1/wsas/modules/samples/EJBService/README
URL: 
http://wso2.org/svn/browse/wso2/branches/wsas/java/3.1-alpha1/wsas/modules/samples/EJBService/README?rev=38341&r1=38340&r2=38341&view=diff
==============================================================================
--- branches/wsas/java/3.1-alpha1/wsas/modules/samples/EJBService/README        
(original)
+++ branches/wsas/java/3.1-alpha1/wsas/modules/samples/EJBService/README        
Tue Jun  9 07:12:45 2009
@@ -3,18 +3,39 @@
 
 Sample : EJB Services
 =====================
+0. Start the JBoss application server
+   $JBOSS_HOME/bin/run.sh
 
-1. Deploy resource/sample-ejb-1.0.jar to Jboss Application Server (Tested with 
version 4.0.4)
-2. Copy JBOSS_HOME/client/jbossall-client.jar to WSAS_HOME/lib/extensions
-3. Restart WSAS
-4. In WSAS console goto Services -> EJB Provider Configuration & deploy EJB 
Service
-Please download the Documentation Distribution and refer to the EJB Services 
sample document in the distribution for detailed instructions on how to run the 
EJB Services sample.
-You can find EJB client interfaces inside resource/ejb-provider-adaptor.jar.
+1. Deploy WSAS_HOME/samples/EJBService/resource/sample-ejb-1.0.jar to
+   JBoss Application Server (Tested with version 4.0.4)
+   This is done by copying the 
WSAS_HOME/samples/EJBService/resource/sample-ejb-1.0.jar
+   to $JBOSS_HOME/server/default/deploy
+
+2. Make a copy of the JBOSS_HOME/client/jbossall-client.jar and remove
+   the org.apache pakage from this jar file. This is because the org.apache
+   packages will conflict with org.apache.* packages included in the other
+   OSGi bundles.
+
+3. Copy the jar file modified in the above step to WSAS_HOME/lib/extensions
+
+4. Restart WSAS
+
+5. In the WSAS Management console, go to Manage > Service > Add > EJB Service
+     i. Add new application server of type "JBoss AS". Use the default values.
+        If you have alreade added this server, select "Use Existing"
+    ii. Click next
+   iii. In the next step upload the 
WSAS_HOME/samples/EJBService/resources/ejb-provider-adaptor.jar
+    iv. Clic next
+     v. Provide the EJB Details
+        Home Interface: 
org.apache.axis2.samples.ejb.session.interfaces.TimeServiceRemoteHome
+        Remote Interface: 
org.apache.axis2.samples.ejb.session.interfaces.TimeServiceRemote
+        Bean JNDI Name: 
org.apache.axis2.samples.ejb.session.interfaces.TimeServiceLocalHome
+    vi. Click "Deploy Service"
 
-5. Compile client code
-ant compile-all
+6. Compile client code
+   ant compile-all
 
-6.Run client
-ant run-client
+7.Run client
+  ant run-client
 
 

Modified: 
branches/wsas/java/3.1-alpha1/wsas/modules/samples/EJBService/build.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/wsas/java/3.1-alpha1/wsas/modules/samples/EJBService/build.xml?rev=38341&r1=38340&r2=38341&view=diff
==============================================================================
--- branches/wsas/java/3.1-alpha1/wsas/modules/samples/EJBService/build.xml     
(original)
+++ branches/wsas/java/3.1-alpha1/wsas/modules/samples/EJBService/build.xml     
Tue Jun  9 07:12:45 2009
@@ -16,48 +16,51 @@
   -->
 
 <project name="ejbservice" default="compile-all">
-       <property environment="env"/>
-       <property name="wsashome" value="../.."/>
-       <property name="src" value="src"/>
-       <property name="classes" value="classes"/>
+    <property environment="env"/>
+    <property name="wsashome" value="../.."/>
+    <property name="src" value="src"/>
+    <property name="classes" value="classes"/>
     <property name="carbon.home" value="${wsashome}"/>
     <property name="wsas.lib" value="${wsashome}/lib"/>
     <property name="setup" value="ROOT"/>
-    
+
     <ant antfile="${wsashome}/bin/build.xml"/>
-       
-        <target name="init">
-          <mkdir dir="${classes}"/>
-        </target>      
-       <path id="all.jar.classpath">
-               <fileset dir="${wsashome}/repository/lib">
-                       <include name="**/*.jar"/>
-               </fileset>
-       </path>
-       
-       <path id="client.class.path">
-               <fileset dir="${wsashome}/repository/lib">
-                       <include name="**/*.jar" />
-               </fileset>
-               <pathelement location="${classes}" />
-       </path>
-       
-       <target name="clean" description="clean generated artifacts">
-               <delete dir="${classes}"/>
-       </target>
-
-       
-       <target name="compile-all" depends="init">
-               <javac debug="on" destdir="${classes}">
-                       <src path="${src}"/>
-                       <classpath refid="all.jar.classpath"/>
-               </javac>
-       </target>
-       
-       <target name="run-client" depends="compile-all" description="run ejb 
service client">
-          <java classname="org.wso2.wsas.sample.ejbservice.EJBServiceClient">
-                       <classpath refid="client.class.path" />
-               </java>
-       </target>
-       
+
+    <target name="init">
+        <mkdir dir="${classes}"/>
+    </target>
+    <path id="all.jar.classpath">
+        <fileset dir="${wsashome}/repository/lib">
+            <include name="**/*.jar"/>
+        </fileset>
+    </path>
+
+    <path id="client.class.path">
+        <fileset dir="${wsashome}/repository/lib">
+            <include name="**/*.jar"/>
+        </fileset>
+        <fileset dir="${wsashome}/lib/endorsed">
+            <include name="**/*.jar"/>
+        </fileset>
+        <pathelement location="${classes}"/>
+    </path>
+
+    <target name="clean" description="clean generated artifacts">
+        <delete dir="${classes}"/>
+    </target>
+
+
+    <target name="compile-all" depends="init">
+        <javac debug="on" destdir="${classes}">
+            <src path="${src}"/>
+            <classpath refid="all.jar.classpath"/>
+        </javac>
+    </target>
+
+    <target name="run-client" depends="compile-all" description="run ejb 
service client">
+        <java classname="org.wso2.wsas.sample.ejbservice.EJBServiceClient">
+            <classpath refid="client.class.path"/>
+        </java>
+    </target>
+
 </project>

_______________________________________________
Wsas-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev

Reply via email to