Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
<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.

Wiki Markup
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.
unmigratedwiki-markup
!wsdl-
first-install.jpg|align=center!
&nbsp;
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 clikcingclicking the 'send' button will be a SOAP response posted into the right hand text area.

...

  • Select the tab called 'MBeans'.
  • This gives a tree like structure that you can navigate through.
  • Open the node labeled 'org.apache.servicemix'. Open the 'servicemix' node.
  • Open the node labeled 'Endpoint'. You will see all the installed endpoints in your JBI environment here. There should be only one.
  • You should see a node labeled 'ServiceAssembly', open this node. You now should see one entry for wsdl-first. Click on this entry. The window to your right should now pop up some information about the SA.
  • In the right window click on the tab labeled 'Operations'. You will see four operations: start, stop, shutdown, and getDiscriptior.
  • Click the shutdown button. You will get a pop up window containing XML that tells you how the operation went. I hope that you see SUCCESS in the task-result element.
  • With the SA shutdown try to get the WSDL and use the client.html app to contact the web service. Niether will work.
  • Let us start the SA again, click the start button in the operations window. You again get a pop up with XML.
  • Try again to get the WSDL or hit the web service using the client.html app. Both should now work!jconsole.jpg|align=center!

So this is brief but should give you a good idea of how easy it can be to manage your Servicemix instance(s).

...