Writing MQSeries applications for VA Smalltalk Server

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Writing MQSeries applications for VA Smalltalk Server

Ankita Srivastava
Hi,
 
I want to connect, get and populate the data on a server from MQ which is on another server. We need to connect to AbtMQqm using below options or properties:
HostName
Port
Channel
QueueName
QueueManager
SslPeerName
SslCipher
 
How to provide hostname and Channel to establish and open the connection using AbtMQqm queue? Or is there any other class through which i could do the same?
 
Is there any other way anyone could suggest for this. I searched Instantiations information but not able to find much. Is there any other usful documentation or link where I could find the ways to do the same.
 
It would be great if anyone could provide the infor for the same.
 
Thanks in Advance.
 
Ankita

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Writing MQSeries applications for VA Smalltalk Server

a62754

i see these options while working on visualworks - http://www.cincomsmalltalk.com/main/documentation/VisualWorks/MQGuide.pdf
but i don't see these options in vast.

is there anyone else who can answer this?
so, va smalltalk connects to mq on the same machine? and can't connect to a remote one? thats odd.


--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Writing MQSeries applications for VA Smalltalk Server

Wayne Johnston
VA can connect to an MQ server on another machine; you need the MQ client installed on the VA machine though.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Writing MQSeries applications for VA Smalltalk Server

a62754
Thanks for the info. We have MQ client installed on a different machine.
Can you pls give details on how to connect? Any sample code that takes an ip/hostname of the server that has the mq client?

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Writing MQSeries applications for VA Smalltalk Server

a62754
In reply to this post by Wayne Johnston
thanks for your reply.
Our MQ client is not on the VA machine - it's on a different machine and we want all VA machines to connect to the MQ client machine.

Seems like VisualWorks should be able to do this.
Java definitely can do this.
Its only VA ST thats lacking this ability.


Is this a relatively easy enhancement for VAST?

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Writing MQSeries applications for VA Smalltalk Server

a62754
In reply to this post by Wayne Johnston
Pls clarify more on this..
We do have MQ Client on server1 where smalltalk is installed. And we have MQ Server installed on server2.
Now, to connect to a mq queue or channel, we need to connect to server2. The mq client on server1 is only giving us the client library to connect to server2.
we should be able to specify we need to connect to server2 and provide the queue/channel name - correct?
How do we do this when no smalltalk api takes a hostname/port?

On Friday, June 20, 2014 4:04:07 PM UTC+5:30, Wayne Johnston wrote:
VA can connect to an MQ server on another machine; you need the MQ client installed on the VA machine though.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Writing MQSeries applications for VA Smalltalk Server

Jan van de Sandt
Hello,

You can do this by setting the MQSERVER environment variable on server1 to something like ChannelName/TransportType/ConnectionName.

For example: XYZ.QWT123.T1/TCP/MYHOST(1414)

Regards,
Jan.




On Wed, Jun 25, 2014 at 3:35 PM, a62754 <[hidden email]> wrote:
Pls clarify more on this..
We do have MQ Client on server1 where smalltalk is installed. And we have MQ Server installed on server2.
Now, to connect to a mq queue or channel, we need to connect to server2. The mq client on server1 is only giving us the client library to connect to server2.
we should be able to specify we need to connect to server2 and provide the queue/channel name - correct?
How do we do this when no smalltalk api takes a hostname/port?


On Friday, June 20, 2014 4:04:07 PM UTC+5:30, Wayne Johnston wrote:
VA can connect to an MQ server on another machine; you need the MQ client installed on the VA machine though.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Writing MQSeries applications for VA Smalltalk Server

a62754
Hi

I tried this but it didn't work.

Here's what i did: 
In the LD_LIBRARY_PATH include path of lib folder which contains 32 bit .so files.
export MQSERVER=CHANN.EL.NAME/TCP/'MYHOST(1414)'

where CHANN.EL.NAME is the actual channel name i'm using and MYHOST is the server name where MQ server is installed.


Smalltalk Code:

(aQueueManager := AbtMQqm new) name: 'AAA.BBB'.    <-- QueueManager name

(result := aQueueManager connect) isAbtError 

  ifTrue: [Transcript  cr; show: result codesAsString ; cr ; show: result reason asString]

 

Smalltalk Result:

('MqccFailed' , 'MqrcQMgrNameError')

2058



OS Details and MQ Client Details
Name: WebSphere MQ
Version: 7.1.0.2
Level: p710-002-121018
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 2.6.18-371.1.2.el5
Vast - 7.5.2
Style of communication - TCP 

MQ Server version - 7.5.0.2

Thanks for your help in advance.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Writing MQSeries applications for VA Smalltalk Server

Jan van de Sandt
Hi,

When we use the MQSERVER environment variable we leave the QueueMenager name empty is our Smalltalk code. Also I think you need the 32 bits version of the WebSphere MQ client.

Jan.


On Wed, Jul 9, 2014 at 11:15 AM, a62754 <[hidden email]> wrote:
Hi

I tried this but it didn't work.

Here's what i did: 
In the LD_LIBRARY_PATH include path of lib folder which contains 32 bit .so files.

where CHANN.EL.NAME is the actual channel name i'm using and MYHOST is the server name where MQ server is installed.


Smalltalk Code:

(aQueueManager := AbtMQqm new) name: 'AAA.BBB'.    <-- QueueManager name

(result := aQueueManager connect) isAbtError 

  ifTrue: [Transcript  cr; show: result codesAsString ; cr ; show: result reason asString]

 

Smalltalk Result:

('MqccFailed' , 'MqrcQMgrNameError')

2058



OS Details and MQ Client Details
Name: WebSphere MQ
Version: 7.1.0.2
Level: p710-002-121018
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 2.6.18-371.1.2.el5
Vast - 7.5.2
Style of communication - TCP 

MQ Server version - 7.5.0.2

Thanks for your help in advance.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.