You nee to use the QName specified by the service attribute:

   exchange.setService(new QName("http://fred/wilma";, "ftp"));

"sender" is the endpoint name which is  NCName (without any namespace).


On Dec 29, 2007 5:49 PM, Garry <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I've defined an ftp sender:
>
>  xmlns:gateway="http://fred/wilma";
>  ...
>  ftp:sender  service="gateway:ftp"  endpoint="sender"  ...
>
> that I'm trying to address from a servicemix-bean POJO:
>
>  public class TransferBean implements MessageExchangeListener {
>
> using the following QNames:
>
>  new QName ("http://fred/wilma";, "ftpsender")
>  new QName ("http://fred/wilma/ftp";, "sender")
>  new QName ("http://fred/wilma/ftp/";, "sender")
>
> none of which correctly resolve my ftp endpoint.  What's the magic QName
> incantation that will do the job?
>
> Thanks, Garry
>
>
> --
> View this message in context:
> http://www.nabble.com/How-to-build-QName-for-FTP-endpoint--tp14539211s12049p14539211.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to