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 » JMSAdmin - verify object creation

Post new topic  Reply to topic
 JMSAdmin - verify object creation « View previous topic :: View next topic » 
Author Message
webspherical
PostPosted: Mon Jul 24, 2006 8:47 am    Post subject: JMSAdmin - verify object creation Reply with quote

Acolyte

Joined: 15 Aug 2005
Posts: 50

How can you verify jms objects such as QCF etc are actually created after running JMSadmin? is ther a file somewhere that holds these values?

thanks!
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jul 24, 2006 9:14 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The definitions are stored in the JNDI context you configured it to connect to!

If you have configured JMSAdmin to talk to WAS v5 or later, then you have done the wrong thing. JMSAdmin creates resources in a transient context, not the persistent context that the WAS admin console/wsadmin scripting will access.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
webspherical
PostPosted: Mon Jul 24, 2006 9:40 am    Post subject: Reply with quote

Acolyte

Joined: 15 Aug 2005
Posts: 50

thanks Jeff,

Im actually not running against WAS or any app server just locally on my windows xp laptop. things seem to work fine but not sure where the definitions are persisted and read from..
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jul 24, 2006 10:00 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

webspherical wrote:
not sure where the definitions are persisted and read from..


Again, you have to have configured JMSAdmin to tell it where to store and retrieve these definitions.

So the answer is, they are persisted and read from wherever you told it to persist them.

If you're not sure where that is, you're not sure what you've actually done.

So go back and read the documentation again.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
webspherical
PostPosted: Mon Jul 24, 2006 5:30 pm    Post subject: Reply with quote

Acolyte

Joined: 15 Aug 2005
Posts: 50

There is nothing I could say that you have not already heard being the jerk you are..but anyway..buzz off...


Back to my question..

If i was running against WAS i could clearly see in the admin console or even in the resources.xml file where my queueconnectionfactory after creation but its but running the jmsadmin against a standalone windows that has me scratching my head as to where they are persited.

unlike the jerk who keeps bugging me seems to understand, it is not like My program goes out and reads the config file each time i run the program to see where the qcf is..it must be reading it from somewhere else, either in the MQ explorer? or a file that was created FROM ME RUNNING THE JMSadmin againts the config file i made...just not sure where

any friendly person that has a hunch, drop me a line. i have read through manuals and if my question seems a bit rudimentary, i apologize, but thats why i would post right?

thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jul 24, 2006 5:34 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/jmscfg.htm

Quote:
These properties are set in a configuration file. When you invoke the tool, you can specify this configuration by using the -cfg command-line parameter, as described in Invoking the administration tool. If you do not specify a configuration file name, the tool attempts to load the default configuration file (JMSAdmin.config). It looks for this file first in the current directory, and then in the <MQ_JAVA_INSTALL_PATH>/bin directory, where <MQ_JAVA_INSTALL_PATH> is the path to your WebSphere MQ JMS installation.

The configuration file is a plain-text file that consists of a set of key-value pairs, separated by =. This is shown in the following example:

#Set the service provider
INITIAL_CONTEXT_FACTORY=com.sun.jndi.ldap.LdapCtxFactory
#Set the initial context
PROVIDER_URL=ldap://polaris/o=ibm_us,c=us
#Set the authentication type
SECURITY_AUTHENTICATION=none

