I am trying to connect to the GlassFish 3 JMS service from a stand-alone remote client. However, I get java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter. Any ideas on how to fix this?
Here is my setup:
Glassfish 3 JMS Service in LOCAL mode (I assume EMBEDED mode will not work in this case, because it bypasses the network stack)
JNDI properties are set as follows:
java.naming.factory.initial = com.sun.enterprise.naming.SerialInitContextFactory java.naming.factory.url.pkgs = com.sun.enterprise.naming java.naming.factory.state = com.sun.corba.ee. impl.presentation.rmi.JNDIStateFactoryImpl
gf-client-module.jar (in GLASSFISH_HOME / modules) has been added to the standalone class path of the application. Also tried to add other jars present in the modules directory (e.g. jms-core.jar), but still getting the same ClassNotFoundException.
Any help would be greatly appreciated.
glassfish remote-access jms
Naresh
source share