Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using WebSphere MQ under .NET 4
Message
From
09/02/2011 13:02:34
 
 
To
09/02/2011 12:33:33
General information
Forum:
ASP.NET
Category:
Third party products
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01499304
Message ID:
01499432
Views:
33
>I believe that warning is a .Net thing completely unrelated to MQSeries. It's complaining that an instance variable (loMQEnvironment) is being used to access non-instance properties (i.e. shared). Just use the class name itself...MQEnvironment.
>
>If you run into anything else, just let me know. I do this stuff all the time....and it can be a real pain to get a handle on it.

You mean this:
        ' Define environment variables
        IBM.WMQ.MQEnvironment.Hostname = Trim(oApp.oAdmin.oRow("MQIP"))
        IBM.WMQ.MQEnvironment.Channel = Trim(oApp.oAdmin.oRow("MQChannel"))
        IBM.WMQ.MQEnvironment.Port = oApp.oAdmin.oRow("MQPort")
If I do that, there is no more warning. Is this what you were making reference to?

I found that weird that I could not create an object to this class. This is a weird infrastructure.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform