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 API Support » Microsoft.NET

Post new topic  Reply to topic Goto page Previous  1, 2, 3, 4, 5, 6  Next
 Microsoft.NET « View previous topic :: View next topic » 
Author Message
jefflowrey
PostPosted: Fri Feb 06, 2004 7:17 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

sasineni wrote:
My question is can i install CSD05 on server that has MQ 5.2.1 and use the program written on server side ?

I don't understand your question.

Are you asking if you can install a CSD for 5.3 onto a 5.2 server?

Are you asking if you can install a CSD for 5.3 onto a 5.3 client, and use that to talk to a 5.2 server?

What are you asking?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sasineni
PostPosted: Fri Feb 06, 2004 7:30 am    Post subject: Reply with quote

Newbie

Joined: 05 Feb 2004
Posts: 7
Location: PHILADELPHIA, PA

I am asking if i could install CSD05 on server that has MQ 5.2.1


JeffLowrey wrote:
sasineni wrote:
My question is can i install CSD05 on server that has MQ 5.2.1 and use the program written on server side ?

I don't understand your question.

Are you asking if you can install a CSD for 5.3 onto a 5.2 server?

Are you asking if you can install a CSD for 5.3 onto a 5.3 client, and use that to talk to a 5.2 server?

What are you asking?
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Fri Feb 06, 2004 8:31 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

sasineni wrote:
I am asking if i could install CSD05 on server that has MQ 5.2.1

CSD05 for What version of MQSeries?

Each version has it's own individually numbered CSDs.

There's no such a thing as just plain "CSD05". There's "CSD05 for WebSphere MQSeries 5.2", and "CSD05 for WebSphere MQ 5.3", and they are different.

Your question still makes no sense.

The .NET framework that is officially supported by IBM is part and parcel of the thing called "CSD05 for WebSphere MQ 5.3". You cannot install "CSD05 for WebSphere MQ 5.3" on a machine running WebSphere MQSeries 5.2, nor do I think that the .Net framework is a custom install option.

You might be able to install the .Net framework somewhere else, and manually copy it to a machine running 5.2. But I wouldn't trust it without doing a lot of testing, and I'm sure IBM wouldn't give you any support for such a configuration.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sasineni
PostPosted: Fri Feb 06, 2004 10:03 am    Post subject: Reply with quote

Newbie

Joined: 05 Feb 2004
Posts: 7
Location: PHILADELPHIA, PA

Jeff,

Sorry if i confused you.

I could not find csd05 for 5.2.1 and all i was trying ask was could i use amqmdnet.dll that was officially released in csd05 for 5.3 with 5.2 on server side.

I was just wondering if anyone out here have taken amqmdnet.dll from csd05 for 5.3 installed it on a machine with MQ 5.2.1 and created any apps?

Sasi

JeffLowrey wrote:
sasineni wrote:
I am asking if i could install CSD05 on server that has MQ 5.2.1

CSD05 for What version of MQSeries?

Each version has it's own individually numbered CSDs.

There's no such a thing as just plain "CSD05". There's "CSD05 for WebSphere MQSeries 5.2", and "CSD05 for WebSphere MQ 5.3", and they are different.

Your question still makes no sense.

The .NET framework that is officially supported by IBM is part and parcel of the thing called "CSD05 for WebSphere MQ 5.3". You cannot install "CSD05 for WebSphere MQ 5.3" on a machine running WebSphere MQSeries 5.2, nor do I think that the .Net framework is a custom install option.

You might be able to install the .Net framework somewhere else, and manually copy it to a machine running 5.2. But I wouldn't trust it without doing a lot of testing, and I'm sure IBM wouldn't give you any support for such a configuration.
Back to top
View user's profile Send private message Yahoo Messenger
JasonE
PostPosted: Mon Feb 09, 2004 2:43 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

No you cant. Some of the internals of the product needed changing to better integrate the .net support so you need to run 5.3+fixpack 5 to get these changes.
Back to top
View user's profile Send private message
sasineni
PostPosted: Mon Feb 09, 2004 2:23 pm    Post subject: Reply with quote

Newbie

Joined: 05 Feb 2004
Posts: 7
Location: PHILADELPHIA, PA

I was able to connect to 5.2.1 server using 5.3 client with cds05. Modified and migrated apps into production. Everything works great..

Thanks to kolban. !!

JasonE wrote:
No you cant. Some of the internals of the product needed changing to better integrate the .net support so you need to run 5.3+fixpack 5 to get these changes.
Back to top
View user's profile Send private message Yahoo Messenger
MPDC
PostPosted: Tue Feb 10, 2004 6:12 am    Post subject: changes Reply with quote

Newbie

Joined: 10 Feb 2004
Posts: 4

Thanks for the install instructions. But is sth changed compared to the loose pack?
Back to top
View user's profile Send private message Visit poster's website
JasonE
PostPosted: Tue Feb 10, 2004 8:21 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

