On 6/3/06, rbeeger <[EMAIL PROTECTED]> wrote:

Hi!

I'm trying to make ServiceMix run embedded inside a Spring container. I
tried it that way it is described on
http://servicemix.org/site/spring-support.html and
http://servicemix.org/site/client-api.html. Unfortunately that didn't work
at all. The provided Spring 1.2.6 doesn't seem to handle configuration files
with XML Schema definitions well. So I took Spring 2.0 M4.
Now the problem is that sm:container doesn't have that attributes id and
embedded according to the Schema.

I'm not really sure what you're trying to do exactly as ServiceMix
already runs in Spring. The default configuration is an XBean
configuration and XBean is a pluggable kernel architecture that is a
thin layer built on top of Spring. So whenever ServiceMix is running,
it's running in Spring. If you're trying to use a pure Spring
configuration (i.e., avoid the use of XBean), then AFAIK, you can just
follow the spring-simple.xml example (but maybe this is broken now -
I'm not sure???). Can you please post an example config and the errors
you're getting? This would help us understand the issues you're
seeing, because right now everything is very vague.

However, ServiceMix will not work with Spring 2.x as that update
changed some things in Spring making it incompatible with ServiceMix.
So trying to use Spring 2.x with ServiceMix right now will not be a
productive effort because of the changes to Spring 2.x. I'm not sure
what you mean by config files with XML schema definitions - do you
mean namespaces? Please provide examples.

So now I tried the pure-Spring approach, shown on
http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-core/src/test/resources/org/apache/servicemix/examples/spring-simple.xml
. I created a ReceiverComponent-bean and set the service property to what in
the other approach would be the service attribute on the activationSpec. I
guessed that the endpoint property would take the class name of my component
which was specified by sm:component in the other approach.
Well, now I don't get any exceptions any more and something runs, but it's
definitely not my component. ServiceMix seems to find something. Specifying
some non existing name for the call yields the expected exception.
BTW: I'm using (or betterr trying to use) 30-M1.

Please provide examples of the configs you're trying to use. What are
the exceptions you're seeing? More information would be very helpful.

Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://incubator.apache.org/activemq/
Apache ServiceMix - http://incubator.apache.org/servicemix/
Castor - http://castor.org/

Reply via email to