Print
StompConnect with JBoss

StompConnect with JBoss

If you want to use STOMP with JBoss then the following script shows how to boot up an application on windows exposing JBoss Messaging as a Stomp service

@echo off
cls
setlocal
title STOMPConnect:61613 - jbosssrv

set uri=tcp://169.254.109.194:61613
set providerurl=jnp://localhost:1099

set classes=stompconnect-1.0.jar;commons-logging-1.1.jar;jboss-messaging.jar;jnpserver.jar;jboss-common.jar;jboss-messaging-client.jar;jbossall-client.jar;jboss-remoting.jar;javassist.jar;jboss-j2ee.jar;trove.jar;jboss-aop-jdk50.jar
set properties=-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
set properties=%properties% -Djava.naming.provider.url=%providerurl%
set properties=%properties% -Djava.naming.security.principal=guest
set properties=%properties% -Djava.naming.security.credentials=guest

echo Connecting to %providerurl%

java %properties% -classpath %classes% org.codehaus.stomp.jms.Main %uri% ConnectionFactory
Powered by Atlassian Confluence