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 » MS0B - How to use.

Post new topic  Reply to topic
 MS0B - How to use. « View previous topic :: View next topic » 
Author Message
krypton
PostPosted: Mon Sep 06, 2010 5:26 am    Post subject: MS0B - How to use. Reply with quote

Disciple

Joined: 14 Mar 2010
Posts: 186

Has anyone used the below mentioned PCF Support pacs (MS0B), I want to run it on windows server MQ V7. I am not much familiar with Java, a little guidance to run this program would be of great help.

http://www-01.ibm.com/support/docview.wss?uid=swg24000668

Thank you very much in advance.

Regards
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 06, 2010 6:33 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

If you don't know Java, this supportPac won't help.

You don't need this supportPac with v7. It's included.

What this supportPac provided and now is built into the product is an ability to write Java Code that sends and receives PCF messages in a Java object-oriented manner.

So if you don't know Java, this function won't help you.
Back to top
View user's profile Send private message
krypton
PostPosted: Mon Sep 06, 2010 7:00 am    Post subject: Reply with quote

Disciple

Joined: 14 Mar 2010
Posts: 186

mqjeff wrote:

Quote:
If you don't know Java, this supportPac won't help.

You don't need this supportPac with v7. It's included.

What this supportPac provided and now is built into the product is an ability to write Java Code that sends and receives PCF messages in a Java object-oriented manner.

So if you don't know Java, this function won't help you


Thanks Jeff for the reply, I am more from an admin background then from a programming. Still I want to use PCF commands to simplify the administrations of our queue manager networks. What do you think would be the best way of doing it without relying on any programming language.

Earlier I thought MS0B is a already build support pac with ready to use feature, I was not aware it requires a knowledge of Java.
_________________
Dreams are not something which you watch when you are asleep,it is something which doesn't let you sleep.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Sep 06, 2010 7:53 am    Post subject: Reply with quote

Grand High Poobah

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

krypton wrote:
mqjeff wrote:

Quote:
If you don't know Java, this supportPac won't help.

You don't need this supportPac with v7. It's included.

What this supportPac provided and now is built into the product is an ability to write Java Code that sends and receives PCF messages in a Java object-oriented manner.

So if you don't know Java, this function won't help you


Thanks Jeff for the reply, I am more from an admin background then from a programming. Still I want to use PCF commands to simplify the administrations of our queue manager networks. What do you think would be the best way of doing it without relying on any programming language.

Earlier I thought MS0B is a already build support pac with ready to use feature, I was not aware it requires a knowledge of Java.

What support packs do you currently use for your MQ Administration needs?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Mon Sep 06, 2010 8:00 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can't really use PCF messages without using a Programming Language. That's why they are "Programmable Command Format" messages.

You can use any number of things that use PCF messages on your behalf. If you're used to MQSC, then you can either use MS0S or MO72 to use it from a central computer talking to many machines.

If you're used to MQExplorer in general, you can look at things like MS0P to provide you additional monitoring/management functions, although it's not a full fledged monitoring tool that maintains monitoring history and lets you generate alerts.

You should also step back and consider if you should instead invest in a real monitoring/management tool rather than cobbling up some scripts using PCF or relying on supportPacs that may not be actually supported very well and may only provide bits and pieces of a total solution.
Back to top
View user's profile Send private message
krypton
PostPosted: Mon Sep 06, 2010 8:40 am    Post subject: Reply with quote

Disciple

Joined: 14 Mar 2010
Posts: 186

Quote:
You can't really use PCF messages without using a Programming Language. That's why they are "Programmable Command Format" messages.

You can use any number of things that use PCF messages on your behalf. If you're used to MQSC, then you can either use MS0S or MO72 to use it from a central computer talking to many machines.

If you're used to MQExplorer in general, you can look at things like MS0P to provide you additional monitoring/management functions, although it's not a full fledged monitoring tool that maintains monitoring history and lets you generate alerts.

You should also step back and consider if you should instead invest in a real monitoring/management tool rather than cobbling up some scripts using PCF or relying on supportPacs that may not be actually supported very well and may only provide bits and pieces of a total solution.


Thanks Jeff I will explore them.

