4 Replies Latest reply on Sep 25, 2006 9:57 PM by Ovidiu Feodorov

    Does JBoss Messaging need JBoss App Server to work

    Jason Manfield Newbie

      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! ###
      #####################