|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to begin using XMS |
« View previous topic :: View next topic » |
Author |
Message
|
Rol& |
Posted: Thu Jan 04, 2007 7:44 am Post subject: How to begin using XMS |
|
|
Newbie
Joined: 04 Jan 2007 Posts: 1
|
Hello all
Please, can anybody help me to get on the rails?
I have to write an application that communicates using MQ-Series.
Because I'm using .Net, I decide to use XMS as API.
On one machine (server) I installed MQ Series V6 using default settings.
Using the installed API-test programm amqapi.exe, I can locally connect to a queue and put messages, that's fine.
On my development machine (client), I installed the .Net Client and no additional MQ-code.
Now I try to run the sample program (SampleProducerCS.exe), but it has so many options I cannot get a connection.
So my questions:
- do I need to configure something on the server so that a client can connect?
- what should I use on the client? RTT, WMQ or WPM
- how are the other settings according to the connection type, port, topic, queue name etc?
Thanks for any help,
Rol& (confused) |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jan 04, 2007 8:12 am Post subject: Re: How to begin using XMS |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Rol& wrote: |
On my development machine (client), I installed the .Net Client and no additional MQ-code. |
You might want to install the MQ client as well
Rol& wrote: |
- do I need to configure something on the server so that a client can connect? |
You need to define a client connection.
Check out the Client manual (and possibly the .NET manual) here:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp
The Clients manual goes through the definition process for the connection. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jan 04, 2007 4:13 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Make sure the XMS package is installed (support pack).
You may read up on some of the generic JMS notions in the using java manual...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
saketr |
Posted: Sat Feb 24, 2007 9:58 am Post subject: |
|
|
Apprentice
Joined: 08 Feb 2006 Posts: 41
|
Perhaps a screen scrape would help:
Code: |
C:\Program Files\IBM\Message Service Client for .NET\tools\samples\bin>SampleProducerCS.exe
Enter '?' for help with any question.
Desired mode to run this sample application [simple]:
Enter connection type [wpm]: ?
- The connection type for messaging service:
WebSphere Platform Messaging (WPM)
WebSphere MQ (WMQ)
or WebSphere Business Integration Brokers using RTT transport (RTT).
- Valid values are: wpm, wmq, or rtt.
- Default value is: wpm.
Enter connection type [wpm]: wmq
Enter connection mode [client]:
Enter queue manager (optional):
Enter hostname [localhost]:
Enter destination URI [queue:///SYSTEM.DEFAULT.LOCAL.QUEUE]:
Your message (optional):
Connection Factory created.
Connection created.
Session created.
Destination created: queue:///SYSTEM.DEFAULT.LOCAL.QUEUE?persistence=1.
Producer created.
--------------- Message 1 sent ---------------
Message class: XMS_MESSAGE_TYPE_TEXT
Type:
DeliveryMode: NonPersistent
Expiration: 0
Priority: 4
MessageID: ID:414d5120514d5f7468696e6b70616420c15bd8452000c702
Timestamp: 1172339836500
CorrelationID:
Destination: queue:///SYSTEM.DEFAULT.LOCAL.QUEUE
ReplyTo:
Redelivered: False
JMSXUserID: Administrato
JMSXAppID: les\bin\SampleProducerCS.exe
JMSXDeliveryCount: 0
JMS_IBM_PutApplType: 11
JMS_IBM_PutDate: 24/02/2007
JMS_IBM_PutTime: 17:57:16
MyStringProperty: My Year Of Birth
MyIntProperty: 2005
[This is message 1 in this sample run] But soft! What light through yonder window breaks?
Arise, fa ... |
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|