Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 20170 invoked from network); 29 Apr 2008 10:11:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Apr 2008 10:11:07 -0000 Received: (qmail 28288 invoked by uid 500); 29 Apr 2008 10:11:08 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 28263 invoked by uid 500); 29 Apr 2008 10:11:07 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 28252 invoked by uid 99); 29 Apr 2008 10:11:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2008 03:11:07 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of luiz.mendes.almeida@gmail.com designates 209.85.128.188 as permitted sender) Received: from [209.85.128.188] (HELO fk-out-0910.google.com) (209.85.128.188) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2008 10:10:22 +0000 Received: by fk-out-0910.google.com with SMTP id 22so5763788fkq.6 for ; Tue, 29 Apr 2008 03:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=ZrmB8F/iGzSJ/XGUYHrT2cmYu06r6WUQlPcg9XLIVi0=; b=D4G1Al5Xb7A7BSjuJWwHJ4JeY3JrecCIxLjmmimEfoR7jx4HGrAgiR+LZXbkZYOXEn+8x19SvBOAn+6uKzZ3ywdENnX9d94gIOH5HDfqq8JmQJ1J77scNfuMmvC/U22K/Oyf7LzL1XQzBXai1yzOWlbXqs/DSyCCADdJjQh0XqA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=bQ5L4A+wx5n/2XcjjeWf0cH9EJiWhH0DL1xJQROqDWYRy1+s9Zi6hy3HLhTnu1fO92DJ6uD3ARIjdEfColBrNDfCtMGN+XJvy24QHyT7KMHRf0FXMuYQiwcOLC7fwB/wFxfHS/azdR5j4312KiBKJqh0/eZVfjIxUEOesgxY0PY= Received: by 10.78.129.16 with SMTP id b16mr905709hud.116.1209463834231; Tue, 29 Apr 2008 03:10:34 -0700 (PDT) Received: by 10.78.150.2 with HTTP; Tue, 29 Apr 2008 03:10:34 -0700 (PDT) Message-ID: <179bc6f60804290310t466958a9mefc959d4b0b700ca@mail.gmail.com> Date: Tue, 29 Apr 2008 11:10:34 +0100 From: "Luiz Mendes Almeida" To: users@activemq.apache.org Subject: Re: sending message from an external client In-Reply-To: <16956671.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8982_31804482.1209463834226" References: <16956671.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8982_31804482.1209463834226 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi. I think you can't get the jboss context using an external application. My advice is to create a different context to connect to this queue. I hope help you. Dwight. 2008/4/29 DA : > > Hi all, > My application runs on jboss and i configured activewq for > messsaging.everything is working fine messaging r flowing fine.Now i want > to > send message to this queue from an external client a main program. > i created the initialcontext with the properties from jboss > > java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory > java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces > > now when i did a lookup for connectionfatory it is returning me null. On > debugging it i found that it actually found the connectionfactory but in > NamingManager.getObjectInstance at > > factory = getObjectFactoryFromReference(ref, f); > if (factory != null) { > return factory.getObjectInstance(ref, name, nameCtx, > environment); > } > > it is returning null. Before going there, ref is holding the > connectionfactory instance. > > i observed that factory is "org.jboss.util.naming.NonSerializableFactory" > > in that factory.getObjectInstance it is looking for connectionfactoryName > in a map and simply returning null from there. > > can any one tell me what is happening there and what is wrong in my code. > > Thanks in advance. > DA > -- > View this message in context: > http://www.nabble.com/sending-message-from-an-external-client-tp16956671s2354p16956671.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- Luiz Mendes Almeida tel: +55 (13) 3113-3663 cel: +351 93 633 00 40 ------=_Part_8982_31804482.1209463834226--