You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by jieryn <ji...@gmail.com> on 2015/11/05 12:50:30 UTC

Re: tomee:exec built executable, dynamic port setting?

This placeholder in server.xml, does it support the use of a default
value if no value is specified by the user? Kind of the way bash
variable expansion works? This would be ideal..

On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau
<rm...@gmail.com> wrote:
> If you use a placeholder in server.xml passing it in
> additionalSystemProperties works.
>
> Using tomee embedded main is an alternative.
> Le 30 oct. 2015 07:02, "jieryn" <ji...@gmail.com> a écrit :
>
>> How can a user override the ports I specified during the building of
>> the executable war? The tomcat:exec built executable allows command
>> line flag overriding. I looked through the documentation and haven't
>> discovered it, sorry, any help is appreciated, thanks!
>>

Re: tomee:exec built executable, dynamic port setting?

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Jira is up to date with normally the entry points for all the new features.
Happy to help if anything is unclear in there.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-11-05 14:04 GMT-08:00 Alex Soto <as...@gmail.com>:

> So true, I am going to at least document this. Please Romain any new
> feature that you implement for TomEE 7, can you send me an email with the
> issue? I will check the commit and try to document it.
>
> Alex.
>
> El dj., 5 nov. 2015 a les 20:06, Romain Manni-Bucau (<
> rmannibucau@gmail.com>)
> va escriure:
>
> > Well this is the same time issue we all know. I try to put most of the
> doc
> > in jira but writing the doc and samples at the same time needs a lost of
> > investments I cant handle ATM. This also shows that a community and helps
> > on Open Source projects is not only about code :).
> >
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <http://rmannibucau.wordpress.com> | Github <
> > https://github.com/rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > <http://www.tomitribe.com>
> >
> > 2015-11-05 11:02 GMT-08:00 Alex Soto <as...@gmail.com>:
> >
> > > Yes there is a lot of secrets of TomEE that are only on Romain head or
> in
> > > JIRA, I think it would be great that to Consider an issue closed would
> > also
> > > imply touching a document called what-toexpect.adoc that shows an
> example
> > > of a new feature. And then this could be used as release notes for
> users
> > > and become a part of the documentation
> > >
> > > Alex
> > > El dj, 5 nov 2015 a les 18:19 Daniel Cunha <da...@gmail.com> va
> > > escriure:
> > >
> > > > @Alex,
> > > >
> > > > +1
> > > >
> > > >
> > > > On Thu, Nov 5, 2015 at 1:50 PM, Alex Soto <as...@gmail.com> wrote:
> > > >
> > > > > I think this feature should be documented as well in tomee maven
> > page.
> > > > >
> > > > > El dj., 5 nov. 2015 a les 16:53, Romain Manni-Bucau (<
> > > > > rmannibucau@gmail.com>)
> > > > > va escriure:
> > > > >
> > > > > > https://issues.apache.org/jira/browse/TOMEE-1653
> > > > > >
> > > > > >
> > > > > > Romain Manni-Bucau
> > > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > > https://github.com/rmannibucau> |
> > > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > > > > > <http://www.tomitribe.com>
> > > > > >
> > > > > > 2015-11-05 6:10 GMT-08:00 Romain Manni-Bucau <
> > rmannibucau@gmail.com
> > > >:
> > > > > >
> > > > > > > Yes it is tomcat so no defaults.
> > > > > > >
> > > > > > > Ill surely hack a way to change the main class so you could set
> > > them
> > > > > > > manually.
> > > > > > > Le 5 nov. 2015 05:47, "Alex Soto" <as...@gmail.com> a écrit
> :
> > > > > > >
> > > > > > >> Yes I know, sadly I think that this is provided by Tomcat and
> > not
> > > > > TomEE
> > > > > > >>
> > > > > > >> El dj., 5 nov. 2015 a les 13:32, jieryn (<ji...@gmail.com>)
> va
> > > > > > escriure:
> > > > > > >>
> > > > > > >> > Yes, thank you, Alex.
> > > > > > >> >
> > > > > > >> > When I ask about a default value, by this I mean in
> server.xml
> > > > there
> > > > > > >> > should be toleration of a default value for the variable.
> E.g.
> > > > > > >> > ${tomcat.http.port:-8080}, where 8080 is used if
> > > tomcat.http.port
> > > > is
> > > > > > >> > not set.
> > > > > > >> >
> > > > > > >> > This is useful because it allows easy parameter override,
> but
> > > with
> > > > > > >> > sensible default value. This way, users who do not need to
> > > > customize
> > > > > > >> > are not burdened with having to type, and possibly mistake,
> > all
> > > > the
> > > > > > >> > -DadditionalSystemProperties=-Dtomcat.http.port=8080
> > > configuration
> > > > > > >> > values.
> > > > > > >> >
> > > > > > >> > On Thu, Nov 5, 2015 at 7:08 AM, Alex Soto <
> asotobu@gmail.com>
> > > > > wrote:
> > > > > > >> > > Look this is an example of what Romain told you:
> > > > > > >> > >
> > > > > > >> > > java -jar
> > > -DadditionalSystemProperties=-Dtomcat.http.port=$PORT
> > > > > > >> > > quote-1.0.0-exec.jar
> > > > > > >> > >
> > > > > > >> > > And in server.xml I had defined ${tomcat.http.port} in the
> > > > > required
> > > > > > >> > place.
> > > > > > >> > >
> > > > > > >> > > El dj., 5 nov. 2015 a les 12:50, jieryn (<
> jieryn@gmail.com
> > >)
> > > va
> > > > > > >> > escriure:
> > > > > > >> > >
> > > > > > >> > >> This placeholder in server.xml, does it support the use
> of
> > a
> > > > > > default
> > > > > > >> > >> value if no value is specified by the user? Kind of the
> way
> > > > bash
> > > > > > >> > >> variable expansion works? This would be ideal..
> > > > > > >> > >>
> > > > > > >> > >> On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau
> > > > > > >> > >> <rm...@gmail.com> wrote:
> > > > > > >> > >> > If you use a placeholder in server.xml passing it in
> > > > > > >> > >> > additionalSystemProperties works.
> > > > > > >> > >> >
> > > > > > >> > >> > Using tomee embedded main is an alternative.
> > > > > > >> > >> > Le 30 oct. 2015 07:02, "jieryn" <ji...@gmail.com> a
> > > écrit :
> > > > > > >> > >> >
> > > > > > >> > >> >> How can a user override the ports I specified during
> the
> > > > > > building
> > > > > > >> of
> > > > > > >> > >> >> the executable war? The tomcat:exec built executable
> > > allows
> > > > > > >> command
> > > > > > >> > >> >> line flag overriding. I looked through the
> documentation
> > > and
> > > > > > >> haven't
> > > > > > >> > >> >> discovered it, sorry, any help is appreciated, thanks!
> > > > > > >> > >> >>
> > > > > > >> > >>
> > > > > > >> >
> > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Daniel Cunha
> > > > https://twitter.com/dvlc_
> > > > http://www.tomitribe.com
> > > >
> > >
> >
>

