Author: chirino
Date: Fri Sep 29 05:03:06 2006
New Revision: 451254
URL: http://svn.apache.org/viewvc?view=rev&rev=451254
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/main/hello-world-se.html
incubator/servicemix/site/main/notes-on-creating-jbi-component-using-maven2.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=451254&r1=451253&r2=451254
==============================================================================
--- incubator/servicemix/site/main/hello-world-se.html (original)
+++ incubator/servicemix/site/main/hello-world-se.html Fri Sep 29 05:03:06 2006
@@ -114,6 +114,8 @@
-->
<DIV class="wiki-content"><H1><A
name="HelloWorld-SE-Tutorial%3ACreationofa%22HelloWorldSE%22"></A>Tutorial:
Creation of a "Hello World - SE"</H1>
+<P><B>Note:</B> The content of this document is overlapping with <A
href="creating-a-standard-jbi-component.html" title="Creating a Standard JBI
Component">Creating a Standard JBI Component</A> and <A
href="notes-on-creating-jbi-component-using-maven2.html" title="Notes on
Creating JBI Component using maven2">Notes on Creating JBI Component using
maven2</A>. Any changes you might want to do for this document might be
relevant for them as well. Questions unanswered by this document may be
answered by the other documents.</P>
+
<P>This tutorial describes how to create a <EM>very simple</EM> "Hello
world" JBI service engine (SE) component, pack it into a Service Unit (SU)
which will be packed to a Service Assambly (SA), and finally how to run the SE
inside ServiceMix. The SE will answer received messages with "Hello, I
received xyz bytes!", so we literally see that it works. As it has the
same structure as real, useful SE, the given hints help to use the presented
code as a blueprint to create own SE-SA-SUs. Still, the example is as
minimalistic as possible, so readers shall not get lost in too many details but
get an idea of the big picture.</P>
<P>This tutorial shows the desired/best practices or "clean" way to
create a SE-SA-SU using ServiceMix Maven archetypes and the Maven plugin (see
<A href="maven-jbi-plugin.html" title="Maven JBI plugin">Maven JBI plugin</A>),
so how the workflow <EM>shall</EM> be - of course, other possibilities exist
and may be better suited for certain situations. Furthermore, it will explain
the reasons for critical choices and how required information can be retrieved.
Where appropriate, additional reading is suggested.</P>
@@ -134,7 +136,7 @@
<P>maybe moving the content of overlapping existing docus to this new tut and
- where appropriate - delete the old ones (only leaving a redirect).<BR>
<SPAN class="nobr"><A
href="http://www.servicemix.org/site/notes-on-creating-jbi-component-using-maven2.html"
title="Visit page outside Confluence"
rel="nofollow">http://www.servicemix.org/site/notes-on-creating-jbi-component-using-maven2.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>
<SPAN class="nobr"><A
href="http://www.servicemix.org/site/creating-a-standard-jbi-component.html"
title="Visit page outside Confluence"
rel="nofollow">http://www.servicemix.org/site/creating-a-standard-jbi-component.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>
-are already fully incorporated, so delete content and point from there to
here</P>
+are already fully incorporated, so delete content and point from there to here
(and delete note at the very top)</P>
<P> This shall already include everything stated at<BR>
<SPAN class="nobr"><A
href="http://www.servicemix.org/site/maven-jbi-plugin.html#MavenJBIplugin-GettingStarted"
title="Visit page outside Confluence"
rel="nofollow">http://www.servicemix.org/site/maven-jbi-plugin.html#MavenJBIplugin-GettingStarted<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>
@@ -199,6 +201,28 @@
[INFO]
------------------------------------------------------------------------</P>
</DIV></DIV>
<P>Maven creates a new folder having the same name as the artifact ID provided
(printed in <FONT color="#009900">green</FONT> in the command and output).
Inside this folder, a file called <EM>pom.xml</EM> is created. This contains
the Project Object Model providing Maven with all needed information for
building (see <SPAN class="nobr"><A
href="http://maven.apache.org/guides/introduction/introduction-to-the-pom.html"
title="Visit page outside Confluence" rel="nofollow">Introduction to the
POM<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> at the Maven
website). Moreover, Java source files and tests were created.</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">In case of a BUILD ERROR: Maven plugin version
requirement</B><BR>
+<P>The maven-archetype-plugin <B>1.0-alpha4</B> or above is required for
this tutorial. When an older version is installed, a BUILD ERROR will occur.
The version can be checked by having a look at the name of the directories
contained in
<EM>~/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin</EM>
(~ is you user directory, on Windows <EM>C:\Documents and
Settings\<USERNAME</EM>>). In case only an older version is present, we
create a minimal <EM>pom.xml</EM> in the folder where we're calling the
<EM>mvn archetype:create</EM> goal in (so the current folder) and fill the
created file with the following content: </P>
+
+<P><?xml version="1.0" encoding="UTF-8"?><BR>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 <SPAN
class="nobr"><A href="http://maven.apache.org/maven-v4_0_0.xsd" title="Visit
page outside Confluence"
rel="nofollow">http://maven.apache.org/maven-v4_0_0.xsd<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>
+ <modelVersion>4.0.0</modelVersion><BR>
+ <groupId>mygroup</groupId><BR>
+ <artifactId>myartifact</artifactId><BR>
+ <version>myversion</version><BR>
+ <packaging>pom</packaging><BR>
+ <build><BR>
+ <pluginManagement><BR>
+
<plugins><BR>
+
<plugin><BR>
+
<groupId>org.apache.maven.plugins</groupId><BR>
+
<artifactId>maven-archetype-plugin</artifactId><BR>
+
<version>1.0-alpha-4</version><BR>
+
</plugin><BR>
+
</plugins><BR>
+ </pluginManagement><BR>
+ </build><BR>
+</project></P></TD></TR></TABLE>
<H3><A name="HelloWorld-SE-CreatingthestuboftheSUandSA%26nbsp%3B"></A>Creating
the stub of the SU and SA </H3>
@@ -411,9 +435,35 @@
</DIV>
<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 28, 2006
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=13823&originalId=13866">view
change</A>)
-
+ last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=georg_dembowski">Georg
Dembowski</A> on Sep 29, 2006
+ (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=13823&originalId=13878">view
change</A>)
+ <SPAN id="show" class="inline-control-link"><A href=""
onclick="showComment(); return false;">show comment</A></SPAN>
+ <SPAN id="hide" class="inline-control-link" style="display:none;"><A
href="" onclick="hideComment(); return false;">hide comment</A></SPAN>
+ <DIV id="versionComment" class="noteMacro" style="display:none;
padding: 5px;">
+ <B>Comment:</B>
+ typo<BR>
+ <SPAN class="smalltext"><A
href="http://goopen.org/confluence/pages/viewpreviouspageversions.action?pageId=13823">View
page history</A></SPAN>
+ </DIV>
+
+ <SCRIPT>
+ var show = document.getElementById('show');
+ var hide = document.getElementById('hide');
+ var versionComment = document.getElementById('versionComment');
+
+ function showComment(){
+ show.style.display = 'none';
+ hide.style.display = 'inline';
+ versionComment.style.display = 'block';
+ }
+
+ function hideComment(){
+ show.style.display = 'inline';
+ hide.style.display = 'none';
+ versionComment.style.display = 'none';
+ }
+
+ </SCRIPT>
+
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=13823">edit
page</A>)
</DIV>
Modified:
incubator/servicemix/site/main/notes-on-creating-jbi-component-using-maven2.html
URL:
http://svn.apache.org/viewvc/incubator/servicemix/site/main/notes-on-creating-jbi-component-using-maven2.html?view=diff&rev=451254&r1=451253&r2=451254
==============================================================================
---
incubator/servicemix/site/main/notes-on-creating-jbi-component-using-maven2.html
(original)
+++
incubator/servicemix/site/main/notes-on-creating-jbi-component-using-maven2.html
Fri Sep 29 05:03:06 2006
@@ -126,31 +126,6 @@
<P><FONT color="#cc3300">Check if you have maven2 installed, if not then
please install it.</FONT> <SPAN class="nobr"><A
href="http://maven.apache.org/download.html#Installation" title="Visit page
outside Confluence"
rel="nofollow">http://maven.apache.org/download.html#Installation<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><FONT color="#cc3300">Make sure that you're using
maven-archetype-plugin 1.0-alpha4 or above you can look in
(~/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin). To install
it you can place a minimal pom.xml in the folder where you're calling the
mvn archetype:create goal in:</FONT></P>
-
-<P><?xml version="1.0" encoding="UTF-8"?><BR>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 <SPAN
class="nobr"><A href="http://maven.apache.org/maven-v4_0_0.xsd" title="Visit
page outside Confluence"
rel="nofollow">http://maven.apache.org/maven-v4_0_0.xsd<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> <modelVersion>4.0.0</modelVersion><BR>
- <groupId>mygroup</groupId><BR>
- <artifactId>myartifact</artifactId><BR>
- <version>myversion</version><BR>
- <packaging>pom</packaging></P>
-
-<P> <build><BR>
- <pluginManagement><BR>
-
<plugins><BR>
-
<plugin><BR>
-
<groupId>org.apache.maven.plugins</groupId><BR>
-
<artifactId>maven-archetype-plugin</artifactId><BR>
-
<version>1.0-alpha-4</version><BR>
-
</plugin><BR>
-
</plugins><BR>
- </pluginManagement><BR>
- </build></P>
-
-<P></project></P>
-
<P><B>1)</B> To create a JBI component as you might have guessed by now
- run the mvn command: (needless to say you should create a new
directory where you want all your stuff to be generated and you have to remove
the trailing backshlashes and make it one line)</P>
<DIV class="code"><DIV class="codeContent">
<PRE class="code-java">mvn archetype:create \
@@ -170,7 +145,28 @@
-DartifactId=servicemix-xslt</PRE>
</DIV></DIV>
<P>The version information "3.0-incubating" may have to be changed;
just look at any of ServiceMix' <EM>pom.xml</EM> for the version you are
using.</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">In case of a BUILD ERROR: Maven plugin version
requirement</B><BR>
+<P>The maven-archetype-plugin <B>1.0-alpha4</B> or above is required for
this tutorial. When an older version is installed, a BUILD ERROR will occur.
The version can be checked by having a look at the name of the directories
contained in
<EM>~/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin</EM>
(~ is you user directory, on Windows <EM>C:\Documents and
Settings\<USERNAME</EM>>). In case only an older version is present, we
create a minimal <EM>pom.xml</EM> in the folder where we're calling the
<EM>mvn archetype:create</EM> goal in (so the current folder) and fill the
created file with the following content: </P>
+<P><?xml version="1.0" encoding="UTF-8"?><BR>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 <SPAN
class="nobr"><A href="http://maven.apache.org/maven-v4_0_0.xsd" title="Visit
page outside Confluence"
rel="nofollow">http://maven.apache.org/maven-v4_0_0.xsd<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>
+ <modelVersion>4.0.0</modelVersion><BR>
+ <groupId>mygroup</groupId><BR>
+ <artifactId>myartifact</artifactId><BR>
+ <version>myversion</version><BR>
+ <packaging>pom</packaging><BR>
+ <build><BR>
+ <pluginManagement><BR>
+
<plugins><BR>
+
<plugin><BR>
+
<groupId>org.apache.maven.plugins</groupId><BR>
+
<artifactId>maven-archetype-plugin</artifactId><BR>
+
<version>1.0-alpha-4</version><BR>
+
</plugin><BR>
+
</plugins><BR>
+ </pluginManagement><BR>
+ </build><BR>
+</project></P></TD></TR></TABLE>
<P><B> 2)</B> After you have successfully run the above command this is
what you would end up with </P>
<DIV class="code"><DIV class="codeContent">
<PRE class="code-java">servicemix-xslt\
@@ -218,12 +214,12 @@
<DIV id="site-footer">
Added by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=soumadeep">Soumadeep
Sen</A>,
last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=georg_dembowski">Georg
Dembowski</A> on Sep 29, 2006
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=9560&originalId=13875">view
change</A>)
+ (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=9560&originalId=13879">view
change</A>)
<SPAN id="show" class="inline-control-link"><A href=""
onclick="showComment(); return false;">show comment</A></SPAN>
<SPAN id="hide" class="inline-control-link" style="display:none;"><A
href="" onclick="hideComment(); return false;">hide comment</A></SPAN>
<DIV id="versionComment" class="noteMacro" style="display:none;
padding: 5px;">
<B>Comment:</B>
- cross references<BR>
+ formatting<BR>
<SPAN class="smalltext"><A
href="http://goopen.org/confluence/pages/viewpreviouspageversions.action?pageId=9560">View
page history</A></SPAN>
</DIV>