Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 37696 invoked from network); 22 Aug 2009 17:34:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Aug 2009 17:34:02 -0000 Received: (qmail 81242 invoked by uid 500); 22 Aug 2009 17:34:23 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 81185 invoked by uid 500); 22 Aug 2009 17:34:23 -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 81175 invoked by uid 99); 22 Aug 2009 17:34:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Aug 2009 17:34:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bruce.snyder@gmail.com designates 209.85.220.218 as permitted sender) Received: from [209.85.220.218] (HELO mail-fx0-f218.google.com) (209.85.220.218) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Aug 2009 17:34:13 +0000 Received: by fxm18 with SMTP id 18so911233fxm.38 for ; Sat, 22 Aug 2009 10:33:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ntCwg28mpyi2DEhM+DIJwCTmIWntso/drDfUTwLZsuk=; b=nQf/0ctVeATu88yJ/XlulPIda9GWl/FRpdvUNJgFYsscAaV62J8L9rvb9lSe2aavxv s0MUjn/2X0o2Kz15b4jky5JN0mfrFEMySEU6M66cRVqkpNZr6Q5TkfAXfCKDoeuo743H jNPhjggCm9KRlgLXtbR24KKICHXEA9PG2HvZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=sMMZ/ptnap7ueqD2PTx8aGe8Q1Rr9h/RhQ7MN1Fzz+5mb4gw5+jvjYBWjFvMZAapxl d1VXxdBdm1qQQECSPyDzFKELWEqNv8riijrw3BCbgKT6QExxVQw+1QgXDZ9DXt93c2aB mzG00FfMYrrSxmXLUhdXJCAbYDNkPnf3JBwrg= MIME-Version: 1.0 Received: by 10.223.2.75 with SMTP id 11mr1720253fai.54.1250962432176; Sat, 22 Aug 2009 10:33:52 -0700 (PDT) In-Reply-To: <25095407.post@talk.nabble.com> References: <25088654.post@talk.nabble.com> <7b3355cb0908220908v2439fa58k70646a1e17bea655@mail.gmail.com> <25095407.post@talk.nabble.com> Date: Sat, 22 Aug 2009 11:33:52 -0600 Message-ID: <7b3355cb0908221033w5f2ad66ct9556b53f43b1ab73@mail.gmail.com> Subject: Re: ActiveMQ without J2EE From: Bruce Snyder To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Aug 22, 2009 at 10:36 AM, gonzus wrote: > > Bruce, thanks again for your answers. > > > bsnyder wrote: >> >>> geronimo-j2ee-management_1.0_spec-1.0.jar >>> geronimo-jms_1.1_spec-1.1.1.jar >>> geronimo-jta_1.0.1B_spec-1.0.1.jar >> >> Those JARs are just APIs for a given specification. In other words, those >> JARs contain the interfaces put forth by each of those specs. The >> j2ee-management spec deals with JMX, the JMS spec deals with JMS, the JTA >> spec deals with transactionality. These JARs do not tightly couple >> ActiveMQ with Java EE. ActiveMQ can be used with a Java EE container, a >> web container or in a stand alone environment. In fact, the most popular >> deployment style with ActiveMQ is stand alone. >> >> [snip] >> >> Also, none of those JARs has anything to do with JNDI. >> >>> Would it be possible to use ActiveMQ without these JARs? >> >> No, the JMS spec requires the use of these specs. >> > > Ok, that clears that up. Besides, I just checked those JARs and they are > pretty small anyway. > > > bsnyder wrote: >> >>> Is there any way to develop ActiveMQ applications that do not use JNDI? >>> Perhaps via Spring? >> >> Yes, the use of JNDI is not a requirement. ActiveMQ supports the use of >> JNDI but does not require it. >> > > Could you point me to a code example of using ActiveMQ (hopefully with > Spring) outside any J2EE environment, that does not use JNDI? As close to a > real life working project as possible? There are some very basic examples in the examples directory of the ActiveMQ binary distribution. Those are quite simplified and not necessarily a good model for your own work. I've got some examples of using the Spring JMS APIs that I'll send you offline. Bruce -- perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E