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 » General Discussion » PubSub Applications and Some Confusion

Post new topic  Reply to topic Goto page 1, 2  Next
 PubSub Applications and Some Confusion « View previous topic :: View next topic » 
Author Message
applejuice
PostPosted: Fri May 19, 2006 10:34 am    Post subject: PubSub Applications and Some Confusion Reply with quote

Novice

Joined: 19 May 2006
Posts: 12

Greetings,

Kinda new to this technology so excuse my ignorance. I have a high level knowledge of what MQ is and what purpose it serves.

Long story short, I downloaded two java application from IBM site (mqjmspub.java and mqjmssub.java) to better understand how this technology works. So wondering around aimlessly I ran into IBM WebSphere MQ, Version 6.0.1 windows client. so I installed in my machine in this location (just a default installation) C:\Program Files\IBM\WebSphere MQ\

Then I followed the procedure copy-FAQ to compile the two java files mentioned above (REF: http://www-304.ibm.com/jct09002c/isv/tech/faq/individual.jsp?oid=1:83352 )

Everything compiled. But when I run the mqjmspub/sub I get
Code:
javax/jms/JMSException


Is there any other thing I need install? I'd be truely grateful if someone can give me a hand to make this sample programs publish/subscript to a MQ

I'm listing the screen dump below (sorry)
-------------------------------------------------------------------------------------

Code:
C:\JeffMQ>dir
 Volume in drive C is WXP-System
 Volume Serial Number is 24BD-2E98

 Directory of C:\JeffMQ

19-May-2006  10:19 AM    <DIR>          .
19-May-2006  10:19 AM    <DIR>          ..
21-Oct-2005  04:56 PM           426,710 com.ibm.mq.jar
21-Oct-2005  04:56 PM         1,235,155 com.ibm.mqjms.jar
25-May-2005  08:54 PM            17,978 connector.jar
25-May-2005  08:54 PM            22,769 fscontext.jar
25-May-2005  08:54 PM            25,998 jms.jar
25-May-2005  08:54 PM            98,496 jndi.jar
25-May-2005  08:54 PM             8,809 jta.jar
19-May-2006  09:43 AM             5,551 mqjmspub.class
19-May-2006  09:42 AM            16,647 mqjmspub.java
19-May-2006  10:18 AM                93 mqjmspub.properties
19-May-2006  09:44 AM             6,388 mqjmssub.class
19-May-2006  09:41 AM            18,672 mqjmssub.java
19-May-2006  10:19 AM               123 mqjmssub.properties
25-May-2005  08:54 PM            77,116 providerutil.jar
              14 File(s)      1,960,505 bytes
               2 Dir(s)   4,456,484,864 bytes free

C:\JeffMQ>java mqjmspub
Exception in thread "main" java.lang.NoClassDefFoundError: mqjmspub

C:\JeffMQ>java mqjmspub 5000;arif;Looks like Jeff's PubSub program is going to w
ork
Exception in thread "main" java.lang.NoClassDefFoundError: mqjmspub

C:\JeffMQ>java mqjmspub.class
Exception in thread "main" java.lang.NoClassDefFoundError: mqjmspub/class

C:\JeffMQ>java mqjmssub
Exception in thread "main" java.lang.NoClassDefFoundError: mqjmssub

C:\JeffMQ>java mqjmspub -icf com.sun.jndi.fscontext.RefFSContextFactory -url file:/C:/JMSConfig
Exception in thread "main" java.lang.NoClassDefFoundError: mqjmspub

C:\JeffMQ>java mqjmspub -icf com.sun.jndi.fscontext.RefFSContextFactory -url fil
e:/C:/JMSConfig -tcf \\pubsub\\ma0cTCF
Exception in thread "main" java.lang.NoClassDefFoundError: mqjmspub

C:\JeffMQ>java mqjmspub -icf com.sun.jndi.fscontext.RefFSContextFactory -url file:/C:/JMSConfig -tcf \\pubsub\\ma0cTCF -t sometopic
Exception in thread "main" java.lang.NoClassDefFoundError: mqjmspub

C:\JeffMQ>java mqjmspub.class -icf com.sun.jndi.fscontext.RefFSContextFactory -u
rl file:/C:/JMSConfig -tcf \\pubsub\\ma0cTCF -t sometopic
Exception in thread "main" java.lang.NoClassDefFoundError: mqjmspub/class

C:\JeffMQ>javac mqjmspub.java

C:\JeffMQ>javac mqjmssub.java


C:\JeffMQ>java -classpath . mqjmspub
Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/JMSException



C:\JeffMQ>java mqjmspub -icf com.sun.jndi.fscontext.RefFSContextFactory -url fil
e:/C:/JMSConfig -tcf \\pubsub\\ma0cTCF -t sometopic
Exception in thread "main" java.lang.NoClassDefFoundError: mqjmspub

C:\JeffMQ>java -classpath . mqjmspub -icf com.sun.jndi.fscontext.RefFSContextFac
tory -url file:/C:/JMSConfig -tcf \\pubsub\\ma0cTCF -t sometopic
Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/JMSExceptio
n

C:\JeffMQ>set MQSERVER=SYSTEM.DEF.SVRCONN/TCP/lesentsvr06(1414)

C:\JeffMQ>java -classpath . mqjmspub -icf com.sun.jndi.fscontext.RefFSContextFac
tory -url file:/C:/JMSConfig -tcf \\pubsub\\ma0cTCF -t sometopic
Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/JMSException


----------------------------------------------------------------------------------------------------


5724-H72, 5655-L82, 5724-L26 (c) Copyright IBM Corp. 2002,2005. All Rights Reser
ved.
Starting Websphere MQ classes for Java(tm) Message Service Administration

InitCtx> def ctx(pubsub)

InitCtx> chg ctx(pubsub)

InitCtx/pubsub> def tcf(ma0cTCF) qmgr(<default queue manager name>) clientid(sam
ple)

InitCtx/pubsub> def t(ma0cTopic) topic(arif)

InitCtx/pubsub> alt t(ma0cTopic) BROKERDURSUBQ(SYSTEM.JMS.D.ARIF.*)

InitCtx/pubsub> alt t(ma0cTopic) DESCRIPTION(Arif's Testing for Jeff Dean's exam
ple programs mqjmspub_mqjmssub)

InitCtx/pubsub> dis tcf(ma0cTCF)

    BROKERSUBQ(SYSTEM.JMS.ND.SUBSCRIBER.QUEUE)
    SYNCPOINTALLGETS(NO)
    PUBACKINT(25)
    POLLINGINT(5000)
    RECEIVEISOLATION(COMMITTED)
    MSGSELECTION(CLIENT)
    OUTCOMENOTIFICATION(YES)
    OPTIMISTICPUBLICATION(NO)
    BROKERCONQ(SYSTEM.BROKER.CONTROL.QUEUE)
    USECONNPOOLING(YES)
    CLONESUPP(DISABLED)
    SPARSESUBS(NO)
    VERSION(6)
    BROKERCCSUBQ(SYSTEM.JMS.ND.CC.SUBSCRIBER.QUEUE)
    PROCESSDURATION(UNKNOWN)
    CONNOPT(STANDARD)
    BROKERQMGR()
    FAILIFQUIESCE(YES)
    CLEANUP(SAFE)
    RESCANINT(5000)
    MSGBATCHSZ(10)
    BROKERPUBQ(SYSTEM.BROKER.DEFAULT.STREAM)
    QMANAGER(<default queue manager name>)
    BROKERVER(V1)
    CLEANUPINT(3600000)
    STATREFRESHINT(60000)
    SUBSTORE(MIGRATE)
    TRANSPORT(BIND)
    TARGCLIENTMATCHING(YES)
    CLIENTID(sample)

InitCtx/pubsub> dis t(ma0cTopic)

    BROKERPUBQMGR()
    FAILIFQUIESCE(YES)
    BROKERDURSUBQ(SYSTEM.JMS.D.ARIF.*)
    TOPIC(arif)
    BROKERPUBQ()
    BROKERVER(V1)
    PERSISTENCE(APP)
    CCSID(1208)
    DESCRIPTION(Arif's Testing for Jeff Dean's example programs mqjmspub_mqjmssu
b)
    TARGCLIENT(JMS)
    ENCODING(NATIVE)
    BROKERCCDURSUBQ(SYSTEM.JMS.D.CC.SUBSCRIBER.QUEUE)
    MULTICAST(ASCF)
    PRIORITY(APP)
    EXPIRY(APP)
    VERSION(6)

InitCtx/pubsub>


--------------------------------------------------------------------------------------
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri May 19, 2006 10:45 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Come on - did you check your CLASSPATH?

1) You need to have the MQ jar files in your CLASSPATH. On Windows, this should have been done for you during the install process.