Re: tomee:exec built executable, dynamic port setting?

Posted by Alex Soto <as...@gmail.com>.
So true, I am going to at least document this. Please Romain any new
feature that you implement for TomEE 7, can you send me an email with the
issue? I will check the commit and try to document it.

Alex.

El dj., 5 nov. 2015 a les 20:06, Romain Manni-Bucau (<rm...@gmail.com>)
va escriure:

> Well this is the same time issue we all know. I try to put most of the doc
> in jira but writing the doc and samples at the same time needs a lost of
> investments I cant handle ATM. This also shows that a community and helps
> on Open Source projects is not only about code :).
>
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> <http://www.tomitribe.com>
>
> 2015-11-05 11:02 GMT-08:00 Alex Soto <as...@gmail.com>:
>
> > Yes there is a lot of secrets of TomEE that are only on Romain head or in
> > JIRA, I think it would be great that to Consider an issue closed would
> also
> > imply touching a document called what-toexpect.adoc that shows an example
> > of a new feature. And then this could be used as release notes for users
> > and become a part of the documentation
> >
> > Alex
> > El dj, 5 nov 2015 a les 18:19 Daniel Cunha <da...@gmail.com> va
> > escriure:
> >
> > > @Alex,
> > >
> > > +1
> > >
> > >
> > > On Thu, Nov 5, 2015 at 1:50 PM, Alex Soto <as...@gmail.com> wrote:
> > >
> > > > I think this feature should be documented as well in tomee maven
> page.
> > > >
> > > > El dj., 5 nov. 2015 a les 16:53, Romain Manni-Bucau (<
> > > > rmannibucau@gmail.com>)
> > > > va escriure:
> > > >
> > > > > https://issues.apache.org/jira/browse/TOMEE-1653
> > > > >
> > > > >
> > > > > Romain Manni-Bucau
> > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > https://github.com/rmannibucau> |
> > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > > > > <http://www.tomitribe.com>
> > > > >
> > > > > 2015-11-05 6:10 GMT-08:00 Romain Manni-Bucau <
> rmannibucau@gmail.com
> > >:
> > > > >
> > > > > > Yes it is tomcat so no defaults.
> > > > > >
> > > > > > Ill surely hack a way to change the main class so you could set
> > them
> > > > > > manually.
> > > > > > Le 5 nov. 2015 05:47, "Alex Soto" <as...@gmail.com> a écrit :
> > > > > >
> > > > > >> Yes I know, sadly I think that this is provided by Tomcat and
> not
> > > > TomEE
> > > > > >>
> > > > > >> El dj., 5 nov. 2015 a les 13:32, jieryn (<ji...@gmail.com>) va
> > > > > escriure:
> > > > > >>
> > > > > >> > Yes, thank you, Alex.
> > > > > >> >
> > > > > >> > When I ask about a default value, by this I mean in server.xml
> > > there
> > > > > >> > should be toleration of a default value for the variable. E.g.
> > > > > >> > ${tomcat.http.port:-8080}, where 8080 is used if
> > tomcat.http.port
> > > is
> > > > > >> > not set.
> > > > > >> >
> > > > > >> > This is useful because it allows easy parameter override, but
> > with
> > > > > >> > sensible default value. This way, users who do not need to
> > > customize
> > > > > >> > are not burdened with having to type, and possibly mistake,
> all
> > > the
> > > > > >> > -DadditionalSystemProperties=-Dtomcat.http.port=8080
> > configuration
> > > > > >> > values.
> > > > > >> >
> > > > > >> > On Thu, Nov 5, 2015 at 7:08 AM, Alex Soto <as...@gmail.com>
> > > > wrote:
> > > > > >> > > Look this is an example of what Romain told you:
> > > > > >> > >
> > > > > >> > > java -jar
> > -DadditionalSystemProperties=-Dtomcat.http.port=$PORT
> > > > > >> > > quote-1.0.0-exec.jar
> > > > > >> > >
> > > > > >> > > And in server.xml I had defined ${tomcat.http.port} in the
> > > > required
> > > > > >> > place.
> > > > > >> > >
> > > > > >> > > El dj., 5 nov. 2015 a les 12:50, jieryn (<jieryn@gmail.com
> >)
> > va
> > > > > >> > escriure:
> > > > > >> > >
> > > > > >> > >> This placeholder in server.xml, does it support the use of
> a
> > > > > default
> > > > > >> > >> value if no value is specified by the user? Kind of the way
> > > bash
> > > > > >> > >> variable expansion works? This would be ideal..
> > > > > >> > >>
> > > > > >> > >> On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau
> > > > > >> > >> <rm...@gmail.com> wrote:
> > > > > >> > >> > If you use a placeholder in server.xml passing it in
> > > > > >> > >> > additionalSystemProperties works.
> > > > > >> > >> >
> > > > > >> > >> > Using tomee embedded main is an alternative.
> > > > > >> > >> > Le 30 oct. 2015 07:02, "jieryn" <ji...@gmail.com> a
> > écrit :
> > > > > >> > >> >
> > > > > >> > >> >> How can a user override the ports I specified during the
> > > > > building
> > > > > >> of
> > > > > >> > >> >> the executable war? The tomcat:exec built executable
> > allows
> > > > > >> command
> > > > > >> > >> >> line flag overriding. I looked through the documentation
> > and
> > > > > >> haven't
> > > > > >> > >> >> discovered it, sorry, any help is appreciated, thanks!
> > > > > >> > >> >>
> > > > > >> > >>
> > > > > >> >
> > > > > >>
> > > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Daniel Cunha
> > > https://twitter.com/dvlc_
> > > http://www.tomitribe.com
> > >
> >
>

