2008/8/8 Rajika Kumarasiri <[EMAIL PROTECTED]>: > On Wed, Jul 30, 2008 at 2:24 PM, Aidan Skinner <[EMAIL PROTECTED]> wrote: > Hey Aidan, > Is there is a way to enable auto creation of VM broker, may be passing a > JNDI property ? > Thanks > > -Rajika
Rajika, You can set system property amqj.AutoCreateVMBroker to true and then the client code will automatically create any VM broker you attempt to connect to in your JNDI string. I'd also take a look at the Main class in the broker as your Server application that starts the InVM process will also need to bind to a TCP port as the broker's Main class does other wise you won't be able to connect to the broker via TCP. Regards Martin > > On Wed, Jul 30, 2008 at 9:44 AM, Rajika Kumarasiri <[EMAIL PROTECTED]> >> wrote: >> >> > I have been using Java broker for some time now and it is possible to >> > optimize away a network hop if we can make the broker and the server >> > process-which is a another application, run within the same >> > JVM so that they can communicate through a in-VM link. >> > I need to know wether it is possible to create a embedded brokers in my >> > server process . Please comment. >> >> Yep, Mina can definately be made to do this. Have a look at >> QpidTestCase on trunk for an example of doing this. > > > > >> >> >> - Aidan >> -- >> Apache Qpid - World Domination through Advanced Message Queueing >> http://cwiki.apache.org/qpid >> > > > > -- > http://wso2.org/ > http://llvm.org/ > -- Martin Ritchie
