Author |
Message
|
misk0 |
Posted: Mon Feb 16, 2015 4:43 am Post subject: Check if JMS enabled on MQ |
|
|
Newbie
Joined: 16 Feb 2015 Posts: 4
|
Hi,
we have Websphere MQ 7.1 running on zOS s390. Is there a way to check if JMS is enabled without contacting system admin?
Port 1414 is opened but I can not connect using specific app. |
|
Back to top |
|
 |
zpat |
Posted: Mon Feb 16, 2015 5:06 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
There is no such thing as JMS enablement on a MQ queue manager.
What linked exception value do you get? _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
misk0 |
Posted: Mon Feb 16, 2015 5:13 am Post subject: |
|
|
Newbie
Joined: 16 Feb 2015 Posts: 4
|
I'm getting this error:
MQJE001: Completion Code '2', Reason '2035' |
|
Back to top |
|
 |
zpat |
Posted: Mon Feb 16, 2015 5:25 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Not authorised to connect.
Check the syslog for the RACF violation message. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
misk0 |
Posted: Mon Feb 16, 2015 5:31 am Post subject: |
|
|
Newbie
Joined: 16 Feb 2015 Posts: 4
|
Does JMS requeires explicit authorization or it's enough that process runs under user which is authorized?
thank you |
|
Back to top |
|
 |
zpat |
Posted: Mon Feb 16, 2015 5:37 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
MQ doesn't care about JMS. A connection is a connection.
From Java/JMS applications, the id that is used to connect can be an issue, sometimes it comes through as blank, other times it is set by the application or inherited from the JVM.
Look at the RACF ICH408I message to see what id has been seen on z/OS. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
hughson |
Posted: Mon Feb 16, 2015 8:01 am Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
2035 could also be as a result of CHLAUTH, so check both the MSTR address space for RACF ICH408I messages, and the CHIN address space for CSQX messages which pertain to the time of your JMS connection failure.
If you don't know what they mean, post them here and there are plenty of experts who will know what they mean.
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Feb 16, 2015 4:52 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
misk0 wrote: |
Does JMS requeires explicit authorization or it's enough that process runs under user which is authorized?
thank you |
My experience is that if you did not have inq as authorization you will have to add it for JMS to work.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
misk0 |
Posted: Mon Feb 23, 2015 3:48 am Post subject: |
|
|
Newbie
Joined: 16 Feb 2015 Posts: 4
|
Thank you for all answers. I found in log (RACF ICH408I) that user sad.Insp does not exist.
That is because process is launched under this sad.Inspire user but I'm trying to connect to MQ with another user (PRINT).
The problem is that in manual of this application I try to use (Inspire Automation) I have instruction to set Initial Context to:
java.naming.initial.factory=com.ibm.mq.jms.context.WQMInitialContextFactory
but this class is used in MQ6, but I can not find which class I should use in MQ7?
I also try to set
java.naming.security.principal=PRINT but without success.
Do you an idea? Which ContextFactory I should use in MQ7? |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Feb 23, 2015 5:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Quote: |
java.naming.initial.factory=com.ibm.mq.jms.context.WQMInitialContextFactory |
This initial context is often used by IBM for demos. In my opinion you would be better served with a file based context...
The must use case for the context is if you use a J2EE app or J2EE client. In this case, should use the context of the app server, as defined by the app server provider. Don't know how Inspire Automation works and which type of context it uses...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|