[jboss-cvs] JBossAS SVN: r103706 - in projects/snowdrop/branches/1_1: documentation/user-guide/src/main/docbook and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Apr 8 11:48:39 EDT 2010


Author: marius.bogoevici
Date: 2010-04-08 11:48:38 -0400 (Thu, 08 Apr 2010)
New Revision: 103706

Added:
   projects/snowdrop/branches/1_1/deployer-assembly/src/assembly/deployer-no-deps.xml
Modified:
   projects/snowdrop/branches/1_1/deployer-assembly/src/assembly/deployer.xml
   projects/snowdrop/branches/1_1/documentation/user-guide/src/main/docbook/user-guide.xml
Log:
docs

Copied: projects/snowdrop/branches/1_1/deployer-assembly/src/assembly/deployer-no-deps.xml (from rev 103348, projects/snowdrop/branches/1_0/deployer-assembly/src/assembly/deployer-no-deps.xml)
===================================================================
--- projects/snowdrop/branches/1_1/deployer-assembly/src/assembly/deployer-no-deps.xml	                        (rev 0)
+++ projects/snowdrop/branches/1_1/deployer-assembly/src/assembly/deployer-no-deps.xml	2010-04-08 15:48:38 UTC (rev 103706)
@@ -0,0 +1,28 @@
+<assembly>
+    <id>deployer-no-deps</id>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <baseDirectory>spring.deployer</baseDirectory>
+    <fileSets>
+        <fileSet>
+            <directory>${basedir}/src/main/resources</directory>
+            <outputDirectory>META-INF</outputDirectory>
+            <includes>
+                <include>spring-deployers-jboss-beans.xml</include>
+            </includes>
+        </fileSet>
+    </fileSets>
+    <dependencySets>
+        <dependencySet>
+            <outputDirectory>/</outputDirectory>
+            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
+            <useTransitiveDependencies>false</useTransitiveDependencies>
+            <excludes>
+                <exclude>*:aopalliance:*</exclude>
+                <exclude>*:commons-logging:*</exclude>
+                <exclude>*:spring-*:*</exclude>
+            </excludes>
+        </dependencySet>
+    </dependencySets>
+</assembly>
\ No newline at end of file

Modified: projects/snowdrop/branches/1_1/deployer-assembly/src/assembly/deployer.xml
===================================================================
--- projects/snowdrop/branches/1_1/deployer-assembly/src/assembly/deployer.xml	2010-04-08 15:48:15 UTC (rev 103705)
+++ projects/snowdrop/branches/1_1/deployer-assembly/src/assembly/deployer.xml	2010-04-08 15:48:38 UTC (rev 103706)
@@ -3,6 +3,7 @@
   <formats>
     <format>zip</format>
   </formats>
+  <baseDirectory>spring.deployer</baseDirectory>
   <fileSets>
     <fileSet>
       <directory>${basedir}/src/main/resources</directory>
@@ -18,7 +19,6 @@
       <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
       <useTransitiveDependencies>true</useTransitiveDependencies>
       <excludes>
-        <exclude>*:aopalliance:*</exclude>
         <exclude>*:commons-logging:*</exclude>
       </excludes>
     </dependencySet>
@@ -27,7 +27,7 @@
       <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
       <useTransitiveDependencies>false</useTransitiveDependencies>
       <includes>
-          <include>org.springframework:spring</include>
+          <include>*:org.springframework:*</include>
       </includes>
     </dependencySet>
   </dependencySets>

Modified: projects/snowdrop/branches/1_1/documentation/user-guide/src/main/docbook/user-guide.xml
===================================================================
--- projects/snowdrop/branches/1_1/documentation/user-guide/src/main/docbook/user-guide.xml	2010-04-08 15:48:15 UTC (rev 103705)
+++ projects/snowdrop/branches/1_1/documentation/user-guide/src/main/docbook/user-guide.xml	2010-04-08 15:48:38 UTC (rev 103706)
@@ -11,7 +11,6 @@
 
     <xi:include href="author-group.xml"
                 xmlns:xi="http://www.w3.org/2001/XInclude" />
-
   </bookinfo>
 
   <preface>
@@ -45,7 +44,7 @@
       </listitem>
 
       <listitem>
-        <para>Spring 2.5.x</para>
+        <para>Spring 2.5.x and 3.0.x</para>
       </listitem>
     </itemizedlist>
   </preface>
@@ -101,7 +100,7 @@
     package.</para>
 
     <section>
-      <title>The VFS-supporting application contexts</title>
+      <title>The VFS-supporting application contexts (Spring 2.5 only)</title>
 
       <para>For using this functionality, the snowdrop-vfs.jar file needs to
       be added to the application.</para>
@@ -153,6 +152,7 @@
       sample below:</para>
 
       <?dbfo-need height="5in" ?>
+
       <informalexample>
         <programlisting language="XML">&lt;context-param&gt;
   &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
@@ -191,7 +191,9 @@
 
       <para>Both configurations can be seen at work in the web-scanning
       sample.</para>
-     <?dbfo-need height="5in" ?>
+
+      <?dbfo-need height="5in" ?>
+
       <note>
         <para>In general, it is a good idea to pay attention to this error. If
         encountered while the application is starting, you definitely need to
@@ -204,6 +206,10 @@
  .doFindPathMatchingJarResources(PathMatchingResourcePatternResolver.java:448)</programlisting>
         (the listing has been wrapped for formatting purposes).</para>
       </note>
+
+      <note>
+        <para>This feature is necessary</para>
+      </note>
     </section>
 
     <section>
@@ -263,7 +269,7 @@
         .sar's, .war's, .ear's, .har's, and .rar's work. Using the JBoss
         Spring deployer you can create Spring jars:</para>
 
-        <screen>my-app.spring/
+        <screen>my-app.jar/
    org/
       acme/
           MyBean.class
@@ -271,7 +277,7 @@
    META-INF/
            jboss-spring.xml</screen>
 
-        <para>So, my-app.spring is a jar that contains classes, like any other
+        <para>So, my-app.jar is a jar that contains classes, like any other
         JAR and a jboss-spring.xml file in the META-INF/ of the jar. This
         jboss-spring.xml file is like any other Spring xml file. By default,
         the JBoss Spring Deployer will register this bean factory defined in
@@ -307,9 +313,11 @@
         description element of the Spring XML.</para>
 
         <?dbfo-need height="5in" ?>
+
         <programlisting language="XML">&lt;beans&gt;
     &lt;description&gt;BeanFactory=(MyApp)&lt;/description&gt;
-...
+    ...
+    &lt;bean id="springBean" class="example.SpringBean"/&gt;
 &lt;/beans&gt;</programlisting>
 
         <para>MyApp will be used as the JNDI name in this example.</para>
@@ -328,6 +336,25 @@
   ...
   &lt;/beans&gt;</programlisting>
       </section>
+
+      <section>
+        <title>Injection into EJBs</title>
+
+        <para>Once an ApplicationContext has been successfully bootstrapped,
+        the Spring beans defined in it can be used for injection into EJBs. To
+        that end, the EJBs must be intercepted with the
+        SpringLifecycleInterceptor, as in the following example:</para>
+
+        <programlisting>@Stateless
+ at Interceptors(SpringLifecycleInterceptor.class)
+public class InjectedEjbImpl implements InjectedEjb
+{
+   @Spring(bean = "springBeanName", jndiName = "SpringDao")
+   private SpringBean springBean;
+
+   /* rest of the class definition ommitted */
+}</programlisting>
+      </section>
     </section>
   </chapter>
 </book>




More information about the jboss-cvs-commits mailing list