brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhishek Sharma <>
Subject Re: Launching multiple apps when starting Brooklyn
Date Wed, 23 Dec 2015 17:10:26 GMT
Hey Graeme,

I can try this. Is there an actual code example of such a kind you can
point me to ?

Although, Ideally I would like to be able to do this from Java code itself.
The way I am looking at this is following:

1. Treating Brooklyn as my central guy for deploying and monitoring all my

2. I have extending the Main class and added some custom flags for my own
needs. I also extend the main.launch command and use my own. Were I have
over-ridden the call method. I use setAppToLaunch() to set the app I want
to launch. I was looking for some way to set multiple apps.

The Yaml file option you mentioned must also have to do something on
similar lines, can I do something similar is my own AppMain which extends
Brooklyn's Main Class.


On Wed, Dec 23, 2015 at 2:53 AM Graeme Miller <> wrote:

> Hi Abhishek,
> The Brooklyn launch command allows you to specify an application with the
> '-a' option. However, it only allows you to specify one application.
> This specified application can be either a Java Class or a YAML file. One
> solution to this would be to write a small YAML file that defines an
> application that starts both your node.js and drop-wizard entities. The
> file would contain only three lines:
> > services:
>    - type: com.abhishek.dropwizzard
>    - type: com.abhishek.nodejs
> You can then use the YAML file as the -a option. Would that be a suitable
> solution?
> Regards,
> Graeme
> On 23 December 2015 at 07:12, Abhishek Sharma <>
> wrote:
> > Hey guys,
> >
> > I am trying to make Brooklyn start my node.js web application and also a
> > drop-wizard based java service. I am using Java Blueprints and not YAML.
> >
> > How do I make brooklyn start multiple applications ?
> > My goal is to start these based on a command line parameters passed when
> > starting brooklyn.
> >
> > Thanks in advance,
> > Abhi
> >

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message