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 » WebSphere Message Broker (ACE) Support » Adding the Jar files to CLASSPATH in Linux

Post new topic  Reply to topic
 Adding the Jar files to CLASSPATH in Linux « View previous topic :: View next topic » 
Author Message
chenna.hari
PostPosted: Mon Aug 23, 2010 11:59 pm    Post subject: Adding the Jar files to CLASSPATH in Linux Reply with quote

Centurion

Joined: 21 Mar 2009
Posts: 103

i have java program to find the Queue depth. java program refers to libraries present in /opt/mqm/java/lib.

I am calling this java program from ESQL. i dont want to deploy this jar files to the execution group. instead i would like to create the jar file for this java program and upload all jar files in /opt/ibm/mqsi/shared-classes folder.

but as MQ util jar files are already present in the /opt/mqm/java/lib path/, i dont want to upload these MQ jar files in /opt/ibm/mqsi/shared-classes. instead i would like to add these jar files to classpath env variable. and i will upload only one jar file i.e. generated from Queue depth java program.

my question is:

Can any one help how to add these required /opt/mqm/java/lib jar files to CLASSPATH permanently in Linux????
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Aug 24, 2010 12:42 am    Post subject: Reply with quote

Grand High Poobah

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

You are going completely the wrong way about this.
There is likely a global design issue problem here. Can you please answer the following question:
Why are you looking for the qdepth in a flow?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
chenna.hari
PostPosted: Tue Aug 24, 2010 12:45 am    Post subject: Reply with quote

Centurion

Joined: 21 Mar 2009
Posts: 103

fjb_saper wrote:
You are going completely the wrong way about this.
There is likely a global design issue problem here. Can you please answer the following question:
Why are you looking for the qdepth in a flow?



we have a requirement to monitor the error Queue and send email notification.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Aug 24, 2010 12:50 am    Post subject: Reply with quote

Grand High Poobah

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

chenna.hari wrote:
fjb_saper wrote:
You are going completely the wrong way about this.
There is likely a global design issue problem here. Can you please answer the following question:
Why are you looking for the qdepth in a flow?


we have a requirement to monitor the error Queue and send email notification.

This is what monitoring software is for (BMC (QPasa), Tivoli(Omegamon), etc...). The broker is not to be used for such a task.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Aug 24, 2010 1:53 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Also, there's nothing different about putting classes on the CLASSPATH for Broker than for anything else.

And you shouldn't anyway. There are a number of reasons why shared-classes is a better choice.

Thirdly, whether you put the JAR on CLASSPATH or not doesn't change anything about whether classes that are included in the jar are loaded or not. If you don't want to use MQ classes that are in your JAR, then simply don't PUT them in your JAR.

And DON'T use Broker to monitor BROKER.
Back to top
View user's profile Send private message
chenna.hari
PostPosted: Tue Aug 24, 2010 2:34 am    Post subject: Reply with quote

Centurion

Joined: 21 Mar 2009
Posts: 103

but these tools are need to purchase. so we are doing this approach..

your suggestion any open source monitoring tools available???

but any way how to update the classpath
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 24, 2010 3:42 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I don't understand.

You update the CLASSPATH by updating the CLASSPATH.

There's nothing more to say, really.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 24, 2010 4:44 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Okay.

There is more to say.

Again, DO NOT USE BROKER TO MONITOR ITSELF.

If you really insist on writing your own code to do your own monitoring, because you are mistaking cost for expense, then write stand alone code.

There are LOTS of reasons why ALL of the monitoring tools out there do not run in the container they are monitoring.

If you do this, you will experience LOTS of trouble. YOU HAVE BEEN WARNED.

Secondly.

DO NOT USE CLASSPATH.

Shared-classes is easier, better and more visible. And safer, too.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Aug 24, 2010 5:49 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Quote:
but these tools are need to purchase. so we are doing this approach.. your suggestion any open source monitoring tools available???


I saw a guy try to change the oil in his car with a hammer once.

My dad used to tell me: choose the right tool for the job.

Toolman Tim Taylor from Home Improvement always got bested by his co-hort, Al.

I would encourage you to take a holistic view of the world, and implement a strategic solution that manages application state the right way.

My favorite always was HP OpenView which is now HP Operations Manager software. If you have money, you could buy Tivoli.

If you have no money, you could try JMX tooling (jconsole) that is a standard part of all JREs.

See this link: "Using JConsole to Monitor applications"
http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html

How long have you been developing Java applications? I'm surprised you did not know about jconsole?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue Aug 24, 2010 5:52 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

lancelotlinc wrote:
I saw a guy try to change the oil in his car with a hammer once.


This event seems to have made an impression:

http://www.mqseries.net/phpBB2/viewtopic.php?p=284228

As does the TV show. Do you identify with Al?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Aug 24, 2010 6:11 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Quote:
Do you identify with Al?


I am more the Tim-type. My brother, 3 years junior, would be more the Al-type.

contact admin that more closely represent me in real life: Caveman Maurice (Kate's old boyfriend) (you should see the ABC Cavemen episodes on youtube for this info), Emeril Lagasse (famous chef), Ronald Reagan, and Doug Heffernan (IPS delivery driver).
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
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 » WebSphere Message Broker (ACE) Support » Adding the Jar files to CLASSPATH in Linux
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.