« Return to Thread: JBOSS messaging and stompConnect

Re: JBOSS messaging and stompConnect

by NewWay :: Rate this Message:

Reply to Author | View in Thread

Hi,

Alexander L. wrote:
I am also confused about these settings: -Djava.naming.security.principal=guest and -Djava.naming.security.credentials=guest.
I'm still confused here - no progress was done

Alexander L. wrote:
But main thing I want to know is what should be the name of topic/queue on JBoss?
And what user and password have you added in cpp code?
the topic/queue in JBOSS should be the one you sent to in the C++, if you'll notice in the main.cpp in the vs2005-activemq-example there is the HelloWorldConsumer and in the run method  you can see the line destination = session->createQueue( "TEST.FOO" ); change "TEST.FOO" to be the queue name in JBOSS.

now about the change in the code, i assumed that it will use the
Alexander L. wrote:
-Djava.naming.security.principal=guest and -Djava.naming.security.credentials=guest.
but it didn't, so what i did was to change the code of ActiveMQConnectionFactory so the constructor  with this signature looks like this.

cms::ConnectionFactory* cms::ConnectionFactory::createCMSConnectionFactory( const std::string& brokerURI )
    throw ( cms::CMSException ) {

    return new ActiveMQConnectionFactory( brokerURI , "guest", "guest");
}


my addition is in bold.

hope this helps you get a start

 « Return to Thread: JBOSS messaging and stompConnect