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.swiftmq.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/




Reply via email to