Re: tomee:exec built executable, dynamic port setting?

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Well this is the same time issue we all know. I try to put most of the doc
in jira but writing the doc and samples at the same time needs a lost of
investments I cant handle ATM. This also shows that a community and helps
on Open Source projects is not only about code :).


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-11-05 11:02 GMT-08:00 Alex Soto <as...@gmail.com>:

> Yes there is a lot of secrets of TomEE that are only on Romain head or in
> JIRA, I think it would be great that to Consider an issue closed would also
> imply touching a document called what-toexpect.adoc that shows an example
> of a new feature. And then this could be used as release notes for users
> and become a part of the documentation
>
> Alex
> El dj, 5 nov 2015 a les 18:19 Daniel Cunha <da...@gmail.com> va
> escriure:
>
> > @Alex,
> >
> > +1
> >
> >
> > On Thu, Nov 5, 2015 at 1:50 PM, Alex Soto <as...@gmail.com> wrote:
> >
> > > I think this feature should be documented as well in tomee maven page.
> > >
> > > El dj., 5 nov. 2015 a les 16:53, Romain Manni-Bucau (<
> > > rmannibucau@gmail.com>)
> > > va escriure:
> > >
> > > > https://issues.apache.org/jira/browse/TOMEE-1653
> > > >
> > > >
> > > > Romain Manni-Bucau
> > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > <http://rmannibucau.wordpress.com> | Github <
> > > > https://github.com/rmannibucau> |
> > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > > > <http://www.tomitribe.com>
> > > >
> > > > 2015-11-05 6:10 GMT-08:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> > > >
> > > > > Yes it is tomcat so no defaults.
> > > > >
> > > > > Ill surely hack a way to change the main class so you could set
> them
> > > > > manually.
> > > > > Le 5 nov. 2015 05:47, "Alex Soto" <as...@gmail.com> a écrit :
> > > > >
> > > > >> Yes I know, sadly I think that this is provided by Tomcat and not
> > > TomEE
> > > > >>
> > > > >> El dj., 5 nov. 2015 a les 13:32, jieryn (<ji...@gmail.com>) va
> > > > escriure:
> > > > >>
> > > > >> > Yes, thank you, Alex.
> > > > >> >
> > > > >> > When I ask about a default value, by this I mean in server.xml
> > there
> > > > >> > should be toleration of a default value for the variable. E.g.
> > > > >> > ${tomcat.http.port:-8080}, where 8080 is used if
> tomcat.http.port
> > is
> > > > >> > not set.
> > > > >> >
> > > > >> > This is useful because it allows easy parameter override, but
> with
> > > > >> > sensible default value. This way, users who do not need to
> > customize
> > > > >> > are not burdened with having to type, and possibly mistake, all
> > the
> > > > >> > -DadditionalSystemProperties=-Dtomcat.http.port=8080
> configuration
> > > > >> > values.
> > > > >> >
> > > > >> > On Thu, Nov 5, 2015 at 7:08 AM, Alex Soto <as...@gmail.com>
> > > wrote:
> > > > >> > > Look this is an example of what Romain told you:
> > > > >> > >
> > > > >> > > java -jar
> -DadditionalSystemProperties=-Dtomcat.http.port=$PORT
> > > > >> > > quote-1.0.0-exec.jar
> > > > >> > >
> > > > >> > > And in server.xml I had defined ${tomcat.http.port} in the
> > > required
> > > > >> > place.
> > > > >> > >
> > > > >> > > El dj., 5 nov. 2015 a les 12:50, jieryn (<ji...@gmail.com>)
> va
> > > > >> > escriure:
> > > > >> > >
> > > > >> > >> This placeholder in server.xml, does it support the use of a
> > > > default
> > > > >> > >> value if no value is specified by the user? Kind of the way
> > bash
> > > > >> > >> variable expansion works? This would be ideal..
> > > > >> > >>
> > > > >> > >> On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau
> > > > >> > >> <rm...@gmail.com> wrote:
> > > > >> > >> > If you use a placeholder in server.xml passing it in
> > > > >> > >> > additionalSystemProperties works.
> > > > >> > >> >
> > > > >> > >> > Using tomee embedded main is an alternative.
> > > > >> > >> > Le 30 oct. 2015 07:02, "jieryn" <ji...@gmail.com> a
> écrit :
> > > > >> > >> >
> > > > >> > >> >> How can a user override the ports I specified during the
> > > > building
> > > > >> of
> > > > >> > >> >> the executable war? The tomcat:exec built executable
> allows
> > > > >> command
> > > > >> > >> >> line flag overriding. I looked through the documentation
> and
> > > > >> haven't
> > > > >> > >> >> discovered it, sorry, any help is appreciated, thanks!
> > > > >> > >> >>
> > > > >> > >>
> > > > >> >
> > > > >>
> > > > >
> > > >
> > >
> >
> >
> >
> > --
> > Daniel Cunha
> > https://twitter.com/dvlc_
> > http://www.tomitribe.com
> >
>

