[erlang-questions] included_application vs. application vs. ensure_started()

Roberto Saccon <>
Fri May 4 19:02:15 CEST 2007


for having all the control and configuration at the same place i do in myapp
:

application:start(yaws);
yaws_api:setconf/2

On 5/4/07, Robert Raschke <> wrote:
>
> Hi,
>
> I'm looking into creating myself a release of a little Erlang program.
> This uses Yaws to expose a web interface.  What are the
> recommendations on how to assemble the applications?  Also what are
> the tradeoffs between these three approaches?
>
> 1.  Use completely separate applications for yaws and myapp and have
>     myapp call something like myapp:ensure_yaws_started/0 (which
>     starts and configure yaws if needed) when it starts.
>
> 2.  Use the applications entry in the myapp.app file to list yaws and
>     that "just" call yaws_api:setconf/2 in myapp.
>
> 3.  Use the included_applications in the myapp.app file to list yaws
>     and then call yaws:start_embedded/3 inside myapp_supervisor.
>
> Thanks for any advice,
> Robby
>
> --
> r dot raschke at tombob dot com
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



-- 
Roberto Saccon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070504/00e36fb5/attachment.html>


More information about the erlang-questions mailing list