Author: chirino
Date: Sun Oct 1 12:14:23 2006
New Revision: 451786
URL: http://svn.apache.org/viewvc?view=rev&rev=451786
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/main/users-space.html
Modified: incubator/servicemix/site/main/users-space.html
URL:
http://svn.apache.org/viewvc/incubator/servicemix/site/main/users-space.html?view=diff&rev=451786&r1=451785&r2=451786
==============================================================================
--- incubator/servicemix/site/main/users-space.html (original)
+++ incubator/servicemix/site/main/users-space.html Sun Oct 1 12:14:23 2006
@@ -181,37 +181,38 @@
<P>There is an easy way to do the following: copy the file
[Servicemix_binary_distribution_home]/examples/wsdl-first/wsdl-first-sa-3.0-incubating-SNAPSHOT.zip
into the /install folder. Watch the Smix console window making sure things go
well. You can now open a browser and go <SPAN class="nobr"><A
href="http://localhost:8192/PersonService/main.wsdl" title="Visit page outside
Confluence" rel="nofollow">here<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> to see the WSDL
for the SOAP service.</P>
<P> That was the easy way....but you want to learn about developing so
let's do it the 'hard' way. First go to the
[Servicemix_binary_distribution_home]/examples/wsdl-first folder and type mvn
install. This example project is using a <SPAN class="nobr"><A
href="http://servicemix.org/site/maven-jbi-plugin.html" title="Visit page
outside Confluence" rel="nofollow">Maven 2 plugin<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> for creating
specific JBI components. If you look in the module pom.xml files you will see a
special packaging type. After the mvn install completes there will be file
called wsdl-first-sa-3.0-incubating-SNAPSHOT-installer in the wsdl-first-sa
module's target folder. This is SA for the wsdl-first example project. Now
we want to deploy this to our container. The Maven JBI plugin will take care of
this for us!!
! Note we need to make a small change to the wsdl-first-sa module's
pom.xml. The plugin will normally try to install all the shared libraries
needed by the SA when running the Maven goal jbi:projectDeploy. This is
sometimes useful. But often it causes problems because another SA in Smix is
using the shared lib already. In this case the Maven goal will try to remove
and redeploy the shared lib from Smix. This causes a problem and will make the
SA deployment fail. So to tell the plugin to not do this make the following
change in the pom.xml:</P>
-
-<P><build><BR>
- <plugins><BR>
- <plugin><BR>
-
<groupId>org.apache.servicemix.tooling</groupId><BR>
-
<artifactId>jbi-maven-plugin</artifactId><BR>
-
<extensions>true</extensions><BR>
-
</plugin><BR>
- </plugins><BR>
-</build></P>
-
-<P>into....</P>
-
-<P><build><BR>
- <plugins><BR>
- <plugin><BR>
-
<groupId>org.apache.servicemix.tooling</groupId><BR>
-
<artifactId>jbi-maven-plugin</artifactId><BR>
-
<extensions>true</extensions><BR>
-
<configuration><BR>
-
<deployDependencies>false</deployDependencies><BR>
-
</configuration><BR>
- </plugin><BR>
- </plugins><BR>
-</build></P>
-
-<P> That little config change will prevent some headaches later.</P>
-
+<DIV class="preformatted"><DIV class="preformattedContent">
+<PRE><build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.servicemix.tooling</groupId>
+ <artifactId>jbi-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+</build>
+
+into....
+
+<build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.servicemix.tooling</groupId>
+ <artifactId>jbi-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <deployDependencies>false</deployDependencies>
+ </configuration>
+ </plugin>
+ </plugins>
+</build>
+
+That little config change will prevent some headaches later.
+</PRE>
+</DIV></DIV>
<P>You are ready to rock. Change directory to the wsdl-first-sa module. Type
'mvn jbi:projectDeploy'. You can watch the Smix console for
information on the deployment.</P>
-<P> Betting that all went well you should be ready to test out the web
service you deployed into Smix. Lucky for you a nice little web app has been
packaged with the application. In your web browser open the file
[Servicemix_binary_distribution_home]/examples/wsdl-first/client.html. This
static .html page contains a javascript which will try to contact the web
service on your local machine. To make it work simply click the
'send' button. If your browser issues any warning make sure you allow
the javascript to do what it needs to do. In Firefox I have to
'allow' what it calls an unsafe operation. The results of clikcing
the 'send' button will be a SOAP response posted into the right hand
text area.</P>
+<P>Betting that all went well you should be ready to test out the web service
you deployed into Smix. Lucky for you a nice little web app has been packaged
with the application. In your web browser open the file
[Servicemix_binary_distribution_home]/examples/wsdl-first/client.html. This
static .html page contains a javascript which will try to contact the web
service on your local machine. To make it work simply click the
'send' button. If your browser issues any warning make sure you allow
the javascript to do what it needs to do. In Firefox I have to
'allow' what it calls an unsafe operation. The results of clikcing
the 'send' button will be a SOAP response posted into the right hand
text area.</P>
<H4><A name="Usersspace-Temporaryexcursionintomonitoring"></A><B>Temporary
excursion into monitoring</B></H4>
@@ -246,8 +247,8 @@
</DIV>
<DIV id="site-footer">
Added by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A>,
- last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=robottaway">Robert
Ottaway</A> on Oct 01, 2006
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=13814&originalId=13891">view
change</A>)
+ last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=robottaway">Robert
Ottaway</A> on Oct 02, 2006
+ (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=13814&originalId=13892">view
change</A>)
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=13814">edit
page</A>)
</DIV>