On 1/19/07, CharlesP <[EMAIL PROTECTED]> wrote:



bsnyder wrote:
>
>
>>> 2.  How would I send that message through different communication
>>> protocols,
>>> say HTTP or FTP, for example?
>
>> You'd need to create another SU project based on the servicemix-http
>> or servicemix-ftp component and configure the BC as an endpoint for
>> the SE. That SU would then expose the SE via either HTTP or FTP.
>
>

Ok, so do I run a command like the following to create the http bc:

mvn archetype:create \
-DarchetypeGroupId=org.apache.servicemix.tooling \
-DarchetypeArtifactId=servicemix-http-consumer-service-unit \
-DarchetypeVersion=3.1-incubating-SNAPSHOT \
-DgroupId=org.apache.servicemix.samples.helloworld.se \
-DartifactId=hello-world-bc-su

Yes, the command above will create a consumer SU based on the
servicemix-http component. This SU can be used to expose a service on
the NMR via HTTP, i.e., this will make the service available outside
the JBI container via the HTTP protocol.

I noticed that command creates an xbean.xml that has parameters.  Is this
where I will be able to set the BC as an endpoint for the SE?  If so, how
exactly do I do that?

Yes, the xbean.xml file is used to configure the servicemix-http
component as described here:

http://servicemix.org/site/servicemix-http.html#servicemix-http-Consumerendpoint

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