Re: tomee:exec built executable, dynamic port setting?

Posted by Alex Soto <as...@gmail.com>.
Yes there is a lot of secrets of TomEE that are only on Romain head or in
JIRA, I think it would be great that to Consider an issue closed would also
imply touching a document called what-toexpect.adoc that shows an example
of a new feature. And then this could be used as release notes for users
and become a part of the documentation

Alex
El dj, 5 nov 2015 a les 18:19 Daniel Cunha <da...@gmail.com> va
escriure:

> @Alex,
>
> +1
>
>
> On Thu, Nov 5, 2015 at 1:50 PM, Alex Soto <as...@gmail.com> wrote:
>
> > I think this feature should be documented as well in tomee maven page.
> >
> > El dj., 5 nov. 2015 a les 16:53, Romain Manni-Bucau (<
> > rmannibucau@gmail.com>)
> > va escriure:
> >
> > > https://issues.apache.org/jira/browse/TOMEE-1653
> > >
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > <http://rmannibucau.wordpress.com> | Github <
> > > https://github.com/rmannibucau> |
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > > <http://www.tomitribe.com>
> > >
> > > 2015-11-05 6:10 GMT-08:00 Romain Manni-Bucau <rm...@gmail.com>:
> > >
> > > > Yes it is tomcat so no defaults.
> > > >
> > > > Ill surely hack a way to change the main class so you could set them
> > > > manually.
> > > > Le 5 nov. 2015 05:47, "Alex Soto" <as...@gmail.com> a écrit :
> > > >
> > > >> Yes I know, sadly I think that this is provided by Tomcat and not
> > TomEE
> > > >>
> > > >> El dj., 5 nov. 2015 a les 13:32, jieryn (<ji...@gmail.com>) va
> > > escriure:
> > > >>
> > > >> > Yes, thank you, Alex.
> > > >> >
> > > >> > When I ask about a default value, by this I mean in server.xml
> there
> > > >> > should be toleration of a default value for the variable. E.g.
> > > >> > ${tomcat.http.port:-8080}, where 8080 is used if tomcat.http.port
> is
> > > >> > not set.
> > > >> >
> > > >> > This is useful because it allows easy parameter override, but with
> > > >> > sensible default value. This way, users who do not need to
> customize
> > > >> > are not burdened with having to type, and possibly mistake, all
> the
> > > >> > -DadditionalSystemProperties=-Dtomcat.http.port=8080 configuration
> > > >> > values.
> > > >> >
> > > >> > On Thu, Nov 5, 2015 at 7:08 AM, Alex Soto <as...@gmail.com>
> > wrote:
> > > >> > > Look this is an example of what Romain told you:
> > > >> > >
> > > >> > > java -jar -DadditionalSystemProperties=-Dtomcat.http.port=$PORT
> > > >> > > quote-1.0.0-exec.jar
> > > >> > >
> > > >> > > And in server.xml I had defined ${tomcat.http.port} in the
> > required
> > > >> > place.
> > > >> > >
> > > >> > > El dj., 5 nov. 2015 a les 12:50, jieryn (<ji...@gmail.com>) va
> > > >> > escriure:
> > > >> > >
> > > >> > >> This placeholder in server.xml, does it support the use of a
> > > default
> > > >> > >> value if no value is specified by the user? Kind of the way
> bash
> > > >> > >> variable expansion works? This would be ideal..
> > > >> > >>
> > > >> > >> On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau
> > > >> > >> <rm...@gmail.com> wrote:
> > > >> > >> > If you use a placeholder in server.xml passing it in
> > > >> > >> > additionalSystemProperties works.
> > > >> > >> >
> > > >> > >> > Using tomee embedded main is an alternative.
> > > >> > >> > Le 30 oct. 2015 07:02, "jieryn" <ji...@gmail.com> a écrit :
> > > >> > >> >
> > > >> > >> >> How can a user override the ports I specified during the
> > > building
> > > >> of
> > > >> > >> >> the executable war? The tomcat:exec built executable allows
> > > >> command
> > > >> > >> >> line flag overriding. I looked through the documentation and
> > > >> haven't
> > > >> > >> >> discovered it, sorry, any help is appreciated, thanks!
> > > >> > >> >>
> > > >> > >>
> > > >> >
> > > >>
> > > >
> > >
> >
>
>
>
> --
> Daniel Cunha
> https://twitter.com/dvlc_
> http://www.tomitribe.com
>

