Hi, 

I've looked at these pages but I still don't have a clear understanding how
to implement them.  I'm looking for a complete example or step by step
instructions on how to invoke a service by accessing the bus.  For instance,
the page http://incubator.apache.org/servicemix/servicemix-jsr181.html has a
secion Accessing the JBI Bus and says you can If you want to send a request
to another service from your POJO, you can add the following method on your
POJO:

private javax.jbi.component.ComponentContext context;

public void setContext(javax.jbi.component.ComponentContext context) {
  this.context = context;
}

Well, I tried putting this method in the wsdl-first example and received a
compile error package javax.jbi.component does not exist when running mvn
install jbi:projectDeploy.  And what do I need to do after I put this in my
POJO?  How do I send the request to the other service?  

That page also has a section on proxies but I didn't get a full
understanding of what needs to be done from that section.  For example, how
can I create one for the wsdl-first example.  

Then I found the page on the client-api
http://incubator.apache.org/servicemix/client-api.html but is there a full
working example somewhere on using the client api to invoke a jsr-181
service unit.  For example, the wsdl-first has a client.html.  But how can I
use the client-api to invoke it?  I was unclear on the sample code that was
on that page because I don't know what example it pertains to and if there
is anything else that needs to be done.  

Any help is greatly appreciated.  Thanks.



Adrian Co wrote:
> 
> I wonder if you mean the jsr181 proxy.
> http://incubator.apache.org/servicemix/servicemix-jsr181.html
> http://incubator.apache.org/servicemix/orchestration-with-jsr181.html
> 
> smixuser wrote:
>> Does anyone have a working example of having 2 JSR 181 Service Units
>> which
>> can invoke each other within the JBI bus or instructions on how this can
>> be
>> done?  Thanks.
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Looking-for-Example-of-2-JSR181-Service-Units-Invoking-Each-Other-tf4193293s12049.html#a11944203
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to