Yep, I think that is what I meant :)))

Best regards,
         Kovi

At 10:52 8.5.01 +0200, you wrote:
>Hi,
>I don't think that's entirely true; - as long as the
>QueueConnectionFactory instance that you look up is retrieved from the
>same host on which the queue is defined, then the client app can create
>a queue receiver to the queue. What might be happening though is that
>the SychQueueReceiver is looking up the string "QueueConnectionFactory"
>which is defined at router1. The SynchQueueReceiver then tries to create
>a QueueReceiver for the queue defined on router81, which is now a
>"remote" router. To sort it out, define a QueueConnectionFactory#2 alias
>at router81 that maps to plainsocket@router81, and then update the
>SynchQueueReceiver to lookup QueueConnectionFactory81. Now router81
>becomes the "local" router for the AsychQueueReceiver, even if the
>AsynchQueueReceiver is executed on a different host.
>Hope it works!
>
>cheers
>Allen
>
>Gregor Kovač wrote:
> >
> > Hi!
> >
> > If you want to retrieve a message from router81 you have to run the program
> > on router81 machine, because consumers can only consume messages from local
> > queues.
> >
> > Hope this helps.
> >
> > Best regards,
> >          Kovi
> >
> > At 16:41 8.5.01 +0200, you wrote:
> > >Sir,
> > >
> > >I am trying to understand how to use the Routing Swiftlet.
> > >
> > >I run SwiftMQs on two machines. (local machine -- router1 and remote
> > >mahine-- router81).
> > >
> > >On the local machine, the swiftmq was run with the following 
> configurations:
> > >
> > >(1) partial information in the sys$routing section:
> > >
> > >swiftlet.sys$routing.staticroute.routers.names=router81,router225
> > >swiftlet.sys$routing.connectors.names=router81,router225
> > >swiftlet.sys$routing.connectors.router81.hostname=192.168.213.81
> > >swiftlet.sys$routing.connectors.router225.hostname=192.168.213.225
> > >swiftlet.sys$routing.connectors.router81.port=4101
> > >swiftlet.sys$routing.connectors.router225.port=4101
> > >swiftlet.sys$routing.listeners.names=plainsocket
> > >swiftlet.sys$routing.listeners.plainsocket.port=4101
> > >swiftlet.sys$routing.listeners.plainsocket.socketfactory.class=com.swif 
> tmq.net.PlainSocketFactory
> > >
> > >(2) partial information in the sys$jndi section:
> > >swiftlet.sys$jndi.remote.queues.names=gtEvent@router81
> > >
> > >
> > >I use the sample in the swiftmq package - the following is the result:
> > >
> > >  $ java SimpleQueueSender gtEvent@router81
> > >Queue name is gtEvent@router81
> > >Sending message: Here is a message
> > >
> > >These show the sending is successful. Actually, I also can find this 
> message
> > >in the persistent directory in router81.
> > >
> > >However, when I want to retrieve this message (which is router81) from my
> > >local machine by:
> > >
> > >$java SynchQueueReceiver gtEvent@router81
> > >Queue name is gtEvent@router81
> > >Exception occurred: javax.jms.JMSException: Queue 'gtEvent@router81' 
> is not
> > >local! Can't create a Consumer on it!
> >
> > >How to solve this  problem?
> > >By the way, where I can find some useful guide about the usage of the
> > >routing  in swiftmq? I think I am still confused by
> > >so many property items. I think more details such as the difference of 
> this
> > >items will be much more helpful.
> > >
> > >
> > >Thanks a lot!
> > >yangyuexiang
> > >
> > >
> > >------------------------------------------------------
> > >SwiftMQ developers mailing list * http://www.swiftmq.com
> > >To unsubscribe from this list, send an eMail to
> > >[EMAIL PROTECTED] and write in the body of your message:
> > >UNSUBSCRIBE developers <your-email-address>
> > >Archive: http://www.mail-archive.com/developers@mail.iit.de/
> >
> > ------------------------------------------------------
> > SwiftMQ developers mailing list * http://www.swiftmq.com
> > To unsubscribe from this list, send an eMail to
> > [EMAIL PROTECTED] and write in the body of your message:
> > UNSUBSCRIBE developers <your-email-address>
> > Archive: http://www.mail-archive.com/developers@mail.iit.de/
>
>------------------------------------------------------
>SwiftMQ developers mailing list * http://www.swiftmq.com
>To unsubscribe from this list, send an eMail to
>[EMAIL PROTECTED] and write in the body of your message:
>UNSUBSCRIBE developers <your-email-address>
>Archive: http://www.mail-archive.com/developers@mail.iit.de/


------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/




Reply via email to