|
|||||
|
|
|||||
Running StompConnect
Running StompConnectBeing pure Java you can embed StompConnect inside any JVM process very easily. The StompConnect code only depends on
So its very easy to add to any JMS Broker process or JVM capable of using a particular JMS client. Using Dependency InjectionIf you use some kind of dependency injection framework like Spring you can configure StompConnect using XML if you prefer. Just configure the StompConnect POJO with
Using the provided MainStompConnect comes with a command line interface which can be used. Just invoke java org.codehaus.stomp.jms.Main <arguments> With the CLASSPATH setup to include your JNDI provider's configuration in the jndi.properties file together with the StompConnect jar and your JMS client jars. To see a list of possible arguments available try java org.codehaus.stomp.jms.Main -h Which at the time of writing generates... StompConnect
Arguments: <uri> <jndiName>
uri = the host and port to listen on for STOMP traffic
jndiName = the name in the default JNDI context to look for the ConnectionFactory
For more help see http://stomp.codehaus.org/StompConnect
|
|||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||