On 7/6/06, mohan vamsi <[EMAIL PROTECTED]> wrote:
Hi Davide,
I am not sure if i got you query completely. But wrt

> now i'm able to expose my WS.. but then... how i can send "normalized
> message" over the NMR?
>
To send a normalized message you need to have a component( a binding
component) that will act as a consumer that will convert you protocol
specific request to a normalized form and send it to your webservice thru a
component that will act as a provider.
I am not sure how much this helps given that you are a novice to JBI.
Suggest you spend some time looking at the JBI specs.

Mohan is correct, you need to utilize the components provided by
ServiceMix to handle the data produced by your web services. However,
I don't suggest looking at the JBI spec just to understand how to
*use* ServiceMix. The JBI spec will help you understand the
innerworkings of the JBI container in ServiceMix but it won't help you
understand how to use ServiceMix.

My suggestion is to walk through some of the examples to understand
how to use ServiceMix. The first example I would suggest is the file
binding example which is documented here:

http://servicemix.org/site/file-binding.html

This example demonstrates how to use the FilePoller and the FileWriter
components that ship with ServiceMix. The documentation at the URL
above provides steps to walk through running the examples as well as a
diagram and description of each step in the flow defined in the
servicemix.xml file.

The servicemix.xml file is used to perform two tasks:

1) to configure the ServiceMix JBI container (using the <sm:container> element)

2) to configure and wire together components (using the
<sm:activationSpec> elements)

Here is the servicemix.xml file for the file binding example:

http://svn.apache.org/viewvc/incubator/servicemix/trunk/apache-servicemix/src/main/release/examples/file-binding/servicemix.xml?revision=415380

This configuration file defines a sort of flow for ServiceMix. It
tells the JBI container how to handle the data produced by certain
components and consumed by other components. The diagram noted above
shows a graphical depiction of the flow defined in the servicemix.xml
file which makes it a bit easier to understand.

In addition, the servicemix.xml file is actually a spring-beans
instance. So if you have any knowledge of putting together a
configuration for the Spring Framework (version 1.2), this knowledge
will help you understand the servicemix.xml file. If you aren't
familiar with the Spring Framework and it's spring-beans XML file, I
suggest reading about it here:

http://www.springframework.org/

One small note about the spring-beans file, ServiceMix actually uses
an extension to this provided by the Apache XBean project
(http://geronimo.apache.org/xbean/) which is why the servicemix.xml
file will look slightly different from a pure spring-beans file. But
there's no need to understand these details right now.

Once you understand the file binding example, I would suggest moving
on to other examples including the following:

the http-binding example: http://servicemix.org/site/http-binding.html
the jms-binding example: http://servicemix.org/site/jms-binding.html
the basic example: http://servicemix.org/site/basic.html

Only after understanding at least a couple of these would I suggest
moving on to the soap-binding example as it is less documented and a
bit more complex.

One last item to note, some of the documentation mentions ServiceMix
2.x as the latest release, but this version is actually quite old now.
I highly recommend using the lastest ServiceMix milestone release
(3.0-M2) which can be downloaded here:

http://people.apache.org/~gnodet/servicemix-3.0-M2-incubating/m2/org/apache/servicemix/apache-servicemix/3.0-M2-incubating/

Please let us know if you have any questions.

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