users@glassfish.java.net

Re: JNDI JMS glassfish v2 appserv-ws.jar replacement

From: <glassfish_at_javadesktop.org>
Date: Fri, 30 Mar 2007 01:05:47 PST

Are these instructions from https://glassfish.dev.java.net/javaee5/docs/DG/beakt.html incorrect to access a JMS resource from a stand-alone client:

Steps

   1.

      Create a JMS client.

      For detailed instructions on developing a JMS client, see the Java EE 5 Tutorial at http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JMS.html#wp84181.
   2.

      Next, configure a JMS resource on the Application Server.

      For information on configuring JMS resources, see Creating JMS Resources: Destinations and Connection Factories.
   3.

      Copy the following JAR files to the client machine and include them in the classpath on the client side:
          *

            appserv-rt.jar - available at install-dir/lib
          *

            j2ee.jar - available at install-dir/lib
          *

            imqjmsra.jar - available at install-dir/lib/install/aplications/jmsra
   4.

      Set the values for the Java Virtual Machine startup options:

      jvmarg value = "-Dorg.omg.CORBA.ORBInitialHost=${ORBhost}"
      jvmarg value = "-Dorg.omg.CORBA.ORBInitialPort=${ORBport}"


      Here ORBhost is the Application Server hostname and ORBport is the ORB port number (default is 3700).

      This information can be obtained from the domain.xml file. For more information on domain.xml file, see the Sun Java System Application Server Platform Edition 9.0 Administration Reference.
   5.

      Run the stand-alone client.

      As long as the client environment is set appropriately and the JVM is compatible, you merely need to run the main class.
[Message sent by forum member 'pg_glassfish' (pg_glassfish)]

http://forums.java.net/jive/thread.jspa?messageID=210586