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 » General IBM MQ Support » how to start channel?

Post new topic  Reply to topic Goto page 1, 2  Next
 how to start channel? « View previous topic :: View next topic » 
Author Message
sean2007
PostPosted: Thu Feb 01, 2007 11:05 pm    Post subject: how to start channel? Reply with quote

Novice

Joined: 01 Feb 2007
Posts: 14

Here are some questions on MQ:
1. One channel is created for local queque.
1.1 When I start it in MQ Explorer, the reply is "the request to start the channel was accepted ", but its channel status is still inactive.
1.2 When I start it in MQSC (runmqchl -c chlname -m QM_MgrName) , the message was print below:
Code:
5724-H72 (C) Copyright IBM Corp. 1994, 2004.  ALL RIGHTS RESERVED.
2/1/2007 13:49:24 Channel 'chlname' is starting.
2/1/2007 13:49:25 AMQ9203: A configuration error for TCP/IP occurred.
2/1/2007 13:49:25 AMQ9999: Channel program ended abnormally.


2. Two channel are created for remote queue, one's type is Sender and another is Receiver, they have the same channel's name.
2.1 When I start it in MQ Explorer, "An MQOPEN call failed when the queue manager try to open a websphere object (AMQ4063)" was received.
2.2 When I start it in MQSC, the message was print below:
Code:
5724-H72 (C) Copyright IBM Corp. 1994, 2004.  ALL RIGHTS RESERVED.
2/1/2007 13:54:08 Channel 'QM_REMOTE is starting.
2/1/2007 13:54:08 AMQ9509: Program cannot open queue manager object.
2/1/2007 13:54:08 AMQ9999: Channel program ended abnormally.


Would you like to give us some advice?
Back to top
View user's profile Send private message
Gaya3
PostPosted: Thu Feb 01, 2007 11:27 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

Whats the MQ Version

Please check Whether your listerner is running or not

and let us know the steps and commands how you created the channels.

I really confused about the way you presented the issue.

Thanks and Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Fri Feb 02, 2007 12:42 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

are you sure you created the objects correct? did you read the intercommunication guide to understand the relationship between queues, transmissionqueues, channels, .... ?!?
_________________
Regards, Butcher
Back to top
View user's profile Send private message
sean2007
PostPosted: Sun Feb 04, 2007 10:13 pm    Post subject: how to start channel? Reply with quote

Novice

Joined: 01 Feb 2007
Posts: 14

Hi, Gayothri,

MQ v6.00 is used and the listener is running without problem.
the steps is the same as in help document (Websphere contact admin Center/Websphere Tutorials/Sending a message to local queue or remote queue) .

would you like to give some possible cause?

As a matter of fact, I've tried three version(embled MQ v5.3/MQ client v5.3/MQ server v6.00) and the problems are same.

Thanks and Regards
Sean
Back to top
View user's profile Send private message
sean2007
PostPosted: Sun Feb 04, 2007 10:23 pm    Post subject: how to start channel? Reply with quote

Novice

Joined: 01 Feb 2007
Posts: 14

Hi, Butcher,

I am sure that the steps is right, becuase I refer to help document (Websphere contact admin Center/Websphere Tutorials/Sending a message to remote queue) and do it step by step.

I don't know why the steps in help tutorials is not passed. If possible, please refer to it too.

    Creating the queue manager
    Creating the queues on the sending queue manager
    Creating a message channel
    Putting a test message on the queue
    Verifying that the test message was sent


Code:
Creating the sending queue manager using WebSphere MQ Explorer
On the sending machine:
Start WebSphere MQ Explorer.
In the Navigator view, right-click the Queue Managers folder, then click New > Queue Manager The Create Queue Manager wizard opens.
In the Queue Manager name field, type QM_ORANGE.
Select the Make this the default queue manager check box.
Click Next twice to go to Step 3 of the wizard.
Ensure that the Start queue manager check box is selected.
Ensure that the Auto start queue manager check box is selected.
Click Next to go to Step 4 of the wizard.
Ensure that the Create listener configured for TCP/IP check box is selected
If the Finish button is not available, type another port number in the Listen on port number field. If the current value is 1414, try typing 1415 or 1416.
Click Finish.

