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 Java / JMS » Check if JMS enabled on MQ

Post new topic  Reply to topic
 Check if JMS enabled on MQ « View previous topic :: View next topic » 
Author Message
misk0
PostPosted: Mon Feb 16, 2015 4:43 am    Post subject: Check if JMS enabled on MQ Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Mon Feb 16, 2015 5:06 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
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
View user's profile Send private message
misk0
PostPosted: Mon Feb 16, 2015 5:13 am    Post subject: Reply with quote

Newbie

Joined: 16 Feb 2015
Posts: 4

I'm getting this error:
MQJE001: Completion Code '2', Reason '2035'
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Feb 16, 2015 5:25 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
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
View user's profile Send private message
misk0
PostPosted: Mon Feb 16, 2015 5:31 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Mon Feb 16, 2015 5:37 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
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
View user's profile Send private message
hughson
PostPosted: Mon Feb 16, 2015 8:01 am    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Mon Feb 16, 2015 4:52 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
misk0
PostPosted: Mon Feb 23, 2015 3:48 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 23, 2015 5:49 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Check if JMS enabled on MQ
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.