On 4/10/07, Benamin <[EMAIL PROTECTED]> wrote:
>>
>> I have built a service engine that does some stuff, and I have added an
>> http
>> consumer service unit.  My xbean configuration for the http piece is as
>> follows:
>>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0";
>>        xmlns:replaceMe="http://servicemix.apache.org/samples/MyTest";>
>>
>>   <http:endpoint service="b:MyTest"
>>                  endpoint="endpoint"
>>                  role="consumer"
>>                  locationURI="http://0.0.0.0:8192/MyTest/";
>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-only";
>>                  soap="true" />
>>
>> </beans> 

>> I assumed I needed to make a
>> service unit that depends on my service engine.  I kind of expected to
>> have
>> an xbean file there in the service unit, but I didn't see one.

> Yes, if you have created your own SE, then you will need to create a
> SU that depends on that SE and the SU will contain the xbean.xml
> configuration file.

Can you show me what this xbean.xml file for the SU that wraps my SE should
look like?

My new configuration for the http su looks like this:

<beans xmlns:http="http://servicemix.apache.org/http/1.0";
       xmlns:test="http://servicemix.apache.org/samples/MyTest";>

<!-- add this to config: targetService="Endpoint_Of_SU_That_Wraps_SE" -->
  <http:endpoint service="test:http"
                 endpoint="endpoint"
                 role="consumer" 
                 locationURI="http://0.0.0.0:8192/MyTest/";
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-only"; />         
    

</beans>

I attempt to deploy this using an SA, and ServiceMix provides a message
saying the SA was deployed, but if I browse to localhost:8192, I do not see
my service available.  Any thing I can look for to see why it might not be
available?



-- 
View this message in context: 
http://www.nabble.com/How-to-send-messages-between-service-units-tf3555183s12049.html#a9941279
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to