Re: tomee:exec built executable, dynamic port setting?

Posted by Daniel Cunha <da...@gmail.com>.
@Alex,

+1


On Thu, Nov 5, 2015 at 1:50 PM, Alex Soto <as...@gmail.com> wrote:

> I think this feature should be documented as well in tomee maven page.
>
> El dj., 5 nov. 2015 a les 16:53, Romain Manni-Bucau (<
> rmannibucau@gmail.com>)
> va escriure:
>
> > https://issues.apache.org/jira/browse/TOMEE-1653
> >
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <http://rmannibucau.wordpress.com> | Github <
> > https://github.com/rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > <http://www.tomitribe.com>
> >
> > 2015-11-05 6:10 GMT-08:00 Romain Manni-Bucau <rm...@gmail.com>:
> >
> > > Yes it is tomcat so no defaults.
> > >
> > > Ill surely hack a way to change the main class so you could set them
> > > manually.
> > > Le 5 nov. 2015 05:47, "Alex Soto" <as...@gmail.com> a écrit :
> > >
> > >> Yes I know, sadly I think that this is provided by Tomcat and not
> TomEE
> > >>
> > >> El dj., 5 nov. 2015 a les 13:32, jieryn (<ji...@gmail.com>) va
> > escriure:
> > >>
> > >> > Yes, thank you, Alex.
> > >> >
> > >> > When I ask about a default value, by this I mean in server.xml there
> > >> > should be toleration of a default value for the variable. E.g.
> > >> > ${tomcat.http.port:-8080}, where 8080 is used if tomcat.http.port is
> > >> > not set.
> > >> >
> > >> > This is useful because it allows easy parameter override, but with
> > >> > sensible default value. This way, users who do not need to customize
> > >> > are not burdened with having to type, and possibly mistake, all the
> > >> > -DadditionalSystemProperties=-Dtomcat.http.port=8080 configuration
> > >> > values.
> > >> >
> > >> > On Thu, Nov 5, 2015 at 7:08 AM, Alex Soto <as...@gmail.com>
> wrote:
> > >> > > Look this is an example of what Romain told you:
> > >> > >
> > >> > > java -jar -DadditionalSystemProperties=-Dtomcat.http.port=$PORT
> > >> > > quote-1.0.0-exec.jar
> > >> > >
> > >> > > And in server.xml I had defined ${tomcat.http.port} in the
> required
> > >> > place.
> > >> > >
> > >> > > El dj., 5 nov. 2015 a les 12:50, jieryn (<ji...@gmail.com>) va
> > >> > escriure:
> > >> > >
> > >> > >> This placeholder in server.xml, does it support the use of a
> > default
> > >> > >> value if no value is specified by the user? Kind of the way bash
> > >> > >> variable expansion works? This would be ideal..
> > >> > >>
> > >> > >> On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau
> > >> > >> <rm...@gmail.com> wrote:
> > >> > >> > If you use a placeholder in server.xml passing it in
> > >> > >> > additionalSystemProperties works.
> > >> > >> >
> > >> > >> > Using tomee embedded main is an alternative.
> > >> > >> > Le 30 oct. 2015 07:02, "jieryn" <ji...@gmail.com> a écrit :
> > >> > >> >
> > >> > >> >> How can a user override the ports I specified during the
> > building
> > >> of
> > >> > >> >> the executable war? The tomcat:exec built executable allows
> > >> command
> > >> > >> >> line flag overriding. I looked through the documentation and
> > >> haven't
> > >> > >> >> discovered it, sorry, any help is appreciated, thanks!
> > >> > >> >>
> > >> > >>
> > >> >
> > >>
> > >
> >
>