(A # in the first column of the line indicates a comment, or a line that is not used.)

The installation comes with a sample configuration file that is called JMSAdmin.config, and is found in the <MQ_JAVA_INSTALL_PATH>/bin directory. Edit this file to suit the setup of your system.

_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 24, 2006 6:25 pm    Post subject: Reply with quote

Grand High Poobah

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

And just in case you couldn't make it to the end of jeff's post:
Quote:
The installation comes with a sample configuration file that is called JMSAdmin.config, and is found in the <MQ_JAVA_INSTALL_PATH>/bin directory. Edit this file to suit the setup of your system.


Now you know why jeff told you to READ the MANUAL.

So unless you tell us what the content of that file is our answer will be:
Well it depends... we really don't have enough elements to give you an inspired answer...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
webspherical
PostPosted: Tue Jul 25, 2006 8:15 am    Post subject: Reply with quote

Acolyte

Joined: 15 Aug 2005
Posts: 50

Quote:

INITIAL_CONTEXT_FACTORY=com.ibm.mq.jms.context.WMQInitialContextFactory

PROVIDER_URL=localhost:1414/SYSTEM.DEF.SVRCONN


i understand how to set these..you follow me right?

so where is it persisted from this? what is the file location.. it is a very simple question... I read the mans and understand them. but no where does it mention the location of file location..
Back to top
View user's profile Send private message
webspherical
PostPosted: Tue Jul 25, 2006 8:20 am    Post subject: Reply with quote

Acolyte

Joined: 15 Aug 2005
Posts: 50

after doing checks on time/date stamps etc..

i managed to find the file hidden deep in the mq dir..

C:\Program Files\IBM\WebSphere MQ\Qmgrs\QMGR1\QUEUES\SYSTEM!MQCONTEXT!ADMIN!QUEUE



--really, just say you dont know the answer.....
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 25, 2006 8:21 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you use the WMQInitialContextFactory, then there are no files anywhere.

What this context does is use PCF messages to configure these resources directly on the queue manager.

There should be more information about this particular Initial Context in the documentation for the ME01 support pack that it came from.

Do you understand that we couldn't even tell you *that* much until you told us which context you were using? Every context stores the data in a different place - that's the point of the context!
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
webspherical
PostPosted: Tue Jul 25, 2006 8:22 am    Post subject: Reply with quote

Acolyte

Joined: 15 Aug 2005
Posts: 50

you are funny..

and wrong again...

like i said, it is persisted here..

C:\Program Files\IBM\WebSphere MQ\Qmgrs\QMGR1\QUEUES\SYSTEM!MQCONTEXT!ADMIN!QUEUE
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 25, 2006 8:26 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

webspherical wrote:
after doing checks on time/date stamps etc..

i managed to find the file hidden deep in the mq dir..

C:\Program Files\IBM\WebSphere MQ\Qmgrs\QMGR1\QUEUES\SYSTEM!MQCONTEXT!ADMIN!QUEUE



--really, just say you dont know the answer.....


We do know the answer.

And we did give you the answer.

The answer to "Where does JMSAdmin store the definitions it creates?" is "in the context that JMSAdmin is configured to talk to". And we can't tell you where that is until you tell us what you configured.

How much longer do you want to continue harassing people who are giving you free help? Does that really seem like a good idea to you, something polite to do?

And that is NOT the file you think it is. If you do *anything* with that file, you are in for big trouble.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 25, 2006 8:33 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

webspherical wrote:
you are funny..

and wrong again...

like i said, it is persisted here..

C:\Program Files\IBM\WebSphere MQ\Qmgrs\QMGR1\QUEUES\SYSTEM!MQCONTEXT!ADMIN!QUEUE


1) People tell me I'm funny all the time.
2) It happens that I'm not wrong in this case. Maybe I got lucky this one time out of more than 10,000.
3) That's not a normal file. That's the data storage for an MQ Queue, that happens to be named "SYSTEM.MQCONTEXT.ADMIN.QUEUE". If you point your MQExplorer at "QMGR1", you will see that there is a queue called "SYSTEM.MQCONTEXT.ADMIN.QUEUE". And if you browse that queue, you will see some number of messages that hold the context information you're talking about. And if you MOVE or EDIT or otherwise TOUCH that FILE, you will DAMAGE the QUEUE, and your CONTEXT won't WORK.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 25, 2006 12:10 pm    Post subject: Reply with quote

Grand High Poobah

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

On top of this if you are at beginner level and outside of a Web server (no J2EE environment) we strongly recommend the use of a file context.
See the JMSAdmin documentation for setting up one of those.

Enjoy
_________________
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 » JMSAdmin - verify object creation
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.