Author: chirino
Date: Wed Sep 27 09:15:51 2006
New Revision: 450494
URL: http://svn.apache.org/viewvc?view=rev&rev=450494
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/main/hello-world-se.html
Modified: incubator/servicemix/site/main/hello-world-se.html
URL:
http://svn.apache.org/viewvc/incubator/servicemix/site/main/hello-world-se.html?view=diff&rev=450494&r1=450493&r2=450494
==============================================================================
--- incubator/servicemix/site/main/hello-world-se.html (original)
+++ incubator/servicemix/site/main/hello-world-se.html Wed Sep 27 09:15:51 2006
@@ -189,7 +189,7 @@
...<BR>
[INFO] <FONT color="#ff00ff">Defaulting package to group ID:
org.apache.servicemix.samples.helloWorldSE</FONT><BR>
...<BR>
-[INFO] *********<B>*</B>*<B>*</B>*<B>*</B>* End of
debug info from resources from generated POM
*<B>*</B>*******************<BR>
+[INFO]
***<B>*</B>*<B>*</B>*<B>*</B>*<B>*</B>*<B>*
End of debug info from resources from generated POM
***</B>*******************<BR>
[INFO] <FONT color="#009900">Archetype created in dir:
C:\hello-world-SE-SU-SA\hello-world-SE</FONT><BR>
[INFO]
------------------------------------------------------------------------<BR>
[INFO] BUILD SUCCESSFUL<BR>
@@ -272,7 +272,6 @@
<P><EM>Note:</EM> The content of <version> describes <EM>not</EM> the
version of ServiceMix but of the project we create, thus we may choose any
desired version (e.g. <EM>3.0-final</EM>). We just have to use consitently the
same version when we reference this project.</P>
-
<H2><A name="HelloWorld-SE-Mavencommands%26nbsp%3B"></A>Maven
commands </H2>
<P>By now, it is already possible to call Maven with the relevant goals.</P>
@@ -345,22 +344,34 @@
<PRE>mvn install
</PRE>
</DIV></DIV>
-<P>from the <EM>hello-world-SE-SU-SA</EM> directory, the SA is generated in
the <EM>hello-world-SE-SU-SA/</EM><EM>hello-world-SA/target/</EM> directory. Of
course, it does not yet do anything, but we can already deploy the SA and
needed components to a running ServiceMix container by switching to the
<EM>hello-world-SE-SU-SA/hello-world-SA/</EM> directory and calling</P>
+<P>from the <EM>hello-world-SE-SU-SA</EM> directory, the SA is generated in
the <EM>hello-world-SE-SU-SA/</EM><EM>hello-world-SA/target/</EM> directory. Of
course, our code does not yet do anything, but we can already deploy the SA and
needed components to a running ServiceMix container by switching to the
<EM>hello-world-SE-SU-SA/hello-world-SA/</EM> directory and calling</P>
<DIV class="preformatted"><DIV class="preformattedContent">
<PRE>mvn jbi:projectDeploy
</PRE>
</DIV></DIV>
-<P>ServiceMix will output this confirmation</P>
+<P>Essentially, the plugin will walk the dependencies starting in the current
project, then deploy each of the dependencies in reverse order. So it copies
contents of the <EM>hello-world-SA-1.0-SNAPSHOT.zip</EM> and orther sources to
ServiceMix subdirectories. For further information see <A
href="maven-jbi-plugin.html" title="Maven JBI plugin">Maven JBI plugin</A>.
When the deployment is complete, ServiceMix will output this confirmation:</P>
<DIV class="preformatted"><DIV class="preformattedContent">
-<PRE>INFO - ServiceAssemblyLifeCycle
- Starting service assembly: hello-world-SA
+<PRE>INFO - ServiceAssemblyLifeCycle - Starting service assembly:
hello-world-SA
</PRE>
</DIV></DIV>
+<P><EM>Note:</EM> The command <EM>mvn install</EM> executed in the
<EM>hello-world-SE</EM> directory creates a JAR and also a component installer.
For installation, <EM>mvn jbi:installComponent</EM> has to be executed.</P>
+<TABLE cellpadding="5" width="85%" cellspacing="8px" class="noteMacro"
border="0" align="center"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD
valign="top"><IMG
src="http://goopen.org/confluence/images/icons/emoticons/warning.gif"
width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B
class="strong">Deploying Dependencies</B><BR>
+<P>When working with the <EM>jbi:projectDeploy</EM> one may want to disable
dependency deployment. When deploying to a server which has other components
sharing these dependencies, they can cause problems while trying to undeploy
and redeploy them. To stop the jbi-maven-plugin undeploying and redeploying
dependencies, the configuration files (usually in the SA's or the
component's <EM>pom.xml</EM>) have to be extended by a new element called
deployDependencies with a value of false
(<EM><deployDependencies>false</deployDependencies></EM>). This has
to be placed in the configuration section for the jbi-maven-plugin. The final
structure looks like this:</P>
+
+<P><build><BR>
+ <plugins><BR>
+ <plugin><BR>
+ <artifactId>jbi-maven-plugin</artifactId><BR>
+ <configuration><BR>
+ <deployDependencies>false</deployDependencies><BR>
+ </configuration><BR>
+ </plugin><BR>
+ </plugins><BR>
+</build></P></TD></TR></TABLE>
<H2><A name="HelloWorld-SE-Addingfunctionality"></A>Adding functionality</H2>
-<P> </P>
-
-<P>Configuring the Service Assembly </P>
+<P>Configuring the Service Assembly</P>
<P>manually editing <SPAN class="nobr"><A
href="working-with-service-units.html" title="Visit page outside Confluence"
rel="nofollow">http://goopen.org/confluence/display/SM/Working+with+Service+Units<SUP><IMG
class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></P>
@@ -368,10 +379,7 @@
<P>use the SU archetype like in <SPAN class="nobr"><A
href="http://www.servicemix.org/site/creating-a-protocol-bridge.html"
title="Visit page outside Confluence"
rel="nofollow">http://www.servicemix.org/site/creating-a-protocol-bridge.html<SUP><IMG
class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></P>
-<P>use the SA archetype like in <SPAN class="nobr"><A
href="http://www.servicemix.org/site/creating-a-protocol-bridge.html"
title="Visit page outside Confluence"
rel="nofollow">http://www.servicemix.org/site/creating-a-protocol-bridge.html<SUP><IMG
class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN><BR>
- </P>
-
-<P> </P>
+<P>use the SA archetype like in <SPAN class="nobr"><A
href="http://www.servicemix.org/site/creating-a-protocol-bridge.html"
title="Visit page outside Confluence"
rel="nofollow">http://www.servicemix.org/site/creating-a-protocol-bridge.html<SUP><IMG
class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></P>
<TABLE cellpadding="5" width="85%" cellspacing="8px" class="noteMacro"
border="0" align="center"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD
valign="top"><IMG
src="http://goopen.org/confluence/images/icons/emoticons/warning.gif"
width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B
class="strong">TODO</B><BR>
<P>it and we now need to fill the holes.</P>
@@ -395,7 +403,7 @@
<DIV id="site-footer">
Added by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=georg_dembowski">Georg
Dembowski</A>,
last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=georg_dembowski">Georg
Dembowski</A> on Sep 27, 2006
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=13823&originalId=13858">view
change</A>)
+ (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=13823&originalId=13859">view
change</A>)
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=13823">edit
page</A>)
</DIV>