aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes new to JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "new to JMS" Watch "new to JMS" New topic
Author

new to JMS

hani Ibrahim
Ranch Hand

Joined: Sep 06, 2006
Posts: 182
Dear all,
i want to make hello world example of JMS..but i have exception like this
---------------------------------------------------------------------------
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652)
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 chap2.chat.Chat.<init>(Chat.java:25)
at chap2.chat.Chat.main(Chat.java:98)
Caused by: java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
... 5 more
---------------------------------------------------------------------------
i want to to connect it to sun one my class.
i think i should put something in properties but i dont know what to put..
anyone has an idea for that please
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10290
    
168

[Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652)
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 chap2.chat.Chat.<init>(Chat.java:25)
at chap2.chat.Chat.main(Chat.java:98)


You will have to place the jar containing the com.sun.jndi.fscontext.RefFSContextFactory class in the classpath of your client application (the chap2.chat.Chat application)


[My Blog] [JavaRanch Journal]
hani Ibrahim
Ranch Hand

Joined: Sep 06, 2006
Posts: 182
thanks a lot..
but do anyone tell me the difference between:
A) ConnectionFactory vs TopicConnectionFactory and QueueConnectionFactory
B)Topic and TopicConnectionFactory.
Still not catch them yet !!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: new to JMS