If you want to use JBI packaging, you need to use two different SUs:
one for the lwcontainer which contains the trace component,
and one for the http BC which contains your endpoint.
Take a look at the examples in the distribution to see how
it works.
The other solution is to start a servicemix container
using the <sm:container/> tag instead of <sm:serviceunit>,
but in this case, you can not deploy it.
On 12/20/06, Maxim Y. Tebenev <[EMAIL PROTECTED]> wrote:
Hello Guys,
I'm trying to launch a very simple SU: one HTTP endpoint (in) and another
one for tracing. When deploying the SU to SMX I've got 'No endpoints found
error' message (rounded by <jbi-task> tags).
What's wrong with my xbean.xml?
Here's its content (without ns stuff):
<sm:serviceunit id="jbi">
<sm:activationSpecs>
<sm:activationSpec componentName="trace" service="hb:trace"
endpoint="traceEP">
<sm:component>
<bean
class="org.apache.servicemix.components.util.TraceComponent" />
</sm:component>
</sm:activationSpec>
<sm:activationSpec componentName="shopcomp">
<sm:component>
<http:component>
<http:endpoints>
<http:endpoint service="hb:ShopService"
endpoint="ShopServiceEP"
targetService="hb:trace"
role="consumer"
locationURI="http://0.0.0.0:8192/shop/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-only"/>
</http:endpoints>
</http:component>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:serviceunit>
Thanks in advance!
Best regards, Maxim Tebenev.
--
View this message in context:
http://www.nabble.com/No-endpoints-found-error-tf2861287s12049.html#a7994866
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Cheers,
Guillaume Nodet