ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Telemetry / Low Latency Messaging / Everyplace » client-server connection

Post new topic  Reply to topic
 client-server connection « View previous topic :: View next topic » 
Author Message
dlaiz
PostPosted: Tue Aug 29, 2006 6:12 am    Post subject: client-server connection Reply with quote

Newbie

Joined: 29 Aug 2006
Posts: 2

Hi, I'm using MQEveryplace for the first time and I'm trying to understand how it works by using an example called "msgpump". I have two installations in two different pc's, I run the Client example and the Server Example changin the connection port to 9082 (8082 by default), then I it put's the following messages:

C:\Archivos de programa\MQe\Java>java examples.midp.exampleapp.msgpump.NormalServer

Server Side:

[Controller] Initializing QM_PumpServer
Initializing model for QM_PumpServer
[Model] Creating message service...
qm activate
[QMRules] activate
[QMRules] run
[Controller] Starting model...
Type 'help' for help on available commands
Server:\>
Queue monitor for queue: REQUESTQUEUE started

Client Side:

D:\Program Files\MQe\Java>java examples.midp.exampleapp.msgpump.NormalClient --s
ecurity 0 --serverip 10.45.72.222 --serverport 9082
6
4
2
[Controller] Initializing QM_node01
Initializing model for QM_node01
[Model] Creating message service...
qm activate
[QMRules] activate
[QMRules] run
[Controller] Starting model...
Type 'help' for help on available commands
Client:\>
QM_PumpServer
REQUESTQUEUE
com.ibm.mqe.communications.MQeCommunicationsException: An exception occured in t
he communications layer(java.net.ConnectException: Connection refused: connect)[
QM_node01 2] (code=700)
at com.ibm.mqe.adapters.MQeTcpipAdapter.open(DashoA8173)
at com.ibm.mqe.communications.MQeChannel.processRequest(DashoA8173)
at com.ibm.mqe.communications.MQeChannel.activateMaster(DashoA8173)
at com.ibm.mqe.communications.MQeConnectionDefinition._createNewChannel(
DashoA8173)
at com.ibm.mqe.communications.MQeConnectionDefinition.getChannel(DashoA8
173)
at com.ibm.mqe.communications.MQeCommunicationsManager.getChannelControl
Block(DashoA8173)
at com.ibm.mqe.MQeTransporter._getChannelControlBlock(DashoA8173)
at com.ibm.mqe.MQeTransporter._prepare(DashoA8173)
at com.ibm.mqe.MQeTransporter.putMessage(DashoA8173)
at com.ibm.mqe.MQeRemoteQueue._synchronousPutMessage(DashoA8173)
at com.ibm.mqe.MQeRemoteQueue.putMessage(DashoA8173)
at com.ibm.mqe.MQeQueueManager.internalPutMessage(DashoA8173)
at com.ibm.mqe.MQeQueueManager.putMessage(DashoA8173)
at examples.midp.exampleapp.messageservice.MQeMessageService.sendSecureM
essage(MQeMessageService.java:856)
at examples.midp.exampleapp.messageservice.MQeMessageService.sendMessage
(MQeMessageService.java:835)
at examples.midp.exampleapp.msgpump.MsgPumpModelClient.run(MsgPumpModelC
lient.java:137)
at java.lang.Thread.run(Thread.java:568)


I don't have any Firewalls active, somebody can help me or send me an easier example that I could run?
Thanks in advance
Back to top
View user's profile Send private message
YATAWAL
PostPosted: Thu Aug 31, 2006 7:34 am    Post subject: Reply with quote

Apprentice

Joined: 26 Feb 2004
Posts: 25

If you change the port to 9082, the server must listen at that port.
So when you start the server, try adding the matching server side parameter --serverport 9082
Back to top
View user's profile Send private message
dlaiz
PostPosted: Tue Sep 05, 2006 12:00 am    Post subject: Reply with quote

Newbie

Joined: 29 Aug 2006
Posts: 2

YATAWAL wrote:
If you change the port to 9082, the server must listen at that port.
So when you start the server, try adding the matching server side parameter --serverport 9082


Problem solved, but the app I'm developing needs to be client and server at the same time, then I can't create two Queue Managers in the same machine.. Can be MQe Client and server at the same time?

Thank you
Back to top
View user's profile Send private message
YATAWAL
PostPosted: Wed Sep 06, 2006 5:04 am    Post subject: Reply with quote

Apprentice

Joined: 26 Feb 2004
Posts: 25

If a queue manager has a listener configured, it becomes a server.
If the same queue manager has connections configured to other servers it becomes a client. So the same queue manager can act as a client as well as a server.
You can have multiple queue managers in the same machine but not in the same JVM. One JVM ... one MQe queue manager.
If you have more than one server queue manager in the same machine they need to have different listener ports.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Telemetry / Low Latency Messaging / Everyplace » client-server connection
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.