To answer fjb_saper, we dont use any particular support pacs to manage our infrastructure, mostly it is manual work. Only logging to the server when the problem comes which is not a correct approach, wanted to explore some free of costs solutions to centralize/simplify Admin process.
MS0B sounded a good option but then I have to struggle first with Java before I go for it.

Anyway thanks for your reply.

best regards,
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Sep 06, 2010 9:24 am    Post subject: Reply with quote

Grand High Poobah

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

Jeff's advice is sound. Look into those support packs.
You might also want to look at support pack MO71...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
KIT_INC
PostPosted: Sun May 22, 2011 2:21 pm    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

Hi fjb_saper, you said, "You don't need this supportPac with v7. It's included. " I have just installed trial MQ V7. I got "Exception in thread "main" java.lang.NoClassDefFoundError: PCFMessageListQueueDe
pth" and running other samples from MS0B. I am in the process of trying to find out if there is something wrong with my V7 or MS0B actually does not run in V7.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun May 22, 2011 5:26 pm    Post subject: Reply with quote

Grand High Poobah

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

KIT_INC wrote:
Hi fjb_saper, you said, "You don't need this supportPac with v7. It's included. " I have just installed trial MQ V7. I got "Exception in thread "main" java.lang.NoClassDefFoundError: PCFMessageListQueueDe
pth" and running other samples from MS0B. I am in the process of trying to find out if there is something wrong with my V7 or MS0B actually does not run in V7.

You need to make sure you install the full client with Java packages.
I would expect the jar to be there but you still have to add it to your classpath.

IBM can tell you whether it is included in the server or in the client distribution.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
KIT_INC
PostPosted: Mon May 23, 2011 4:06 am    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

Hi fjb_saper, thanks for the help.

I copied one of the samples from MS0B into a directory on my MQ V7 test PC and set up what I think is the correct classpath. But I am getting the ClassNotFoundException , any idea. A second pair of eyes always help after I have tried the same thing too many times.

Directory of C:\MQ_PCF

05/23/2011 07:34 AM <DIR> .
05/23/2011 07:34 AM <DIR> ..
12/03/2008 01:14 PM 2,792 PCFMessageListQManagerAttrs.java
1 File(s) 2,792 bytes
2 Dir(s) 57,717,260,288 bytes free


Here is my CLASSPATH
C:\MQ_PCF>ECHO %CLASSPATH%
C:\MQ_PCF;D:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;D:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mq.jar;D:\Program Files\IBM\WebSphere MQ\java\lib\com.ibm.mq.pcf.jar

Here is the exception
C:\MQ_PCF>java PCFMessageListQManagerAttrs QM1
Exception in thread "main" java.lang.NoClassDefFoundError: PCFMessageListQManagerAttrs
Caused by: java.lang.ClassNotFoundException: PCFMessageListQManagerAttrs
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: PCFMessageListQManagerAttrs. Program will exit.

Here is my Java and MQ version
C:\MQ_PCF>java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)

C:\MQ_PCF>dspmqver
Name: WebSphere MQ
Version: 7.0.1.5
CMVC level: p701-105-110419
BuildType: IKAP - (Production)
Back to top
View user's profile Send private message
KIT_INC
PostPosted: Mon May 23, 2011 4:19 am    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

Wait a second. I am not a java person. I think I cannot execute a .java file. I need to compile it to a .class. This may be it. I will update later.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon May 23, 2011 4:46 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

KIT_INC wrote:
I think I cannot execute a .java file. I need to compile it to a .class.





javac <.java file>
Back to top
View user's profile Send private message
ramires
PostPosted: Mon May 23, 2011 6:01 am    Post subject: Reply with quote

Knight

Joined: 24 Jun 2001
Posts: 523
Location: Portugal - Lisboa

KIT_INC wrote:
Wait a second. I am not a java person. I think I cannot execute a .java file. I need to compile it to a .class. This may be it. I will update later.


Yes, as mqjeff says, you need to compile the java source. Then you can run the class file like:

java PCFMessageListQManagerAttrs QM1

Also need to add local directory from where you run this to the classpath.
_________________
Obrigado / Thanks you
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 » MS0B - How to use.
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.