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 9B139200D44 for ; Mon, 20 Nov 2017 15:38:52 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9962B160BF9; Mon, 20 Nov 2017 14:38:52 +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 DFCB2160BEC for ; Mon, 20 Nov 2017 15:38:51 +0100 (CET) Received: (qmail 95975 invoked by uid 500); 20 Nov 2017 14:38:44 -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 95964 invoked by uid 99); 20 Nov 2017 14:38:44 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Nov 2017 14:38:44 +0000 Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 4D6791A0140 for ; Mon, 20 Nov 2017 14:38:43 +0000 (UTC) Received: by mail-oi0-f42.google.com with SMTP id l138so6281469oib.7 for ; Mon, 20 Nov 2017 06:38:43 -0800 (PST) X-Gm-Message-State: AJaThX76s3UzLoegVnUEExaEA8I4DOzX9Y6ANjxHt5lcgUuSyt7Y/Tar 9VYSCySOARvkdOHFM1weFVKjEs4OhRXxNEWD+oyNXw== X-Google-Smtp-Source: AGs4zMYdf4bwzuQaCSLFZk8NFpmkjnJmgS7t50nh6uAZ8LTDxD49UNIMN6aEbDLgYhmES7DzTGWhJBNQoCfeCa4HmXY= X-Received: by 10.202.86.76 with SMTP id k73mr7995657oib.289.1511188722381; Mon, 20 Nov 2017 06:38:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.79.80 with HTTP; Mon, 20 Nov 2017 06:38:41 -0800 (PST) In-Reply-To: <1511182145322-0.post@n4.nabble.com> References: <1510835666132-0.post@n4.nabble.com> <1511182145322-0.post@n4.nabble.com> From: Justin Bertram Date: Mon, 20 Nov 2017 08:38:41 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Re-ordering of messages - Artemis To: users@activemq.apache.org Content-Type: multipart/alternative; boundary="001a113de342fc8706055e6b0a6e" archived-at: Mon, 20 Nov 2017 14:38:52 -0000 --001a113de342fc8706055e6b0a6e Content-Type: text/plain; charset="UTF-8" > Where am I getting wrong? The fact that you're attempting to modify broker.xml and/or bootstap.xml indicates to me that you didn't understand my comment on Stackoverflow. I specifically noted that you need to use "a web application with a Camel context," and linked to some documentation on that for 5.x that should help you put together the web-application. Can you try this approach? Justin On Mon, Nov 20, 2017 at 6:49 AM, alisu wrote: > Thanks Justin and gtully for your responses. As Justin said, it is > possible t > run camel routes inside the broker, now I have been experimenting with > this. > First, I have tried this with ActiveMQ 5.15.1 as described in [1], and > everything works fine. But when I do the same thing with Artemis, by adding > /**/ inside broker.xml or bootstrap.xml file > , > the server doesn't start up instead I get the following exception: > > /Exception in thread "main" javax.xml.bind.UnmarshalException > - with linked exception: > [org.xml.sax.SAXParseException; lineNumber: 35; columnNumber: 32; > cvc-complex-type.2.4.a: Invalid content was found starting with element > 'import'. One of '{"http://activemq.org/schema":component, > "http://activemq.org/schema":web}' is expected.] > at > com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl. > handleStreamException(UnmarshallerImpl.java:468) > at > com.sun.xml.internal.bind.v2.runtime.unmarshaller. > UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:402) > at > com.sun.xml.internal.bind.v2.runtime.unmarshaller. > UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:371) > at org.apache.activemq.artemis.dto.XmlUtil.decode(XmlUtil. > java:117) > at > org.apache.activemq.artemis.cli.factory.xml.XmlBrokerFactoryHandler. > createBroker(XmlBrokerFactoryHandler.java:35) > at > org.apache.activemq.artemis.cli.factory.BrokerFactory. > createBrokerConfiguration(BrokerFactory.java:46) > at > org.apache.activemq.artemis.cli.factory.BrokerFactory. > createBrokerConfiguration(BrokerFactory.java:53) > at > org.apache.activemq.artemis.cli.commands.Configurable. > getBrokerDTO(Configurable.java:105) > at org.apache.activemq.artemis.cli.commands.Run.execute(Run. > java:65) > at > org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:149) > at org.apache.activemq.artemis.cli.Artemis.execute(Artemis. > java:96) > at org.apache.activemq.artemis.cli.Artemis.execute(Artemis. > java:123) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > 62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.activemq.artemis.boot.Artemis.execute(Artemis. > java:129)/ > > Where am I getting wrong? > > [1] > https://github.com/apache/activemq/blob/57795bafcea290c6879bb288822435 > c480a9212d/assembly/src/release/examples/conf/camel.xml > c480a9212d/assembly/src/release/examples/conf/camel.xml> > > > > -- > Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User- > f2341805.html > --001a113de342fc8706055e6b0a6e--