-- 
Daniel Cunha
https://twitter.com/dvlc_
http://www.tomitribe.com

Re: tomee:exec built executable, dynamic port setting?

Posted by Alex Soto <as...@gmail.com>.
I think this feature should be documented as well in tomee maven page.

El dj., 5 nov. 2015 a les 16:53, Romain Manni-Bucau (<rm...@gmail.com>)
va escriure:

> https://issues.apache.org/jira/browse/TOMEE-1653
>
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> <http://www.tomitribe.com>
>
> 2015-11-05 6:10 GMT-08:00 Romain Manni-Bucau <rm...@gmail.com>:
>
> > Yes it is tomcat so no defaults.
> >
> > Ill surely hack a way to change the main class so you could set them
> > manually.
> > Le 5 nov. 2015 05:47, "Alex Soto" <as...@gmail.com> a écrit :
> >
> >> Yes I know, sadly I think that this is provided by Tomcat and not TomEE
> >>
> >> El dj., 5 nov. 2015 a les 13:32, jieryn (<ji...@gmail.com>) va
> escriure:
> >>
> >> > Yes, thank you, Alex.
> >> >
> >> > When I ask about a default value, by this I mean in server.xml there
> >> > should be toleration of a default value for the variable. E.g.
> >> > ${tomcat.http.port:-8080}, where 8080 is used if tomcat.http.port is
> >> > not set.
> >> >
> >> > This is useful because it allows easy parameter override, but with
> >> > sensible default value. This way, users who do not need to customize
> >> > are not burdened with having to type, and possibly mistake, all the
> >> > -DadditionalSystemProperties=-Dtomcat.http.port=8080 configuration
> >> > values.
> >> >
> >> > On Thu, Nov 5, 2015 at 7:08 AM, Alex Soto <as...@gmail.com> wrote:
> >> > > Look this is an example of what Romain told you:
> >> > >
> >> > > java -jar -DadditionalSystemProperties=-Dtomcat.http.port=$PORT
> >> > > quote-1.0.0-exec.jar
> >> > >
> >> > > And in server.xml I had defined ${tomcat.http.port} in the required
> >> > place.
> >> > >
> >> > > El dj., 5 nov. 2015 a les 12:50, jieryn (<ji...@gmail.com>) va
> >> > escriure:
> >> > >
> >> > >> This placeholder in server.xml, does it support the use of a
> default
> >> > >> value if no value is specified by the user? Kind of the way bash
> >> > >> variable expansion works? This would be ideal..
> >> > >>
> >> > >> On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau
> >> > >> <rm...@gmail.com> wrote:
> >> > >> > If you use a placeholder in server.xml passing it in
> >> > >> > additionalSystemProperties works.
> >> > >> >
> >> > >> > Using tomee embedded main is an alternative.
> >> > >> > Le 30 oct. 2015 07:02, "jieryn" <ji...@gmail.com> a écrit :
> >> > >> >
> >> > >> >> How can a user override the ports I specified during the
> building
> >> of
> >> > >> >> the executable war? The tomcat:exec built executable allows
> >> command
> >> > >> >> line flag overriding. I looked through the documentation and
> >> haven't
> >> > >> >> discovered it, sorry, any help is appreciated, thanks!
> >> > >> >>
> >> > >>
> >> >
> >>
> >
>

Re: tomee:exec built executable, dynamic port setting?

Posted by Romain Manni-Bucau <rm...@gmail.com>.
https://issues.apache.org/jira/browse/TOMEE-1653


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-11-05 6:10 GMT-08:00 Romain Manni-Bucau <rm...@gmail.com>:

> Yes it is tomcat so no defaults.
>
> Ill surely hack a way to change the main class so you could set them
> manually.
> Le 5 nov. 2015 05:47, "Alex Soto" <as...@gmail.com> a écrit :
>
>> Yes I know, sadly I think that this is provided by Tomcat and not TomEE
>>
>> El dj., 5 nov. 2015 a les 13:32, jieryn (<ji...@gmail.com>) va escriure:
>>
>> > Yes, thank you, Alex.
>> >
>> > When I ask about a default value, by this I mean in server.xml there
>> > should be toleration of a default value for the variable. E.g.
>> > ${tomcat.http.port:-8080}, where 8080 is used if tomcat.http.port is
>> > not set.
>> >
>> > This is useful because it allows easy parameter override, but with
>> > sensible default value. This way, users who do not need to customize
>> > are not burdened with having to type, and possibly mistake, all the
>> > -DadditionalSystemProperties=-Dtomcat.http.port=8080 configuration
>> > values.
>> >
>> > On Thu, Nov 5, 2015 at 7:08 AM, Alex Soto <as...@gmail.com> wrote:
>> > > Look this is an example of what Romain told you:
>> > >
>> > > java -jar -DadditionalSystemProperties=-Dtomcat.http.port=$PORT
>> > > quote-1.0.0-exec.jar
>> > >
>> > > And in server.xml I had defined ${tomcat.http.port} in the required
>> > place.
>> > >
>> > > El dj., 5 nov. 2015 a les 12:50, jieryn (<ji...@gmail.com>) va
>> > escriure:
>> > >
>> > >> This placeholder in server.xml, does it support the use of a default
>> > >> value if no value is specified by the user? Kind of the way bash
>> > >> variable expansion works? This would be ideal..
>> > >>
>> > >> On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau
>> > >> <rm...@gmail.com> wrote:
>> > >> > If you use a placeholder in server.xml passing it in
>> > >> > additionalSystemProperties works.
>> > >> >
>> > >> > Using tomee embedded main is an alternative.
>> > >> > Le 30 oct. 2015 07:02, "jieryn" <ji...@gmail.com> a écrit :
>> > >> >
>> > >> >> How can a user override the ports I specified during the building
>> of
>> > >> >> the executable war? The tomcat:exec built executable allows
>> command
>> > >> >> line flag overriding. I looked through the documentation and
>> haven't
>> > >> >> discovered it, sorry, any help is appreciated, thanks!
>> > >> >>
>> > >>
>> >
>>
>

Re: tomee:exec built executable, dynamic port setting?

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Yes it is tomcat so no defaults.

Ill surely hack a way to change the main class so you could set them
manually.
Le 5 nov. 2015 05:47, "Alex Soto" <as...@gmail.com> a écrit :

> Yes I know, sadly I think that this is provided by Tomcat and not TomEE
>
> El dj., 5 nov. 2015 a les 13:32, jieryn (<ji...@gmail.com>) va escriure:
>
> > Yes, thank you, Alex.
> >
> > When I ask about a default value, by this I mean in server.xml there
> > should be toleration of a default value for the variable. E.g.
> > ${tomcat.http.port:-8080}, where 8080 is used if tomcat.http.port is
> > not set.
> >
> > This is useful because it allows easy parameter override, but with
> > sensible default value. This way, users who do not need to customize
> > are not burdened with having to type, and possibly mistake, all the
> > -DadditionalSystemProperties=-Dtomcat.http.port=8080 configuration
> > values.
> >
> > On Thu, Nov 5, 2015 at 7:08 AM, Alex Soto <as...@gmail.com> wrote:
> > > Look this is an example of what Romain told you:
> > >
> > > java -jar -DadditionalSystemProperties=-Dtomcat.http.port=$PORT
> > > quote-1.0.0-exec.jar
> > >
> > > And in server.xml I had defined ${tomcat.http.port} in the required
> > place.
> > >
> > > El dj., 5 nov. 2015 a les 12:50, jieryn (<ji...@gmail.com>) va
> > escriure:
> > >
> > >> This placeholder in server.xml, does it support the use of a default
> > >> value if no value is specified by the user? Kind of the way bash
> > >> variable expansion works? This would be ideal..
> > >>
> > >> On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau
> > >> <rm...@gmail.com> wrote:
> > >> > If you use a placeholder in server.xml passing it in
> > >> > additionalSystemProperties works.
> > >> >
> > >> > Using tomee embedded main is an alternative.
> > >> > Le 30 oct. 2015 07:02, "jieryn" <ji...@gmail.com> a écrit :
> > >> >
> > >> >> How can a user override the ports I specified during the building
> of
> > >> >> the executable war? The tomcat:exec built executable allows command
> > >> >> line flag overriding. I looked through the documentation and
> haven't
> > >> >> discovered it, sorry, any help is appreciated, thanks!
> > >> >>
> > >>
> >
>

Re: tomee:exec built executable, dynamic port setting?

Posted by Alex Soto <as...@gmail.com>.
Yes I know, sadly I think that this is provided by Tomcat and not TomEE

