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 » WSAD 5.0, How to setup QCF to a remote QMGR

Post new topic  Reply to topic
 WSAD 5.0, How to setup QCF to a remote QMGR « View previous topic :: View next topic » 
Author Message
vennela
PostPosted: Mon Sep 22, 2003 7:11 am    Post subject: WSAD 5.0, How to setup QCF to a remote QMGR Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I am trying to run a sample program in WSAD5.0. I don;t have MQ on the box I am running WSAD. The QMGR is remote. Where do I specify the QCF attributes so that I can point to the remote Queue Manager. This is the error I am getting

Code:

com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2012
   at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:172)
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1'


That's fine because there is no Queue Manager called 'WAS_localhost_server1' on this machine.


Thanks
-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vennela
PostPosted: Mon Sep 22, 2003 8:52 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

OK

I need to use the WSAD admin console to define JNDI objects.

Thanks
-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cnu
PostPosted: Fri Jan 13, 2006 2:47 am    Post subject: Reply with quote

Apprentice

Joined: 15 May 2004
Posts: 34

I am getting the same problem. Do I need to install mq and create a qmgr with this name WAS_localhost_server1? Thanks in advance
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jan 13, 2006 4:45 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

How do you know it's the same problem?

What version are you running?

What have you tried to do?

Did you try using the Administration Console?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
cnu
PostPosted: Fri Jan 13, 2006 11:45 am    Post subject: Reply with quote

Apprentice

Joined: 15 May 2004
Posts: 34

I am getting the same error when I run using the administrator server on Rational Applicational Developer 6.0.

com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2012
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:172)
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1'


Thanks alot.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jan 13, 2006 11:53 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Did you try the solution listed - to create the QCF using the Administration console versus the server config pane?

The version of your RAD is less important, by the way. The question is what version of WAS are you running inside RAD - RAD will let you create test instances of v5.0, v5.1 and v6 (and possibly v4.x, but I'm not positive).
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
cnu
PostPosted: Fri Jan 13, 2006 12:12 pm    Post subject: Reply with quote

Apprentice

Joined: 15 May 2004
Posts: 34

On administrator console under Websphere Jms Provider I have created Queue Connection factory and Que destinations.I am getting this error when I trying to run as java application.I am using the MQ simulator for java developers in jms tab. Thanks

javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:556)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2273)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1701)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:144)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:54)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:106)
at PointToPoint.main(PointToPoint.java:23)
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2012
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:249)
at com.ibm.mq.MQJDManagedConnectionFactoryJ11._createManagedConnection(MQJDManagedConnectionFactoryJ11.java:128)
at com.ibm.mq.MQJDManagedConnectionFactoryJ11.createManagedConnection(MQJDManagedConnectionFactoryJ11.java:146)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:171)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:754)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:688)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:469)
at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:52)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2200)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1701)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:144)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:54)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:106)
at PointToPoint.main(PointToPoint.java:23)
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 13, 2006 1:10 pm    Post subject: Reply with quote

Grand High Poobah

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

There are basically 3 ways to configure JMS in WAS through the admin console:

WAS JMS
WAS MQ JMS
Generic JMS provider

Add Default JMS provider Version 5.1 if running in WAS 6.0

Now you need to be able to determine which of those you need to use.
So if you explain somewhat your scenario we might just be able to guide you.

There is no point in going off half cocked and trying to configure one because you might be doing more harm than good if you chose the wrong one.

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
cnu
PostPosted: Fri Jan 13, 2006 1:13 pm    Post subject: Reply with quote

Apprentice

Joined: 15 May 2004
Posts: 34

Basically, I am trying to put a message on a queue using java stand alone application. I am using WAS 5.1 as application server.I need to know how to setup the queue. Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 13, 2006 1:35 pm    Post subject: Reply with quote

Grand High Poobah

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

Still the queue has to physically live somewhere.

So what JMS service provider are you using:
Embedded WAS provider, Websphere MQ, any other Provider ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
cnu
PostPosted: Fri Jan 13, 2006 1:42 pm    Post subject: Reply with quote

Apprentice

Joined: 15 May 2004
Posts: 34

I am using websphere jms provider on adminconsole. thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 13, 2006 1:52 pm    Post subject: Reply with quote

Grand High Poobah

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

cnu wrote:
I am using websphere jms provider on adminconsole. thanks

Consequences: you can only use it inside WAS.
You will have to setup the JMS JNDI and the actual objects.
Usually that setup is done on the JMS tab of the server properties and you do not HAVE to use the admin console. Make sure the status of the JMS engine at startup is started...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
cnu
PostPosted: Fri Jan 13, 2006 1:57 pm    Post subject: Reply with quote

Apprentice

Joined: 15 May 2004
Posts: 34

I setup the queueconnectionfactory, queue at the JMS tab of the server configaration, Still i am getting the same error.
Back to top
View user's profile Send private message
webspherical
PostPosted: Fri Jan 13, 2006 2:14 pm    Post subject: Reply with quote

Acolyte

Joined: 15 Aug 2005
Posts: 50

within the QCF resource page, are you specifying the QMGR, channel, port, client bindings etc? I believe thats what vennela did.

Also, your post above leads me to believe you are trying to do this from WSAD, you need to check allow administration console from the configuration tab in WSAD test server then restart the server and go to the actual admin console like Vennela and Jeff stated.
Back to top
View user's profile Send private message
cnu
PostPosted: Fri Jan 13, 2006 3:35 pm    Post subject: Reply with quote

Apprentice

Joined: 15 May 2004
Posts: 34

I changed the JMS provider to EMBEDDED MESSAGING in server configuration and i am using WebsphereMQJMS provider option in admin console to configure the QCF, and queue. I am getting the following error while starting the server.
[1/13/06 18:30:22:711 EST] 3080de50 JMSRegistrati A MSGS0602I: WebSphere Embedded Messaging Client only has been installed
[1/13/06 18:30:27:177 EST] 3080de50 JMSEmbeddedPr A MSGS0050I: Starting the Queue Manager
[1/13/06 18:30:28:339 EST] 3080de50 QueueManagerM W MSGS0117W: End Queue Manager trace failed with exception: com.ibm.ws.process.exception.InvalidExecutableException: PROC0004E: Executable: [endmqtrc] does not appear to be a valid executable. Process could not be created. Thanks
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 Java / JMS » WSAD 5.0, How to setup QCF to a remote QMGR
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.