Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DA913200BD4 for ; Thu, 1 Dec 2016 16:34:32 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D927F160B0B; Thu, 1 Dec 2016 15:34:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2DFDB160B05 for ; Thu, 1 Dec 2016 16:34:32 +0100 (CET) Received: (qmail 90995 invoked by uid 500); 1 Dec 2016 15:34:31 -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 90983 invoked by uid 99); 1 Dec 2016 15:34:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2016 15:34:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6A2EB180652 for ; Thu, 1 Dec 2016 15:34:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.193 X-Spam-Level: * X-Spam-Status: No, score=1.193 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id VNRZOlydf-8Z for ; Thu, 1 Dec 2016 15:34:27 +0000 (UTC) Received: from mail-qt0-f177.google.com (mail-qt0-f177.google.com [209.85.216.177]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9C57D5F306 for ; Thu, 1 Dec 2016 15:34:27 +0000 (UTC) Received: by mail-qt0-f177.google.com with SMTP id n6so224022742qtd.1 for ; Thu, 01 Dec 2016 07:34:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=OKdfQ9aE+mW75yBxMJ83JLsGdl14uNLJFSd7R2l8Gmo=; b=WzW88mblDfump6+eNSnSxrlxqx+05FJogHh99NX05DBT+53QoR7Nsqu6xr2JnxU1Ol gv/Hu3VPl/YiOiSw+xA6sKHgxTdphsY0C0iGwFIu6faKXogaB+Aq79Zkma1ThjHrzgHS o/7jvgK86+A6XRcwhGaGmSZJIWJv1hoxReqAUTBIQFov9/OmzI3p0/nidrUA+pWnA+oF OmFdPYQr+MIg//UbIBqVTxtZwgU9mOdS1lEMoquEMu8gHbvkUC621vC5z/bvjnmkKDKq T6bB3AnB5ICvB4SJDqRdWKEkU6xnRxdpE/HxriCnaPzsPf/UXEHo4jdSIeGbyj2YJRpf W/aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=OKdfQ9aE+mW75yBxMJ83JLsGdl14uNLJFSd7R2l8Gmo=; b=eRQvKImHluphpMM1qyjxmPIzlDHlpvFHtdoTstKnpMZHLfO6rfiqufHIq3mTJsXCFu uNZDf/Y3o6ajWlZ2T3fkP7HDvtE4azymHIFRsuL8sV/dt1FARMBnw3lC4R1hxUOQvbGe YBZgLl6c2nLQD8dP7wPDgVlLHxDxHIf9wLHCo7mhjGwdpFCgjZbxsYy7ppfOHiAxsPUZ sN7RZWWPMsjJfx2RTxaIyqU78pH5yVCUY5xVsdJ4MuHAruQSOxjj+bcStveeKTCvvLky uLTtGnPhlW3nd02IflA14M0KPCHCporiuTza2ttLpNCQx59yCizOb6VfuBWCBhXhNLfJ NYbw== X-Gm-Message-State: AKaTC027n06U50LuD1zlrYDNd9n9CKTrAL1w7JLyaipzZW2xB0/YOBjqZ/EMVHVfNNMELvjYbN7pqFqsXYPcsw== X-Received: by 10.237.37.77 with SMTP id w13mr37969486qtc.197.1480606467146; Thu, 01 Dec 2016 07:34:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.51.173 with HTTP; Thu, 1 Dec 2016 07:34:06 -0800 (PST) In-Reply-To: <1480604826513-5790885.post@n5.nabble.com> References: <1480604826513-5790885.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 1 Dec 2016 16:34:06 +0100 Message-ID: Subject: Re: stand-alone problem To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 archived-at: Thu, 01 Dec 2016 15:34:33 -0000 Use the run method instead of start. On Thu, Dec 1, 2016 at 4:07 PM, sa_james wrote: > Here I am again with a simple test: > > /from("jms:queue").to("log:test")/ > > / class="org.springframework.jms.connection.CachingConnectionFactory"> > ref="webSphereConnectionFactory" /> > > / > > After I have started the app: > > INFO Route: route1 started and consuming from: jms://queue > INFO Total 1 routes, of which 1 are started. > INFO Apache Camel 2.18.0 (CamelContext: camel-1) started in 0.481 seconds > > Application has now been started. You can press ctrl + c to stop. > > Then here the app exits. > > Main function as usual: > > / Main main = new Main(); > main.setApplicationContextUri("META-INF/spring/camel-context.xml"); > main.start(); > System.out.println("\n\nApplication has now been started. You can > press ctrl + c to stop.\n\n");/ > > > What is happening? Any idea? > I could not find anything in the mailing list. > > > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/stand-alone-problem-tp5790885.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2