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 Installation/Configuration Support » MQ6 remote + DB2 8.2 with AMI

Post new topic  Reply to topic
 MQ6 remote + DB2 8.2 with AMI « View previous topic :: View next topic » 
Author Message
fabyos
PostPosted: Fri May 15, 2009 12:10 pm    Post subject: MQ6 remote + DB2 8.2 with AMI Reply with quote

Apprentice

Joined: 15 May 2009
Posts: 37

Hi,

Sorry If I missplaced this post on the wrong area...

I've recently configured WMQ V6 with a database DB 8.2 using AMI.

I've installed the AMI administrator and enabled the MQ Functions... I successfully test a MQSend and MQReceive...

However, the configuration is MQ + DB2 on the same machine...

Is possible to configure this remotelly? So, I could have in a machine A MQ + Broker, and Machine B DB2 8.2, and have some functions/procedure/trigger on DB2 that send messages to MQ remotelly on another machine.

I'm trying to configure a Policy to do this on client channel name and clienttcp server address..

but no response...

this error is showed..

----------------------------
SQL0443N Routine "DB2MQ.MQSEND" (specific name "MQSND3") has returned an
error SQLSTATE with diagnostic text "rc=49:amSesOpen". SQLSTATE=38H01
----------------------------

This is because the Queue Manager is not found on a remoe server...

Someone have done something like this? Or its impossible?
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Fri May 15, 2009 12:23 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi fabyos,

Do you have an MQ Client on the Db box ? Are you able to access the Queue manager from the box atleast ?

Regards.
Back to top
View user's profile Send private message Send e-mail
fabyos
PostPosted: Fri May 15, 2009 1:09 pm    Post subject: Reply with quote

Apprentice

Joined: 15 May 2009
Posts: 37

Hi elvis_gn,

Yes I have a MQ installed on the same machine with DB2. Actually, this is a PoC. I've already tested two Queue Managers on different machines exchanging messages, by configuring a channel, listener and transmission and remote queues.

What i tried to do, is use this test, to have a DB2 MQ Function to send a mensage to a remote MQ on other machine.

I've founded this post:

http://www.ibm.com/developerworks/data/library/techarticle/wolfson/0108wolfson.html

And figure out that is not possible to have the following architecture

Machine A
DB2 (only)

Machine B
WebSphere MQ (only)

and

Machine A ---- MQSEND('message') ---> Machine B

Correct me if i am wrong..

The post put the following configuration:

Machine A
DB2 + MQ

Machine B
MQ

So,

DB2-- MQSEND(...) --> MQ_ON_A -- remote --> MQ_ON_B

There is another configuration for this implementation?
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Fri May 15, 2009 9:57 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi fabyos,

Yes, you cannot have just DB2 on the machine A and connect to MQ on another...but having said that, you do not need to install the server version of MQ on the machine A, all you need is the client version which provides you with the necessary jars to connect to a remote MQ...and the client version is free of cost (which is sometimes the concern of customers).

Regards.
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Sun May 17, 2009 6:13 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

elvis_gn wrote:
Hi fabyos,

Yes, you cannot have just DB2 on the machine A and connect to MQ on another...but having said that, you do not need to install the server version of MQ on the machine A, all you need is the client version which provides you with the necessary jars to connect to a remote MQ...and the client version is free of cost (which is sometimes the concern of customers).

Regards.

Read necessary binaries and jars. The full client supports more languages than just java.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
fabyos
PostPosted: Wed Jun 03, 2009 5:56 am    Post subject: Reply with quote

Apprentice

Joined: 15 May 2009
Posts: 37

I'm recoverying this topic because I didnt made AMI work with DB2 w/o WMQ Server.

My new cenario is DB2 8.2 + WebSphere MQ V6.0.2.6 Client for Windows.

Just to accomplish this, I'm using a VM with WMB 6.1.0.3 + WMQ 6.0.2.6 Server for Windows.

I've created a server connection channel and have a TCP listening to port 1414.

I've edited de amt.xml on <IBM_INSTALLATION>\WebSphere MQ\amt directory...

I created a Policy setting:

Code:
Connection Name: QMGR
Connection Mode: Real
Connection Type: Client
Trusted Option: Normal
Client Channel Name: EXTERNAL
Client TCP Server Address: vm:1414


The EXTERNAL is the channel I've created as a server connection to WMQ Server on VM.

Someone have already made it work? AMI have a log file?

Another question, IBM says that AMI is discontinued and dont recommend it uses. Unfortunally I need this to work with AMI+DB2+MQ. There is another options to accomplish this?
Back to top
View user's profile Send private message
fabyos
PostPosted: Wed Jun 03, 2009 8:23 am    Post subject: Reply with quote

Apprentice

Joined: 15 May 2009
Posts: 37

After some trials, I'm now able to do a remote connection with AMI + DB2, accessing another QMGR hosted on another machine.

However, I was only able to do it with a machine running

DB2 8.2 + WMQ6.0.2.6 Server AND CLIENT

Without the client I was getting exceptions... I didnt change anything in my previous AMT.xml except that I change the server from

vm:1414 to vm(1414)

Quote:
Connection Name: QMGR
Connection Mode: Real
Connection Type: Client
Trusted Option: Normal
Client Channel Name: EXTERNAL
Client TCP Server Address: vm(1414)


Before installed the client version with server I could accomplish the connection, after it I have tried setting the environment variable MQSERIES following the sintaxe for it

channel/protocol/connectionName

in this case: EXTERNAL/TCP/vm(1414)

But I'm still using MQ Server, but now I know that its possible to use AMI sending messages to a remote QMGR.

My second follow was trying this with a machine that have only DB2 8.2 and WMQ 6.0.2.6 Client for windows. I've installed AMI.

But, now I have this problem:

MQM.dll not founded...

when running enable_MQFunctions...

Browsing the internet I founded that MQM.dll is used to communicate with remote QMGR...

On my previous configuration (WMQ Server+Client) there is a mqm.dll on bin folder, but with only client there isnt....

Am I missing something? And I am still looking for an alternative way to use AMI, since its not recommended anymore...[/quote]
Back to top
View user's profile Send private message
fabyos
PostPosted: Wed Jun 03, 2009 9:11 am    Post subject: Reply with quote

Apprentice

Joined: 15 May 2009
Posts: 37

I did a workaround to accomplish the configuration of MQFunctions..

But it isn't fix my problem because it just validate that a DB2 + MQ Client works uniquelly, but its not enough to have a AMI configuration running properly...

I created a ODBC configuration on a machine with DB2 + WMQ Server to access the DB2 instance... using this data source I was able to run enable_MQFunctions from that machine to produce the DB2MQ functions...

Code:
enable_MQFunctions -n DATA_SOURCE -u DB_USER -p DB_PWD


But, this is a kind of requirement that I cant afford to...

Any ideas?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » MQ6 remote + DB2 8.2 with AMI
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.