Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 71149 invoked from network); 9 Mar 2007 17:24:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2007 17:24:42 -0000 Received: (qmail 36156 invoked by uid 500); 9 Mar 2007 17:24:51 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 35913 invoked by uid 500); 9 Mar 2007 17:24:50 -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 35904 invoked by uid 99); 9 Mar 2007 17:24:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 09:24:50 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of james.strachan@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nf-out-0910.google.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 09:24:39 -0800 Received: by nf-out-0910.google.com with SMTP id y38so1232333nfb for ; Fri, 09 Mar 2007 09:24:18 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=t/FPN7brdZu6lXpHEKOo5fyJoLFw/pCpDJRtb/hto0IOOUGhDh4P8UQPlMAcRvreqtTG4gi6jwsT5LmaG6J7aMOagyjA7ygXNrJ11ayvlv7yy4bRwKY5ObjYzUf0GARz6ZhsMLcdIfleLfSPxyNfWh1z4Qczao9pjFVuVyIB9ek= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cpjmFVkkK11tsHTLJqQeORf3GYQA7738VYupXWc4OHS0YeAK36hWFNJ3TYoLYWCvVh0llZMuXe5Yu/gaMHuaXW1Y4BEUB+FlRH+vunWiIAAmwi0Vq7/t7U3hDep3YinCzUteqHVvJfEP6vKeq4w9v1JG7Ei3ZpMN3h+ldL3LGaA= Received: by 10.78.149.13 with SMTP id w13mr249548hud.1173461058520; Fri, 09 Mar 2007 09:24:18 -0800 (PST) Received: by 10.78.155.11 with HTTP; Fri, 9 Mar 2007 09:24:18 -0800 (PST) Message-ID: Date: Fri, 9 Mar 2007 17:24:18 +0000 From: "James Strachan" To: users@activemq.apache.org Subject: Re: [Spam: 5.0] Embedding ActiveMQ in Sun App Server 9 In-Reply-To: <9396985.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9332615.post@talk.nabble.com> <9391331.post@talk.nabble.com> <9396985.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org On 3/9/07, AsaUK wrote: > > Hi James, > > I am working along with Nic on this one. I have uploaded the rar file fine > with the only parameter set being BrokerXmlConfig as > "broker:(tcp://localhost:61616)" I can then connect to the appserver jms > from an outside client using 4.0.x (can't use 4.1 as the rar does not have > openwire v2 in it and I haven't got the xml working to set it in there). You could use the 4.1 version of the RAR? > I did try using BrokerXmlConfig as "xbean:asa.xml", but I got this: > Failed to start resource adapter : Failed to startup an embedded broker: > xbean:asa.xml, due to: java.lang.NullPointerException > at > com.sun.enterprise.connectors.ActiveInboundResourceAdapter.(ActiveInboundResourceAdapter.java:134) > at > com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:89) Could you include the entire stack trace please? I'm guessing it couldn't find asa.xml on the classpath but I can't be sure... > It would be good to get that working as it gives more customisation > > What we really want is one exterior client (which I have now working above) > and one internal mdb. Ideally I would do all that inside the appserver > rather than connection to the socket. I have tried setting up connection > pools, admin objects and connection resources and pointing them at the > activemq stuff and then using resource injection. This doesn't seem to work. > I am not even sure that I am heading in the right direction. Can you > describe how I should be connecting the mdb to the external client? Am a bit confused by the last paragraph. An MDB connects to a message broker; which you say you had working fine for an external client; so it should be working for the MDBs as well right? -- James ------- http://radio.weblogs.com/0112098/