I'm trying to figure out how to use clustering in Servicemix 4, but have a
couple questions.  All my service units are packaged up in service
assemblies.

The first question is about the feature descriptor xml that configures the
clustering engine.  When I drop it into servicemix, I get the following
error:

22:18:30,941 | ERROR | Timer-2          | FeatureDeploymentListener        |
ternal.FeatureDeploymentListener  185 | Unable to install / uninstall
feature
java.net.URISyntaxException: Illegal character in path at index 73:
bundle://165.0:0/META-INF/org.apache.servicemix.kernel.gshell.features/C:\servicemix4\deploy\cluster.xml
    at java.net.URI$Parser.fail(URI.java:2809)
    at java.net.URI$Parser.checkChars(URI.java:2982)

I get this error if I use the cluster.xml from the nmr kit that Guillaume
mentions or the one from the sm4nmr clustering page (
http://servicemix.apache.org/SMX4NMR/13-clustering.html).  It seems as
though if I open the file, and save it so that it deploys again, it will
appear to deploy correctly, though I'm not actually sure if it really did.
Is that a known issue that it fails the first time?

The second question is that when I read the last part on this page:

http://servicemix.apache.org/SMX4NMR/13-clustering.html

It says the following:

When using a JBI packaged Service Assembly, you need to create a spring
application to register the endpoint as a clustered endpoint:

<bean 
class="org.apache.servicemix.jbi.cluster.engine.OsgiSimpleClusterRegistration">
  <property name="serviceName" value="test:myService" />
  <property name="endpointName" value="myEndpoint" />
</bean>


What does it means to create a "spring application". Is that saying
that you need a specific type of namespace declaration with this
element included for each individual endpoint?
This fragment won't deploy on it's own, so I'm guessing there is some
additional stuff that needs wrapped around it?

Reply via email to