Using StompConnect and Open MQ Cannot resolve external resource into attachment.If you are interested in contributing to this FAQ, please read the Contribution Guidelines. We welcome your feedback – users@mq.java.net The following illustrates how you can use StompConnect as an Integration facility for Open MQ. Getting StartedBefore you begin, you'll need the following:
File System JNDI Service Provider:
download from http://java.sun.com/products/jndi/downloads/index.html
Steps to run the C# Stomp ClientFor this example, you'll need a machine with Microsoft .NET framework to host the C# bits. You can run the MQ Broker on any supported platform. imqbrokerd -tty 2. Create the MQ administrative object of ConnectionFactory imqobjmgr add -t qf -l cn=QCF -j "java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory" -j "java.naming.provider.url=file:///C:/mq_admin_objects" 3. Create a JNDI resource file jndi.properties for Stomp Connect java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory java.naming.provider.url=file:///C:/mq_admin_objects place this jndi.properties file in the classpath for the instance of StompConnect that you're about to start in the next step 4. Start StompConnect java -classpath <classpath> org.codehaus.stomp.jmsMain tcp://localhost:6666 cn=QCF 5. Create your Stomp Client csc Stompclient.cs (2) Run the StompClient StompClient s <stompconnect-host> <stompconnect-port> <queue-name> for example, with the StompConnect instance you started in step 4 above, StompClient s <stompconnect-host> 6666 <queue-name> b. to run as receiver StompClient r <stompconnect-host> <stompconnect-port> <queue-name> |