2) Rule #1 about running Java programs from a local directory: You need to have a '.' in your CLASSPATH to tell the JVM to look in your local directory.


Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
applejuice
PostPosted: Fri May 19, 2006 11:02 am    Post subject: Reply with quote

Novice

Joined: 19 May 2006
Posts: 12

Sure I did, If I didn't if wouldn't have been able to compile my java files. Unless by MQ jar files you meant something other than these (Please look at my screen dump)

com.ibm.mq.jar
com.ibm.mqjms.jar
connector.jar
fscontext.jar
jms.jar
jndi.jar
jta.jar
providerutil.jar

and this is what my PATH variable looks like:

C:\Program Files\Nmap;C:\Program Files\Java\jdk1.5.0_06\bin;C:\Program Files\Research In Motion\BlackBerry JDE 4.1.0\bin;C:\Program Files\IBM\WebSphere MQ\Tools\Java\base;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mq.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jta.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jndi.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\connector.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\providerutil.jar
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri May 19, 2006 11:20 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Please re-read my comments about Rule #1 above.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
vennela
PostPosted: Fri May 19, 2006 11:36 am    Post subject: Reply with quote

Jedi Knight

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

Also java is case sensitive
MQJMSPubSub is not the same as mqjmspubsub
Back to top
View user's profile Send private message Send e-mail Visit poster's website
applejuice
PostPosted: Fri May 19, 2006 11:48 am    Post subject: Reply with quote

