Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

JMS Messaging with openJMS

Hi there,,

Presently, I have to develop client side jms api code that interact
with OpenJMS for my Software company.
i used your example code as a reference...
i have understood all the concept...

Environment:
O.S: windows Xp
JAVA_HOME=C:\j2sdk1.4.2_13
OPENJMS_HOME=C:\openjms-0.7.7-alpha-3
CLASSPATH=C:\openjms-0.7.7-alpha-3\lib

i have already started the openJMS server.. as well as adminAPI..

and compiled all the .java file ..i.e:
javac QueueSend.java
javac QueueReceiveAsynchronous.java
javac QueueReceiveSynchronous.java

javac TopicPublish.java
javac TopicSubscribeAsynchronous.java
javac TopicSubscribeSynchronous.java

but , when i execute the files...
java QueueSend
java QueueReceiveAsynchronous
java QueueReceiveSynchronous

java TopicPublish
java TopicSubscribeAsynchronous
java TopicSubscribeSynchronous

i have found these error:

-------Configuration: <Default>-------
java.lang.NoClassDefFoundError:
EDU/oswego/cs/dl/util/concurrent/PooledExecutor
at org.exolab.jms.net.orb.ORBFactory.createORB(ORBFactory.java:75)
at org.exolab.jms.client.net.SharedORB.<init>(SharedORB.java:89)
at org.exolab.jms.client.net.SharedORB.getInstance(SharedORB.java:292)
at
org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFactory.java:143 )
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at QueueReceiveSynchronous.main(QueueReceiveSynchronous.java:29)
Exception in thread "main"
Process completed.

Can you please help me out ..

waiting for your quick reply ..

thanks in advance..

khalid nayeem
Edisphere Software
India
[2080 byte] By [khalidnayeem] at [2007-11-11 10:27:27]
# 1 Re: JMS Messaging with openJMS
Attach software www.cajoon.com to your Java environment (J2SE, J2EE) and get 'root-cause' for every exception automatically . . .
abarnea_2000 at 2007-11-11 22:31:28 >
# 2 Re: JMS Messaging with openJMS
You need to put the that class on your class path. It looks like you only have things in C:\openjms-0.7.7-alpha-3\lib on your classpath.
mnuttall at 2007-11-11 22:32:33 >
# 3 Re: JMS Messaging with openJMS
Hi all,

I am using JMS in jboss-3.2.3, when scaning for pending messages i am using QueueBrowser.
But QueueBrowser not scaning all messages in JMS queue (ie not showing inprogress message)
But i need to know all messages including ongoing messages..
Antone plz help me

I am using Queuesender and QueueReceiver ..But some Exception or Error causes my JMS server(QueueReceiver listening for onMessage()) hanged up..and not responding to remaining messages...So i need to find pending messags in JMS queue..How can find?
Now i am using QueueBrowser to get list of pending msgs in queue... But doesn't contains Message which passed for processing (called onMessage())
.. But i need to find this also..How can?

Thanks,
Thilsen
thilsen at 2007-11-11 22:33:32 >