[jboss-user] [JBoss Messaging] - Different ways of populating Context for sending message ??

subrata_jboss do-not-reply at jboss.com
Fri Mar 21 03:03:27 EDT 2008

while sending message to queue by http 

we can populate context in two different ways?
1) Properties p = new Properties();
			p.put(Context.PROVIDER_URL, "jnp://");
			ctx = new InitialContext(p);

2)  Properties p = new Properties();
        p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");
        env.setProperty(Context.PROVIDER_URL, """);

ctx = new InitialContext(p);

How does it matter ????

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138236#4138236

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138236

More information about the jboss-user mailing list