There is a huge differences between the fp5 version and the original version. Even between the interim cat2 support pack and the version in fp5, lots of things changed and got fixed.
Back to top
View user's profile Send private message
thaco
PostPosted: Sun Feb 15, 2004 11:51 am    Post subject: MQGMO_WAIT not working properly? Reply with quote

Newbie

Joined: 12 Mar 2003
Posts: 6

Im not an expert in the field of MQ, but it seems to me that when setting the MQGMO_WAIT option of the MQGetMessageOptions, my program waits for the whole duration of WaitInterval, regardless if a new message has arrived or not.

Thus, when setting WaitInterval = MQWI_UNLIMITED, my program waits forever, and WaitInterval = 10000 gives me a 10 second wait.

Has anybody else experienced this, or is it me who has missed a crucial point here? My code for setting the GMO is as follows:
MQGetMessageOptions gmo = new MQGetMessageOptions();
gmo.Options = MQC.MQGMO_WAIT;
gmo.MatchOptions = MQC.MQMO_NONE;
gmo.WaitInterval = MQC.MQWI_UNLIMITED;

Btw. Im using the new (and very much improved!) fp5 version of MQ.NET.


/thaco
Back to top
View user's profile Send private message
JasonE
PostPosted: Mon Feb 16, 2004 2:23 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

It shouldnt, and I havent heard of others suffering from that either. Are you sure a message has arrived which is committed (ie not under a unit of work?).

If you find you really can reproduce this and are certain the message is gettable (eg. amqsbcg can see the msg but your pgm hasnt returned) then I may be able to look at a trace for you
Back to top
View user's profile Send private message
thaco
PostPosted: Mon Feb 16, 2004 4:18 am    Post subject: Reply with quote

Newbie

Joined: 12 Mar 2003
Posts: 6

I think I found the answer myself. I have divided my program into two threads. One which does all the putting of messages to MQ (Putter), and the other one reads all the responses (Getter).

The problem occures if my Getter starts to wait for messages from MQ before my Putter puts the first message. Then the Getter waits for the whole duration of WaitInterval. However, if the message is posted first there is no problem.

As MQ is not my strongest side it might still be possible there are som other part of my code that screws this up, and not the order of the PUT and the GET.

Anyway, thanx for the reply!

/thaco
Back to top
View user's profile Send private message
JasonE
PostPosted: Mon Feb 16, 2004 4:54 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

This shouldnt be a problem either - If you are waiting and a message arrives, we wake you up. Does the get complete with 2033 (no_msg) or work?
Back to top
View user's profile Send private message
thaco
PostPosted: Mon Feb 16, 2004 6:23 am    Post subject: Reply with quote

Newbie

Joined: 12 Mar 2003
Posts: 6

Yes, the Get completes with a 2033.

My two threds look like this:

-= PUTTER =-
MQMessage reqM = new MQMessage();
reqM.CharacterSet = reqMCodePage;
reqM.Format = MQC.MQFMT_STRING;
reqM.MessageType = MQC.MQMT_REQUEST;
reqM.ReplyToQueueName = GetRepQ.Name;
reqM.Report = MQC.MQRO_COPY_MSG_ID_TO_CORREL_ID;
reqM.WriteString( msg.MsgMQReq );
reqM.Persistence = MQC.MQPER_NOT_PERSISTENT;
reqM.Expiry = 10 * 10;
GetReqQ( msg.NameQ ).Put( reqM );

-= GETTER =-
MQGetMessageOptions gmo = new MQGetMessageOptions();
gmo.Options = MQC.MQGMO_WAIT;
gmo.MatchOptions = MQC.MQMO_NONE;
gmo.WaitInterval = 10 * 1000;
MQMessage repM = new MQMessage();
GetRepQ.Get(repM, gmo);

Where all the GetXXXX are common properties to share connections / queues between the threads.

To me it seems like if the Get is called first then it will not respond to to the Put.

/thaco
Back to top
View user's profile Send private message
JasonE
PostPosted: Mon Feb 16, 2004 6:33 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

Does each thread have its own hconn, or are you trying to share the hconn (connection) between threads. If you are trying to share, then I think the put will hang until the get completes (Sharing connection handles either fails the call or blocks for the other thread to finish using it). Look in the docs for MQCNO_HANDLE_SHARE_* and .net uses a different default to the rest of MQ, it defaults to share_block.
Back to top
View user's profile Send private message
thaco
PostPosted: Mon Feb 16, 2004 7:34 am    Post subject: Reply with quote

Newbie

Joined: 12 Mar 2003
Posts: 6

Yes, I do share the connection between theese threads. Actually, is it possible to let Put and Get use different connections? Hum... yes, it must?! Or more precicely, why not?

Anyhow... at my connection I use the option MQC.MQCNO_HANDLE_SHARE_BLOCK in order to make it thread-safe. However what you are sugesting is that my problems might be due to locking conditions?

/thaco

Ps: Thanx for helping out! I really appreciate your comments.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2, 3, 4, 5, 6  Next Page 5 of 6

MQSeries.net Forum Index » IBM MQ API Support » Microsoft.NET
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.