If my understanding is correct,you are looking at creating an SE , where
you can configure the endpoint/service/interfaces in the SU (xbean.xml)
as done for the built in components like FTP,File etc.

In that case you have to look at implementation(code) of these standard
JBI components like FTP.



Regards,
Rabi Mishra,  
http://rabisblog.blogspot.com/
c++; /* this makes c bigger but returns the old value */ 
-----Original Message-----
From: Adrian Co [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 28, 2007 4:07 PM
To: [email protected]
Subject: Re: how to handle targetService

Ah.

If my understanding is correct, a SU, is just an endpoint configured and
deployed in the SE. For the case of the standard smx components (like
servicemix-http, servicemix-jms, etc), the endpoint in the service
engine contains a targetService property that is configured via the
xbean.xml in the service unit. If your component is xbean enabled, then
you could essentially do the same thing. i.e. provide a targetService
property in the service engine and configure per SU.

For examples on using xbean, I would look at any of the binding
components under deployables. AFAIK, you need only add an @XBean tag in
the Endpoint class and use the xbean-maven-plugin, but I'm not an xbean
expert, so I'm not entirely sure. :)

beppe82 wrote:
> What do you mean with "standard smx components"? I want to configure 
> the destination of the messages sent by a SU whose SE was written by 
> me: I use smx 's ftp component, and that's no problem, but what if I 
> want to configure MySE and MySU?
> Thanks
>
>
> Adrian Co wrote:
>   
>> Most if not all of the standard smx components have the targetService

>> attribute that you can configure in the xbean.xml.
>>
>> I might be misunderstanding your problem... :)
>>
>> beppe82 wrote:
>>     
>>> Hi, I have a SE created via mvn archetype and the correspondent SU. 
>>> How can I do to specify in the SU that I want the messages sent to a

>>> certain component? I don't want to hard code the destination like 
>>> in:
>>>
>>> InOnly ex = exchangeFactory.createInOnlyExchange();
>>> ex.setService(new QName("http://giuseppe.org";, "xmlsingleelab", 
>>> "beppe"));
>>>
>>> What I want is to configure my own SU like, for example, the ftp 
>>> component provided with ServiceMix, which can contain a 
>>> "targetService="...."
>>> attribute.
>>> Thanks
>>>   
>>>       
>>
>>     
>
>   



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Reply via email to