El dj., 5 nov. 2015 a les 13:32, jieryn (<ji...@gmail.com>) va escriure:

> Yes, thank you, Alex.
>
> When I ask about a default value, by this I mean in server.xml there
> should be toleration of a default value for the variable. E.g.
> ${tomcat.http.port:-8080}, where 8080 is used if tomcat.http.port is
> not set.
>
> This is useful because it allows easy parameter override, but with
> sensible default value. This way, users who do not need to customize
> are not burdened with having to type, and possibly mistake, all the
> -DadditionalSystemProperties=-Dtomcat.http.port=8080 configuration
> values.
>
> On Thu, Nov 5, 2015 at 7:08 AM, Alex Soto <as...@gmail.com> wrote:
> > Look this is an example of what Romain told you:
> >
> > java -jar -DadditionalSystemProperties=-Dtomcat.http.port=$PORT
> > quote-1.0.0-exec.jar
> >
> > And in server.xml I had defined ${tomcat.http.port} in the required
> place.
> >
> > El dj., 5 nov. 2015 a les 12:50, jieryn (<ji...@gmail.com>) va
> escriure:
> >
> >> This placeholder in server.xml, does it support the use of a default
> >> value if no value is specified by the user? Kind of the way bash
> >> variable expansion works? This would be ideal..
> >>
> >> On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau
> >> <rm...@gmail.com> wrote:
> >> > If you use a placeholder in server.xml passing it in
> >> > additionalSystemProperties works.
> >> >
> >> > Using tomee embedded main is an alternative.
> >> > Le 30 oct. 2015 07:02, "jieryn" <ji...@gmail.com> a écrit :
> >> >
> >> >> How can a user override the ports I specified during the building of
> >> >> the executable war? The tomcat:exec built executable allows command
> >> >> line flag overriding. I looked through the documentation and haven't
> >> >> discovered it, sorry, any help is appreciated, thanks!
> >> >>
> >>
>

Re: tomee:exec built executable, dynamic port setting?

Posted by jieryn <ji...@gmail.com>.
Yes, thank you, Alex.

When I ask about a default value, by this I mean in server.xml there
should be toleration of a default value for the variable. E.g.
${tomcat.http.port:-8080}, where 8080 is used if tomcat.http.port is
not set.

This is useful because it allows easy parameter override, but with
sensible default value. This way, users who do not need to customize
are not burdened with having to type, and possibly mistake, all the
-DadditionalSystemProperties=-Dtomcat.http.port=8080 configuration
values.

On Thu, Nov 5, 2015 at 7:08 AM, Alex Soto <as...@gmail.com> wrote:
> Look this is an example of what Romain told you:
>
> java -jar -DadditionalSystemProperties=-Dtomcat.http.port=$PORT
> quote-1.0.0-exec.jar
>
> And in server.xml I had defined ${tomcat.http.port} in the required place.
>
> El dj., 5 nov. 2015 a les 12:50, jieryn (<ji...@gmail.com>) va escriure:
>
>> This placeholder in server.xml, does it support the use of a default
>> value if no value is specified by the user? Kind of the way bash
>> variable expansion works? This would be ideal..
>>
>> On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau
>> <rm...@gmail.com> wrote:
>> > If you use a placeholder in server.xml passing it in
>> > additionalSystemProperties works.
>> >
>> > Using tomee embedded main is an alternative.
>> > Le 30 oct. 2015 07:02, "jieryn" <ji...@gmail.com> a écrit :
>> >
>> >> How can a user override the ports I specified during the building of
>> >> the executable war? The tomcat:exec built executable allows command
>> >> line flag overriding. I looked through the documentation and haven't
>> >> discovered it, sorry, any help is appreciated, thanks!
>> >>
>>

Re: tomee:exec built executable, dynamic port setting?

Posted by Alex Soto <as...@gmail.com>.
Look this is an example of what Romain told you:

java -jar -DadditionalSystemProperties=-Dtomcat.http.port=$PORT
quote-1.0.0-exec.jar

And in server.xml I had defined ${tomcat.http.port} in the required place.

El dj., 5 nov. 2015 a les 12:50, jieryn (<ji...@gmail.com>) va escriure:

> This placeholder in server.xml, does it support the use of a default
> value if no value is specified by the user? Kind of the way bash
> variable expansion works? This would be ideal..
>
> On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau
> <rm...@gmail.com> wrote:
> > If you use a placeholder in server.xml passing it in
> > additionalSystemProperties works.
> >
> > Using tomee embedded main is an alternative.
> > Le 30 oct. 2015 07:02, "jieryn" <ji...@gmail.com> a écrit :
> >
> >> How can a user override the ports I specified during the building of
> >> the executable war? The tomcat:exec built executable allows command
> >> line flag overriding. I looked through the documentation and haven't
> >> discovered it, sorry, any help is appreciated, thanks!
> >>
>