On 6/5/07, lilas <[EMAIL PROTECTED]> wrote:


Hi,

I am a newbie to ServiceMix world, and I don't understand how to internally
invoke a jsr181 POJO from another jsr181 POJO, I searched and found someting
about proxy. But I didn't understood it clearly. For example, I have a
jsr181 web service "hello", and another jsr181 web service "helloBackEnd"
both exposed via ServiceMix jsr181 SE. how can I code from a method inside
"hello" a call to "helloBackEnd" methods. Could you please explain to me how
to do that. I keep seeing the config part of the thing with "jsr181:proxy",
what about the coding part. Is there any complete example out there?

Are you trying to route messages from the first servicemix-jsr181 SU
to the second servicemix-jsr181 SU? That is achieved via the xbean.xml
configuration by specifying the targetService attribute to specify the
namespace and service name of the second servicemix-jsr181 SU.

OR

Are you trying to write Java code in the POJOs that you are exposing
via the servicemix-jsr181 SU to initiate a message from the first
servicemix-jsr181 SU to the second servicemix-jsr181 SU? This can be
achieved by creating a normalized message and sending it the second
servicemix-jsr181 SU using the ServiceMix client API
(http://incubator.apache.org/servicemix/client-api.html) or simply by
using the exchange to get teh message and the delivery channel to send
the message.

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