Novice

Joined: 19 May 2006
Posts: 12

sorry to post my screen dump once again.


Code:
C:\JeffMQ>java -classpath . mqjmspub -icf com.sun.jndi.fscontext.RefFSContextFac
tory -url file:/C:/JMSConfig -tcf \\pubsub\\ma0cTCF -t sometopic
Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/JMSException


do you see the dot?
Back to top
View user's profile Send private message
vennela
PostPosted: Fri May 19, 2006 12:15 pm    Post subject: Reply with quote

Jedi Knight

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

Can you tell us the following
What do you get when you do
echo %CLASSPATH%
Also dir
Back to top
View user's profile Send private message Send e-mail Visit poster's website
applejuice
PostPosted: Fri May 19, 2006 12:24 pm    Post subject: Reply with quote

Novice

Joined: 19 May 2006
Posts: 12

I hate to say this guys but would be kind enough to actually read my first post. the screen dumps are all there. With all due respect I hate repeating myself

Here's the output of classpath and dir (again)

Code:
C:\JeffMQ>dir
 Volume in drive C is WXP-System
 Volume Serial Number is 24BD-2E98

 Directory of C:\JeffMQ

19-May-2006  10:19 AM    <DIR>          .
19-May-2006  10:19 AM    <DIR>          ..
21-Oct-2005  04:56 PM           426,710 com.ibm.mq.jar
21-Oct-2005  04:56 PM         1,235,155 com.ibm.mqjms.jar
25-May-2005  08:54 PM            17,978 connector.jar
25-May-2005  08:54 PM            22,769 fscontext.jar
25-May-2005  08:54 PM            25,998 jms.jar
25-May-2005  08:54 PM            98,496 jndi.jar
25-May-2005  08:54 PM             8,809 jta.jar
19-May-2006  02:58 PM             5,551 mqjmspub.class
19-May-2006  09:42 AM            16,647 mqjmspub.java
19-May-2006  10:18 AM                93 mqjmspub.properties
19-May-2006  02:58 PM             6,388 mqjmssub.class
19-May-2006  09:41 AM            18,672 mqjmssub.java
19-May-2006  10:19 AM               123 mqjmssub.properties
25-May-2005  08:54 PM            77,116 providerutil.jar
              14 File(s)      1,960,505 bytes
               2 Dir(s)   4,441,346,048 bytes free

C:\JeffMQ>echo %CLASSPATH%
C:\Program Files\IBM\WebSphere MQ\Java\lib\providerutil.jar;C:\Program Files\IBM
\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\WebSphere MQ\Java\
lib\ldap.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jta.jar;C:\Program Files
\IBM\WebSphere MQ\Java\lib\jndi.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\j
ms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\connector.jar;C:\Program Files
\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\Program Files\IBM\WebSphere MQ\Java\
lib\com.ibm.mq.jar;C:\Program Files\Java\j2re1.4.2_08\lib\ext\QTJava.zip
Back to top
View user's profile Send private message
vennela
PostPosted: Fri May 19, 2006 12:28 pm    Post subject: Reply with quote

