Hi All,
Here is my question.
I defined a queue in JBoss, by editing standalone-full.xml, with following entry.
<jms-destinations>
..........
<jms-queue name="myQueue">
<entry name="queue/testOne"/>
<entry name="java:jboss/exported/jms/queue/testOne"/>
</jms-queue>
.........
</jms-destinations>
Then I stared the JBoss server in full standalone mode.
In my java class, I tried to get an access to the above defined queue. Following is the code snippet:
Hashtable<String, String> envmnt = new Hashtable<String, String>();
envmnt.put(Context.PROVIDER_URL, "http://localhost");
envmnt.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
jndiContext = new InitialContext(envmnt);
However, I'm getting the following exception:
Could not create JNDI API context: javax.naming.NamingException: Failed to create remoting connection [Root exception is org.jboss.remoting3.UnknownURISchemeException: No connection provider for URI scheme "http" is installed]
Please help, as I've just began learning JMS and would like to move ahead asap.
Regards
Yogi