Versions Compared

Key

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

...

First up you will need a copy of ServiceMix, so download and unzip this on your machine.

Then you should find under $SERVICEMIX_HOME (the location you unzipped it), you should find an install directory. You need to copy both of your JBI installers that you created for your components into this directory. If you have been working in /work then these should be /work/myFirstComponent/target/myFirstComponent-1.0-jbi-installer.zip and /work/mySecondComponent/target/mySecondComponent-1.0-jbi-installer.zip.

Once you have installed the new components you can just start servicemix goto $SERVICE_HOME/bin and run servicemix

You should see your components deploy and then every 5 secs you should see the logger recieve the exchange from the timer component.

No Format

ServiceMix ESB: null

Loading ServiceMix from servicemix.xml on the CLASSPATH
Aug 19, 2005 11:13:13 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [servicemix.xml]
Aug 19, 2005 11:13:13 AM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=14737862]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [transactionManager,jmsFactory,jbi]; root of BeanFactory hierarchy
Aug 19, 2005 11:13:14 AM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 3 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=14737862]
Aug 19, 2005 11:13:14 AM org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
Aug 19, 2005 11:13:14 AM org.springframework.core.CollectionFactory <clinit>
INFO: Commons Collections 3.x available
Aug 19, 2005 11:13:14 AM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1e51060]
Aug 19, 2005 11:13:14 AM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@b166b5]
Aug 19, 2005 11:13:14 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [transactionManager,jmsFactory,jbi]; root of BeanFactory hierarchy]
Aug 19, 2005 11:13:14 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'transactionManager'
Aug 19, 2005 11:13:14 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'jmsFactory'
Aug 19, 2005 11:13:14 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'jbi'
Aug 19, 2005 11:13:14 AM org.servicemix.jbi.container.JBIContainer init
INFO: ServiceMix JBI Container (http://servicemix.org/) name: defaultJBI running version: null
Aug 19, 2005 11:13:14 AM org.servicemix.jbi.framework.AutoDeploymentService$1 run
INFO: Directory: install: Archive changed: processing myFirstComponent-1.0-jbi-installer.zip ...
Aug 19, 2005 11:13:15 AM org.servicemix.jbi.framework.InstallationService unpackLocation
INFO: Unpacked archive l:\servicemix\base\src\main\release\bin\..\install\myFirstComponent-1.0-jbi-installer.zip to l:\servicemix\base\src\main\release\bin\..\wdir\defaultJBI\tmp\myFirstComponent-1.0-jbi-installer.0.tmp
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/l:/servicemix/base/src/main/release/bin/../wdir/defaultJBI/tmp/myFirstComponent-1.0-jbi-installer.0.tmp/META-INF/jbi.xml]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=22057969]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [installationDescriptorExtension,jbi]; root of BeanFactory hierarchy
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 2 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=22057969]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@c791b9]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@3020ad]
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [installationDescriptorExtension,jbi]; root of BeanFactory hierarchy]
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'installationDescriptorExtension'
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'jbi'
Aug 19, 2005 11:13:15 AM org.servicemix.jbi.framework.InstallationService doInstallComponent
INFO: moved l:\servicemix\base\src\main\release\bin\..\wdir\defaultJBI\tmp\myFirstComponent-1.0-jbi-installer.0.tmp to l:\servicemix\base\src\main\release\bin\..\wdir\defaultJBI\components\myFirstComponent\installation
Aug 19, 2005 11:13:15 AM org.servicemix.jbi.container.JBIContainer activateComponent
INFO: Activating component for: [container=defaultJBI,name=myFirstComponent,id=myFirstComponent] with service: null component: org.servicemix.client.SpringComponent@1cd0888
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/l:/servicemix/base/src/main/release/bin/../wdir/defaultJBI/components/myFirstComponent/installation/META-INF/jbi.xml]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=27296482]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [installationDescriptorExtension,jbi]; root of BeanFactory hierarchy
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 2 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=27296482]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@f0c85e]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1f297e7]
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [installationDescriptorExtension,jbi]; root of BeanFactory hierarchy]
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'installationDescriptorExtension'
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'jbi'
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from file [l:\servicemix\base\src\main\release\bin\..\wdir\defaultJBI\components\myFirstComponent\installation\META-INF\jbi-spring.xml]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=28724842]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [myTimer]; root of BeanFactory hierarchy
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 1 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=28724842]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@a084f8]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@79ed7f]
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [myTimer]; root of BeanFactory hierarchy]
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'myTimer'
Starting timer
Aug 19, 2005 11:13:15 AM org.servicemix.jbi.framework.AutoDeploymentService$1 run
INFO: Directory: install: Finished installation of archive:  myFirstComponent-1.0-jbi-installer.zip
Aug 19, 2005 11:13:15 AM org.servicemix.jbi.framework.AutoDeploymentService$1 run
INFO: Directory: install: Archive changed: processing mySecondComponent-1.0-jbi-installer.zip ...
Aug 19, 2005 11:13:15 AM org.servicemix.jbi.framework.InstallationService unpackLocation
INFO: Unpacked archive l:\servicemix\base\src\main\release\bin\..\install\mySecondComponent-1.0-jbi-installer.zip to l:\servicemix\base\src\main\release\bin\..\wdir\defaultJBI\tmp\mySecondComponent-1.0-jbi-installer.0.tmp
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/l:/servicemix/base/src/main/release/bin/../wdir/defaultJBI/tmp/mySecondComponent-1.0-jbi-installer.0.tmp/META-INF/jbi.xml]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=20469344]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [installationDescriptorExtension,jbi]; root of BeanFactory hierarchy
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 2 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=20469344]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@589e56]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@3411a]
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [installationDescriptorExtension,jbi]; root of BeanFactory hierarchy]
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'installationDescriptorExtension'
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'jbi'
Aug 19, 2005 11:13:15 AM org.servicemix.jbi.framework.InstallationService doInstallComponent
INFO: moved l:\servicemix\base\src\main\release\bin\..\wdir\defaultJBI\tmp\mySecondComponent-1.0-jbi-installer.0.tmp to l:\servicemix\base\src\main\release\bin\..\wdir\defaultJBI\components\mySecondComponent\installation
Aug 19, 2005 11:13:15 AM org.servicemix.jbi.container.JBIContainer activateComponent
INFO: Activating component for: [container=defaultJBI,name=mySecondComponent,id=mySecondComponent] with service: null component: org.servicemix.client.SpringComponent@18bf072
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/l:/servicemix/base/src/main/release/bin/../wdir/defaultJBI/components/mySecondComponent/installation/META-INF/jbi.xml]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=20785379]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [installationDescriptorExtension,jbi]; root of BeanFactory hierarchy
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 2 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=20785379]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@3b8b49]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1359c1b]
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [installationDescriptorExtension,jbi]; root of BeanFactory hierarchy]
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'installationDescriptorExtension'
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'jbi'
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from file [l:\servicemix\base\src\main\release\bin\..\wdir\defaultJBI\components\mySecondComponent\installation\META-INF\jbi-spring.xml]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=10268916]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [myLogger]; root of BeanFactory hierarchy
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 1 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=10268916]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1309e87]
Aug 19, 2005 11:13:15 AM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@f7c31d]
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [myLogger]; root of BeanFactory hierarchy]
Aug 19, 2005 11:13:15 AM org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'myLogger'
Aug 19, 2005 11:13:15 AM org.servicemix.jbi.framework.ComponentContextImpl activateEndpoint
INFO: Component: mySecondComponent activated endpoint: {http://tempuri.org/logger}write : default
Aug 19, 2005 11:13:15 AM org.servicemix.jbi.framework.AutoDeploymentService$1 run
INFO: Directory: install: Finished installation of archive:  mySecondComponent-1.0-jbi-installer.zip
Aug 19, 2005 11:13:20 AM org.servicemix.tutorial.LoggerComponent onMessage
INFO: I got my exchange org.servicemix.jbi.messaging.InOnlyImpl@15ad5c6

There you go! Success, you have just written your first components and hooked them up and deployed them!