Jedi Knight

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

applejuice wrote:
I hate to say this guys but would be kind enough to actually read my first post. the screen dumps are all there. With all due respect I hate repeating myself

Here's the output of classpath and dir (again)

Sorry about that. I forgot it is Firday evening. I'll be careful next time before posting.

Now, do this
set CLASSPATH=.;..;C:\JeffMQ;%CLASSPATH%

and then do
Code:
java mqjmssub
Back to top
View user's profile Send private message Send e-mail Visit poster's website
applejuice
PostPosted: Fri May 19, 2006 12:48 pm    Post subject: Reply with quote

Novice

Joined: 19 May 2006
Posts: 12

Cool. Thanks It improved the situation a little but after starting the appicaltion I get all kinds of exception (runtime may be) here's the screen dump

Code:
C:\JeffMQ>java mqjmspub
mqjmspub started....
java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:872)
        at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:228)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:222)
        at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:70)
        at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:492)
        at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:168)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:179)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:215)
        at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)
        at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168)
        at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:772)
        at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:697)
        at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:657)
        at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:153)
        at com.ibm.mq.MQQueueManager.<init>MQQueueManager.java:526)
        at com.ibm.mq.MQSPIQueueManager.<init>MQSPIQueueManager.java:69)
        at com.ibm.mq.jms.MQConnection.createQMMQConnection.java:2007)
        at com.ibm.mq.jms.MQConnection.createQMNonXAMQConnection.java:1496)
        at com.ibm.mq.jms.MQTopicConnection.<init>(MQTopicConnection.java:224)
        at com.ibm.mq.jms.MQTopicConnection.<init>(MQTopicConnection.java:92)
        at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnectionMQTopicConnectionFactory.java:361)
        at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTopicConnectionFactory.java:309)
        at com.ibm.mq.jms.MQTopicConnectionFactory.createTopicConnection(MQTopicConnectionFactory.java:198)
        at mqjmspub.run(mqjmspub.java:207)
        at java.lang.Thread.run(Thread.java:534)

Then the subscriber

Code:
C:\JeffMQ>java mqjmssub
mqjmssub started....
Exception in thread "main" java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.l
ibrary.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:872)
        at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:228)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:222)
        at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:70)
        at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:492)
        at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:
168)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnec
tion(MQBindingsManagedConnectionFactoryJ11.java:179)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnect
ion(MQBindingsManagedConnectionFactoryJ11.java:215)
        at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.jav
a:84)
        at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConne
ctionManager.java:168)
        at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueMana
gerFactory.java:772)
        at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:6
97)
        at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManager
Factory.java:657)
        at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFac
tory.java:153)
        at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:526)
        at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:69)
        at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2007)
        at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1496)
        at com.ibm.mq.jms.MQTopicConnection.<init>(MQTopicConnection.java:224)
        at com.ibm.mq.jms.MQTopicConnection.<init>(MQTopicConnection.java:92)
        at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTop
icConnectionFactory.java:361)
        at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTop
icConnectionFactory.java:309)
        at com.ibm.mq.jms.MQTopicConnectionFactory.createTopicConnection(MQTopic
ConnectionFactory.java:198)
        at mqjmssub.mySubscriber(mqjmssub.java:227)
        at mqjmssub.main(mqjmssub.java:395)


I have created two properties file so i'm not entering anything as command line argument

mqjmspub.properties file content -------------------------

icf=com.sun.jndi.fscontext.RefFSContextFactory
url=file:/C:/JMSConfig
tcf=\\pubsub\\ma0cTCF

--------------------------------------------------------------
mqjmssub.properties file content-------------------------

icf=com.sun.jndi.fscontext.RefFSContextFactory
url=file:/C:/JMSConfig
tcf=\\pubsub\\ma0cTCF
t=\\pubsub\\ma0cTopic
d=SUB
-------------------------------------------------------------

Now if I use command line argument explicitly------------------

Code:
C:\JeffMQ>java -classpath . mqjmspub -icf com.sun.jndi.fscontext.RefFSContextFac
tory -url file:/C:/JMSConfig -tcf \\pubsub\\ma0cTCF
Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/JMSExceptio
n

C:\JeffMQ>java mqjmspub -icf com.sun.jndi.fscontext.RefFSContextFactory -url fil
e:/C:/JMSConfig -tcf \\pubsub\\ma0cTCF
mqjmspub started....
java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:872)
        at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:228)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:222)
        at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:70)
        at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:492)
        at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:
