|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Inquire Channel Status PCF problem |
« View previous topic :: View next topic » |
Author |
Message
|
agurrion |
Posted: Mon Dec 22, 2003 8:58 am Post subject: Inquire Channel Status PCF problem |
|
|
Newbie
Joined: 19 Dec 2003 Posts: 2
|
Hi folks,
I'm using Kolba's MQseries.net to get the status' channel, the code is...
Dim mensajePCFrequerimiento As PCFMessage
Dim mensajesPCFrespuesta() As PCFMessage
Dim m_agentePCF As PCFMessageAgent
Dim i As Integer
Dim ChannelName As String
Dim XmitQName As String
Dim ConnectionName As String
Dim ChannelInstanceType As Integer
Dim ChannelType As Integer
Dim ChannelStatus As Integer
Dim RemoteQMgrName As String
m_agentePCF = New PCFMessageAgent(m_qmgr)
mensajePCFrequerimiento = New PCFMessage(CMQCFC.MQCMD_INQUIRE_CHANNEL_STATUS)
With mensajePCFrequerimiento
.AddParameter(CMQCFC.MQCACH_CHANNEL_NAME, NombredelCanal)
End With
mensajesPCFrespuesta = m_agentePCF.Send(mensajePCFrequerimiento)
'Formato esperado :hay 0,1....N-1 PCF's con los siguientes campos
'ChannelName (MQCFST) id=MQCACH_CHANNEL_NAME
'XmitQName (MQCFST)id=MQCACH_XMIT_Q_NAME
'ConnectionName (MQCFST)id=MQCACH_CONNECTION_NAME
'ChannelInstanceType(MQCFIN)id=MQIACH_CHANNEL_INSTANCE_TYPE
'ChannelType (MQCFIN)id=MQIACH_CHANNEL_TYPE
'ChannelStatus (MQCFIN)id=MQIACH_CHANNEL_STATUS
'RemoteQMgrName(MQCFST)id=
Try
For i = 0 To mensajesPCFrespuesta.Length - 1
'Por cada PCF (instancia del canal)
ChannelName = mensajesPCFrespuesta(i).GetStringParameterValue(CMQCFC.MQCACH_CHANNEL_NAME)
XmitQName = mensajesPCFrespuesta(i).GetStringParameterValue(CMQCFC.MQCACH_XMIT_Q_NAME)
ConnectionName = mensajesPCFrespuesta(i).GetStringParameterValue(CMQCFC.MQCACH_CONNECTION_NAME)
ChannelInstanceType = mensajesPCFrespuesta(i).GetIntParameterValue(MQIACH_CHANNEL_INSTANCE_TYPE)
ChannelType = mensajesPCFrespuesta(i).GetIntParameterValue(MQIACH_CHANNEL_TYPE)
ChannelStatus = mensajesPCFrespuesta(i).GetIntParameterValue(MQIACH_CHANNEL_STATUS)
RemoteQMgrName = mensajesPCFrespuesta(i).GetStringParameterValue(MQC.MQCA_REMOTE_Q_MGR_NAME)
Console.WriteLine("ChannelName ={0},XmitQName={1},ConnectionName ={2}", ChannelName, XmitQName, ConnectionName)
Console.WriteLine("ChannelInstanceType ={0},ChannelType={1},ChannelStatus ={2}", ChannelInstanceType, ChannelType, ChannelStatus)
Console.WriteLine("RemoteQMgrName={0}", RemoteQMgrName)
Next
Catch ex As MQException
Console.WriteLine(ex.Message.ToString)
Console.WriteLine(ex.CompCode)
Console.WriteLine(ex.Reason)
End Try
An exception is throws when i try to get the firs param response GetStringParameterValue(CMQCFC.MQCACH_CHANNEL_NAME)
Can someone please help me with this problem?
Thanx |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Dec 22, 2003 10:35 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You should be using the version of the .Net classes that are part of CSD05 of Websphere MQ 5.3 for Windows.
There are also some bugs and limitations in the PCF support in these classes, both the older and the most recent IBM supplied versions.
So you may not be able to do what you're trying to do. Yet. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
agurrion |
Posted: Mon Dec 22, 2003 3:44 pm Post subject: |
|
|
Newbie
Joined: 19 Dec 2003 Posts: 2
|
JeffLowrey:
Thank you, you´re right...
in the proper instance channel I got the message Not yet implemented.
For you which one is the best option from below?
1)Use MQActiveX with property bags
2)Get the IBM's PCF implementation for .Net
3)Use the old way in C (PCF structures) , write the proper dll in C/C++ and then use it in .Net.
Thanks in advance. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Dec 22, 2003 4:18 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
agurrion wrote: |
For you which one is the best option from below?
1)Use MQActiveX with property bags
2)Get the IBM's PCF implementation for .Net
3)Use the old way in C (PCF structures) , write the proper dll in C/C++ and then use it in .Net.
Thanks in advance. |
I don't if #2 is possible. I don't know if IBM's .Net PCF implementation will support the function you want.
So, either #1 or #3, whichever you are more comfortable with. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
JasonE |
Posted: Tue Dec 23, 2003 3:35 pm Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
FYI It is intended that the fixes that have gone into PCF support in .net will be included in the next fixpack, if you can put your decision off until that is available... |
|
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
|
|
|
|