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 see you've named the service b:MyTest but there is no b namespace in
the configuration. For this SU to be deployed successfully, you'll
need to add the b namespace to the configuration and then wrap the SU
in a SA.

I assume I need to add the targetService to forward my request to my service
engine, but I am not sure how to specify this.

Yes, to route messages from the HTTP consumer, you will use either the
targetService, the targetEndpoint or the targetInterface attribute.

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.

So how do I
specify the name of my service unit?  I figured this name would go into my
targetService for the http component?

The name of the SU is stated in the pom.xml for the Maven project
containing the xbean.xml configuration. The JBI Maven Plugin processes
both the pom.xml and the xbean.xml files to produce the jbi.xml
descriptor for the SU. Then the SU will need to be wrapped in a SA in
order to be deployed.

Also, I don't know what the namespace is in the http xbean when you are
specifying the service.  Can somebody explain what the namespace should be?

You select your own namespace. It can be anything as long as it's
compliant. As a point of reference, see the example namespace above
whose name is replaceMe.

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://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Reply via email to