Creating the queues on the sending queue manager using WebSphere MQ Explorer
On the sending queue manager:
In the Navigator view, expand the Queue Managers folder.
Expand queue manager QM_ORANGE.
Right click the Queues folder, then click New > Remote Queue Definition... The New Remote Queue Definition wizard opens.
In the Name field, type Q1
In the Remote queue field, type Q1.
In the Remote queue manager field, type QM_APPLE.
Ensure that the Transmission queue field is left blank.
Click Finish. You have now created the remote queue definition.
Click the QM_ORANGE queue manager.
Right-click the Queues folder, then click New > Local Queue The New Local Queue wizard opens.
In the Name field, type QM_APPLE.
In the Usage field, select Transmission.
Click Finish. You have now created the transmission queue on the local machine.
The new queues, Q1 and QM_APPLE, are displayed in the Content view.
If the queues are not displayed in the Content view, click the Refresh button at the top of the Content view.

Creating the message channel using MQ Explorer
On the receiving queue manager, QM_APPLE:
In the Navigator view expand the queue manager QM_APPLE that you created earlier, then expand the Advanced folder.
Right-click the Channels folder, then click New > Receiver Channel... The New Receiver Channel wizard opens.
In the Name field, type QM_ORANGE.QM_APPLE.
Click Finish. You have now created the receiver channel on the receiving machine.
On the sending queue manager, QM_ORANGE:

