Look at the Embedded example.

https://github.com/apache/activemq-artemis/tree/master/examples/features/standard/embedded

You have to embed the instance of the server, set the broker.xml and start it.

On Mon, Jul 11, 2016 at 4:15 AM, aries.aries
<[email protected]> wrote:
> Hi Justin,
>
> I am able to run a single instance via the IDE. Now I want to run a cluster
> for which I need to make changes to the broker.xml to configure the live
> and backup servers, but I cannot locate the configuration file. I cannot
> directly use the binary release because I have implemented an algorithm
> (using MQTT protocol) and hence I am starting the broker by creating a
> server instance in the code in a separate class file. Is there a broker.xml
> file in the source code that I can edit to configure as per my need?
>
> Thanks,
> Vicky
>
> On Mon, Jul 11, 2016 at 4:03 AM, Justin Bertram-2 [via ActiveMQ] <
> [email protected]> wrote:
>
>> As John mentioned, you probably want to download the binary release rather
>> than the source tree at which point you can follow the instructions here
>> [1].
>>
>> However, if you want to use the source tree you downloaded then you can
>> build it by running 'mvn clean install -Prelease' and the distribution will
>> be in the artemis-distribution/target directory.
>>
>>
>> Justin
>>
>> [1] http://activemq.apache.org/artemis/docs/1.3.0/using-server.html
>>
>> ----- Original Message -----
>> From: "aries.aries" <[hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=4713802&i=0>>
>> To: [hidden email] <http:///user/SendEmail.jtp?type=node&node=4713802&i=1>
>> Sent: Sunday, July 10, 2016 4:16:12 AM
>> Subject: broker.xml location in Apache Artemis
>>
>> I downloaded Apache Artemis project from github. Artemis documentation
>> mentions about settings to be done in the file "broker.xml". However, I
>> could not locate the file. I looked into the location
>>
>> https://github.com/apache/activemq-artemis/tree/master/artemis-server/src/main/resources/schema
>> and the file is not present. There are many broker.xml files in other
>> projects.
>>
>> Could someone please tell the location of the broker.xml file that is
>> required to run the Artemis broker? I am running through IDE. Thanks.
>>
>>
>>
>> --
>> View this message in context:
>> http://activemq.2283324.n4.nabble.com/broker-xml-location-in-Apache-Artemis-tp4713797.html
>> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://activemq.2283324.n4.nabble.com/broker-xml-location-in-Apache-Artemis-tp4713797p4713802.html
>> To unsubscribe from broker.xml location in Apache Artemis, click here
>> <http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4713797&code=YXJpZXMxMjMuYXJpZXMxMjNAZ21haWwuY29tfDQ3MTM3OTd8MTQzNzc4NzUxNw==>
>> .
>> NAML
>> <http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/broker-xml-location-in-Apache-Artemis-tp4713797p4713806.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.



-- 
Clebert Suconic

Reply via email to