What's the component used in your SE ?
 What do you mean by "call another service" : take the output of the
first SE and push the a second one ?

 In fact, it depends that you want to do :
 - in your existing SE is base on CXF, you can push the output
message (depending of your MEP) to your other SE
 - if you need more advanced routing, you can use camel component to
route the message through your different SE (depending of the EIP) ?

 Regards
 JB
 -- 
 Jean-Baptiste Onofré 
 [EMAIL PROTECTED] 
 BuildProcess/AutoDeploy Project Leader 
 http://buildprocess.sourceforge.net

 On Mon 24/11/08 17:51, aigor [EMAIL PROTECTED] wrote:
 Hello. 
 I have a problem. 
 I have one SE for the ServiceMix 3.2.2 and I wont to call another 
 service from the same SM. 
 I found next code: 

 /InOnly exchange = client.createInOnlyExchange(); 

 NormalizedMessage message = exchange.getInMessage(); 
 message.setProperty("name", "James"); 
 message.setContent(new StreamSource(new StringReader("world"))); 

 // lets use a specific service to dispatch to 
 QName service = new QName("http://servicemix.org/cheese/";, [1]
"receiver"); 
 exchange.setService(service); 
 client.send(exchange);/ 

 But I have no idea how to incorporate it into my endpoint class: 

 /protected void processInOnly(MessageExchange exchange, 
 NormalizedMessage in) throws Exception { 
 // do smth 
 System.out.println("[Calling other service]"); 
 // CALL OTHER SERVICE! 
 } 

 /Thanks for any idea. 
 Ihor. aigor(dog)iforma(dot)com(dot)ua 



Links:
------
[1] http://servicemix.org/cheese/

Reply via email to