Expand the queue manager QM_ORANGE that you created earlier, then expand the Advanced folder.
Right-click the Channels folder, then click New > Sender Channel... The New Sender Channel wizard opens.
In the Name field, type QM_ORANGE.QM_APPLE, then click Next.
In the Connection name field, type the computer name or IP address of the receiving machine (you should already have obtained this with your system administrator's help).
In the Transmission queue field, typeQM_APPLE.
Click Finish.
Click the Channels folder.
Right-click QM_ORANGE.QM_APPLE.
From the pop-up menu, click Start.
Click OK. You have now created the sender channel on the sending machine.
Note: You do not have to start the receiver channel, because it started automatically when you set up the sender channel (when you set up the sender channel, you specified the receiver channel's IP address).
You have now created a receiver channel, QM_ORANGE.QM_APPLE, on the receiving queue manager, QM_APPLE, and a sender channel, QM_APPLE.QM_ORANGE, on the sending queue manager, QM_ORANGE. You have also started the sender channel, which automatically started the receiver channel too.

Putting a test message onto the queue using MQSC
Perform this task on the sending machine (the machine that hosts the queue manager QM_ORANGE.

The amqsput sample program is used to put a message onto the queue that you created.

On Windows the sample programs are installed by default with WebSphere MQ Server or Client. On Linux, the samples programs RPM need to be installed.

Open a command prompt and follow these steps:

Start the amqsput sample program as follows:
On Linux, change to the /opt/mqm/samp/bin directory and type the command: ./amqsput Q1
On Windows, type the command: amqsput Q1
The following messages are displayed:
Sample amqsput0 start
target queue is Q1

Type some message text on one or more lines, then press Enter twice. The following message is displayed:
Sample amqsput0 end

You have now created a test message and put it onto the remote queue. The next task is to verify that the test message was received.

Verifying that the test message was sent using WebSphere MQ Explorer
Perform this task on the receiving machine (the machine that hosts the queue manager QM_APPLE).
On the receiving queue manager:

In the Navigator view, expand queue manager QM_APPLE.
Click the Queues folder.
In the Content view, right-click the queue Q1, then click Browse Messages... The Message browser opens to show the list of the messages that are currently on Q1.
Double click the last message in the list to view its properties dialog.
On the Data page of the properties dialog, the Message data field displays the content of the message in human-readable form.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Sun Feb 04, 2007 10:43 pm    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

Quote:
An MQOPEN call failed when the queue manager try to open a websphere object (AMQ4063)


a colleague of mine had this problem too. in his case it helped when he closed the mq explorer, after that the runmqsc action could be performed.
give it a try.....
_________________
Regards, Butcher
Back to top
View user's profile Send private message
sean2007
PostPosted: Sun Feb 04, 2007 11:16 pm    Post subject: how to start channel? Reply with quote

Novice

Joined: 01 Feb 2007
Posts: 14

Hi, Butcher,

Thanks for your attention.

I've a try in MQSC and the error message is showed on first post. Anyway, I'll try it again...

--------------------
Regards, Sean
Back to top
View user's profile Send private message
sean2007
PostPosted: Sun Feb 04, 2007 11:50 pm    Post subject: AMQ9509 Reply with quote

Novice

Joined: 01 Feb 2007
Posts: 14

If you have those experience, please help me. Thanks a lot.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Feb 05, 2007 1:09 am    Post subject: Re: how to start channel? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sean2007 wrote:
1.1 When I start it in MQ Explorer, the reply is "the request to start the channel was accepted ", but its channel status is still inactive.


Not necessarially a problem. A working channel will show as inactive if there's no traffic for a while.

sean2007 wrote:

1.2 When I start it in MQSC (runmqchl -c chlname -m QM_MgrName) , the message was print below:
Code:
5724-H72 (C) Copyright IBM Corp. 1994, 2004.  ALL RIGHTS RESERVED.
2/1/2007 13:49:24 Channel 'chlname' is starting.
2/1/2007 13:49:25 AMQ9203: A configuration error for TCP/IP occurred.
2/1/2007 13:49:25 AMQ9999: Channel program ended abnormally.



Isn't that starting a channel initiator rather than a channel? And if there's an initiator already running (via mmc) you will get that error.

sean2007 wrote:
2/1/2007 13:54:08 Channel 'QM_REMOTE is starting.
2/1/2007 13:54:08 AMQ9509: Program cannot open queue manager object.
2/1/2007 13:54:08 AMQ9999: Channel program ended abnormally. [/code]


At best you have a wierd naming convention, at worst you've got the objects mixed up.

My tip - delete the lot (possibly even the queue manager) and redefine the objects using runmqsc script. If you're certain it's all correct, try putting a message onto the remote queue and seeing where it turns up (xmitq, dlq, target q, etc).

If you're still having problems, post the runmqsc script here along with details of where you PUT the message to & where it turned up, blanking any sensitive details like IP addresses first.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 05, 2007 4:02 am    Post subject: Reply with quote

Grand High Poobah

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

And remember the manual details a default implementation where 2 different machines come into play. If you are using only one machine with multiple qmgrs you will have to pass the port information to the sender channels.

Read up on the intercommunications manual. (I know this is hard work but it will open many a door for you!)

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sean2007
PostPosted: Mon Feb 05, 2007 7:21 pm    Post subject: how to start channel? Reply with quote

Novice

Joined: 01 Feb 2007
Posts: 14

Hi, Vitor & fjb_saper,

Thanks you for your kind help.
I'll do by your instructions, however, I'll get MQSC ready and write command step by step.

Thanks again,

Sean
Back to top
View user's profile Send private message
Anirud
PostPosted: Mon Feb 05, 2007 10:13 pm    Post subject: Reply with quote

Master

Joined: 12 Feb 2004
Posts: 285
Location: Vermont

Did you happen to check error logs? You can find more information on why the channel is ending abnormally.
Back to top
View user's profile Send private message Visit poster's website
sean2007
PostPosted: Tue Feb 06, 2007 12:45 am    Post subject: how to start channel? Reply with quote

Novice

Joined: 01 Feb 2007
Posts: 14

Hi, Vitor,

I've run all of Script in MQSC and the channels' status are running now.

Thanks a million.

Sean
Back to top
View user's profile Send private message
sean2007
PostPosted: Tue Feb 06, 2007 12:51 am    Post subject: how to start channel? Reply with quote

Novice

Joined: 01 Feb 2007
Posts: 14

Hi, Anirud,

Quote:
Did you happen to check error logs? You can find more information on why the channel is ending abnormally.


Yes, I've check error logs. But I don't know how to find which messages are useful, because the part of messages are binary.

Thanks,
Sean
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Feb 06, 2007 1:02 am    Post subject: Re: how to start channel? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sean2007 wrote:
Yes, I've check error logs. But I don't know how to find which messages are useful, because the part of messages are binary.


Those sound like the wrong logs. Files in the log folder that look like binary are the log files the queue manager uses to track persistent messages. They're not human readable, contain nothing of value except to a queue manager and should not be browsed - especially on Windows platforms where the file locking strategy in use can lock out the queue manager while the human has the file open (don't ask how I discovered that, or what happened to the idiot who was looking for his message in queue file with Notepad when I caught up with him.... )

The error logs are in the errors folder and are in text form. Channel errors will be recorded in there for your assistance, along with all other queue manager issues.

Glad you got it sorted. I always find it easier to use script; easier to see at all glance all your objects. Well done you!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » how to start channel?
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.