I am new to JMS and am trying to learn the technology. When I tried to run the JMS sample codes available at http://www.oracle.com/technology/sample_code/tech/java/jms/index.html, I got the following error:
[java] javax.naming.NoInitialContextException: Cannot instantiate class: co
m.evermind.server.rmi.RMIInitialContextFactory [Root exception is java.lang.Clas
Please help me solve the problem. I find that, the downloaded code does not contain the class mentioned in the error message. Also, I do not see how the code is interacting with the OC4J server. It would be great if anyone could clarify.
I tried running both 'JMS1.1 Domain Unification Sample' and 'JMS Sample Appication' which are downloadable from http://www.oracle.com/technology/sample_code/tech/java/jms/index.html . Both of them failed to run. Could you provide me with some help in this regard?
the problem you are facing can be removed by adding oc4jclient.jar as libraray.
But after that i am facing following error.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/JMSEndpointStats