2 Replies Latest reply on Nov 13, 2003 5:10 PM by benstarr

    Running a JMS client without JBoss installed

    benstarr Newbie

      I am wanting to create a JMS client on a computer that doesn't have JBoss installed to send messages to a computer that does have JBoss installed. As far as I can tell the correct procedure is as follows:

      1. Make sure there is a suitable JVM installed

      2. Make sure the following JAR files are available on the classpath:

      concurrent.jar
      jboss-common-client.jar
      jbossmq-client.jar
      jboss-system-client.jar
      jnp-client.jar
      log4j.jar
      jnet.jar (if Java 1.3)
      jboss-j2ee.jar

      This is according to the JBoss documentation (except for jboss-j2ee.jar) but jboss-system-client.jar and log4j.jar don't seem to be required.

      3. Configure the initial context with the following properties:

      java.naming.factory.initial
      java.naming.provider.url
      java.naming.factory.url.pkgs

      Where the provider URL is to the computer running JBoss.

      4. Send a message as per any JMS client remembering that naming service names are not mapped into a ENC.

      I have actually got a test program running fine using this procedure but I just wanted to check that this approach is kosher.

      Thanks.