1 Reply Latest reply on Dec 15, 2010 9:00 PM by jombo wang

    embedded in vm

    blalls asdsd Novice


      I would like to try horneq in embedded mode. For reasons I want all the communication to happen in VM level for time being. That is to say I don't want to open a JNDI or any other kind of ports.

      Now I looked at the embedded example in Hornetq, which works nicely, and I wanted to change it so that it would use invm connectors and so forth, but I noticed that JMSQueueConfiguration and ConnectionFactoryConfigurationImpl needs a jndi address. I could not figure out how can I create a connection and the queue/topic without looking them up in the JNDI.


      thanks in advance,


        • 1. Re: embedded in vm
          jombo wang Newbie

          i think u can type codes like this:



          ClientSessionFactory sf = HornetQClient
                          .createClientSessionFactory(new TransportConfiguration(
          ClientSession coreSession = sf.createSession(true,true,0);
          ClientConsumer consumer = coreSession.createConsumer("jms.queue.myQueue");



          i hope these will help u