[jboss-user] [JBoss Messaging] - Does JBoss Messaging need JBoss App Server to work

shivi911 do-not-reply at jboss.com
Fri Sep 22 21:49:34 EDT 2006


I just downloaded JBoss Messaging and am trying to run the QueueExample.java example. I am able to compile them via Eclipse -- just jboss-messaging-client.jar was in my classpath.

I don't have JBoss Application Server (our application here needs just messaging, not ejbs) and I intend to consume messages via Listeners instead of mdbs. Does JBoss Messaging require that an app server be up and running?

When I run the QueueExample, I get the following exception. How do I resolve it.

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
	at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
	at javax.naming.InitialContext.lookup(InitialContext.java:347)
	at com.nspin.jbossmsg.Util.doesDestinationExist(Util.java:26)
	at com.xora.jbossmsg.ExampleSupport.setup(ExampleSupport.java:141)
	at com.nspin.jbossmsg.ExampleSupport.run(ExampleSupport.java:52)
	at com.nspin.jbossmsg.QueueExample.main(QueueExample.java:133)

#####################
###    FAILURE!   ###
#####################


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

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



More information about the jboss-user mailing list