168)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnec
tion(MQBindingsManagedConnectionFactoryJ11.java:179)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnect
ion(MQBindingsManagedConnectionFactoryJ11.java:215)
        at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.jav
a:84)
        at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConne
ctionManager.java:168)
        at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueMana
gerFactory.java:772)
        at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:6
97)
        at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManager
Factory.java:657)
        at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFac
tory.java:153)
        at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:526)
        at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:69)
        at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2007)
        at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1496)
        at com.ibm.mq.jms.MQTopicConnection.<init>(MQTopicConnection.java:224)
        at com.ibm.mq.jms.MQTopicConnection.<init>(MQTopicConnection.java:92)
        at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTop
icConnectionFactory.java:361)
        at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTop
icConnectionFactory.java:309)
        at com.ibm.mq.jms.MQTopicConnectionFactory.createTopicConnection(MQTopic
ConnectionFactory.java:198)
        at mqjmspub.run(mqjmspub.java:207)
        at java.lang.Thread.run(Thread.java:534)

C:\JeffMQ>
Back to top
View user's profile Send private message
vennela
PostPosted: Fri May 19, 2006 12:53 pm    Post subject: Reply with quote

Jedi Knight

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

Good

Now do this

export PATH=C:\Program Files\IBM\WebSphere MQ\Java\lib;%PATH%

Now run the program

Do not do -classpath.
Do like this

java mqjmspub -icf com.sun.jndi.fscontext.RefFSContextFac
tory -url file:/C:/JMSConfig
Back to top
View user's profile Send private message Send e-mail Visit poster's website
applejuice
PostPosted: Fri May 19, 2006 12:59 pm    Post subject: Reply with quote

Novice

Joined: 19 May 2006
Posts: 12

Not much improvement

Code:
C:\JeffMQ>export PATH=C:\Program Files\IBM\WebSphere MQ\Java\lib;%PATH%
'export' is not recognized as an internal or external command,
operable program or batch file.

C:\JeffMQ>set PATH=C:\Program Files\IBM\WebSphere MQ\Java\lib;%PATH%

C:\JeffMQ>java mqjmspub -icf com.sun.jndi.fscontext.RefFSContextFactory -url fil
e:/C:/JMSConfig
mqjmspub started....
java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:872)
        at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:228)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:222)
        at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:70)
        at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:492)
        at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:
168)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnec
tion(MQBindingsManagedConnectionFactoryJ11.java:179)
        at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnect
ion(MQBindingsManagedConnectionFactoryJ11.java:215)
        at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.jav
a:84)
        at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConne
ctionManager.java:168)
        at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueMana
gerFactory.java:772)
        at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:6
97)
        at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManager
Factory.java:657)
        at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFac
tory.java:153)
        at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:526)
        at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:69)
        at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2007)
        at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1496)
        at com.ibm.mq.jms.MQTopicConnection.<init>(MQTopicConnection.java:224)
        at com.ibm.mq.jms.MQTopicConnection.<init>(MQTopicConnection.java:92)
        at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTop
icConnectionFactory.java:361)
        at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTop
icConnectionFactory.java:309)
        at com.ibm.mq.jms.MQTopicConnectionFactory.createTopicConnection(MQTopic
ConnectionFactory.java:198)
        at mqjmspub.run(mqjmspub.java:207)
        at java.lang.Thread.run(Thread.java:534)

C:\JeffMQ>
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri May 19, 2006 1:05 pm    Post subject: Reply with quote

Grand High Poobah

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

Read the post:
Setup is for the default local qmgr.

Quote:
Downloaded the MQ Client.

So no *05.dll and no qmgr on the local box with the qcf/tcf defined for the local box.

It is never going to work !!!
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
vennela
PostPosted: Fri May 19, 2006 1:07 pm    Post subject: Reply with quote

Jedi Knight

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

Yeah, I should hve read it.

Install regular MQ not just the client.
I don't think I can go any further today.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
applejuice
PostPosted: Fri May 19, 2006 1:09 pm    Post subject: Reply with quote

Novice

Joined: 19 May 2006
Posts: 12

this is what I asked on my first post I downloaded Websphere MQ 6.0.1 Client for windows only and asked if i need to download any other componenets. Any suggestion how can i run it locally/or say if I have a full blown server setup on another computer in the network?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General Discussion » PubSub Applications and Some Confusion
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.