ActiveMQにスタンドアロンクライアントとして接続することは、問題ありません。あなたが必要とする唯一のものは、ActiveMQの-すべて-5.4.1.jarがとあなたが行くを追加することです...Glassfish V3.xとリモートスタンドアロンクライアント
...
prop.put(Context.SECURITY_AUTHENTICATION , "system");
prop.put(Context.SECURITY_CREDENTIALS,"manager");
prop.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.activemq.jndi.ActiveMQInitialContextFactory");
prop.put(Context.PROVIDER_URL,"tcp://localhost:61616");
prop.put("connectionFactoryNames", "TopicCF");
prop.put("topic.topic1", "topic1");
InitialContext ctx = new InitialContext(prop);
...
今、あなたは、GlassfishのV3.Xに接続すると、それは不可能です接続するために適切なライブラリとクラスを取得する。 Glassfish V2.xでもまだ可能でしたが、私はGlassfishのために実行している上記のコードに相当するものを手に入れていませんでした!
...
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.appserv.naming.S1ASCtxFactory");
properties.put(Context.PROVIDER_URL, "iiop://localhost:3700");
InitialContext context = new InitialContext(properties)
...
誰でもこの回答をお持ちですか?いいえ、Glassfishのキューから読み取るだけのエンタープライズアプリケーションクライアントを展開したくないです。ここには同様のスレッドがありますが、どこにもガイドはありません。
スヴェン
別のスレッド:http://stackoverflow.com/questions/3646302/thinner-standalone-client-for-enterprise-application – javadude
をそして別のhttp://stackoverflow.com/questions/2478958/use-glassfish-jms-from-remote-client – javadude
あなたはこれをソートしましたか、私は同じ問題を経験しています。 – ChristiaanP