Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 86273 invoked from network); 23 Nov 2009 09:55:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Nov 2009 09:55:01 -0000 Received: (qmail 66502 invoked by uid 500); 23 Nov 2009 09:55:00 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 66448 invoked by uid 500); 23 Nov 2009 09:55:00 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 66438 invoked by uid 99); 23 Nov 2009 09:55:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 09:55:00 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.218.211 as permitted sender) Received: from [209.85.218.211] (HELO mail-bw0-f211.google.com) (209.85.218.211) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 09:54:58 +0000 Received: by bwz3 with SMTP id 3so5579506bwz.36 for ; Mon, 23 Nov 2009 01:54:36 -0800 (PST) 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 :from:date:message-id:subject:to:content-type; bh=maj94taaj9zvx5MPut8q+3oN6Xl0gWW/rWq+EUDTS7o=; b=r1K8mnQ1YUBS1jcFRa0cEuBY8lRQtv9C3Cm2vHSjSfZhM6RwzHluut9IH2he8QBR1z wtoavm4Lm9reA1M/tq+Wt+6TDO1eEH2jLs0ql3Cl41bL4EqiveWrWfMTwXtH56ENXQhI y9OdahzdYEDykaU16NuePAIH37Cme+AOkrgRk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=nCucgSmqSnA38YMiH0iQJbQTtXCvTnl/Y/KcyRHaw3yLILobjtUCKwpcSG3s+Ss7ZY vY8nS1dS3vPY9+SAP37k1IrL2mHgA2WUWJKdjCqbTdWy86Olg/sDh+TH8FwWhpTsQyEg c5Y2ZTuOLm7/h8QuceNEW8v+9ovs10LXeNXv0= MIME-Version: 1.0 Received: by 10.204.16.85 with SMTP id n21mr4494883bka.140.1258970076596; Mon, 23 Nov 2009 01:54:36 -0800 (PST) In-Reply-To: <26473852.post@talk.nabble.com> References: <26473852.post@talk.nabble.com> From: Claus Ibsen Date: Mon, 23 Nov 2009 10:54:15 +0100 Message-ID: <5380c69c0911230154h1ecba4e4q9cf1d8aeb13b2f07@mail.gmail.com> Subject: Re: How to configure Camel Routes under JBOSS 5 To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Mon, Nov 23, 2009 at 8:47 AM, Matvey wrote: > > ActiveMQ + JBOSS5 + Camel. > > An Idea is to configure Camel Producers automatically using annotations > inside of EJB3 bean (mostly session beans). Is that possible? > Camel uses the help of Spring to inject those beans. So in case Spring can do that to an EJB3 then I cannot see why it should not work with Camel also. Why dont you try it out? Otherwise you can use a regular POJO and have all the DI work on it and then let the EJB3 delegate to that POJO. Then you logic is also not tied into the EJB. > It looks like I can configure bean for every JMS queue in a Spring config > file and than get this bean in EJB3 using onEJBCreate method, but this > solution looks not really optimal as Camel supports DI with annotations ant > it should be possible to set producers using @Producer annotation. It would > be nice as well, to use only one ActiveMQ configuration file to configure > all Camel/Spring beans as this file is automatically used upon ActiveMQ > start. > -- > View this message in context: http://old.nabble.com/How-to-configure-Camel-Routes-under-JBOSS-5-tp26473852p26473852.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus