Re: Running tapestry app using embedded container in production

2015-09-02 Thread Simon Raveh
Hi Thilo, I'm planing to follow the same process, do you mind sharing some more information and examples. Are you using tapestry-spring integartion if yes, any specific configuration I should look for Thanks, Simon On 7/28/15 2:30 AM, "Thilo Tanner" wrote: >Hi Dmitry, > >Yes, we are running T

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Barry Books
I did implement an eager loading module a while ago. The nice thing about that was you could also change the log levels dynamically, but after a while maintaining it became too much work. I like the stdout idea. It's simple and I was thinking about moving all my logging to Apache Kafka so I could

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Thiago H de Paula Figueiredo
On Tue, 28 Jul 2015 08:21:30 -0300, Dmitry Gusev wrote: This is exactly how we do it currently with standalone tomcat, with one difference -- we implemented our own symbol resolution strategy to get symbols from an external file, instead of passing them all through command line. The compa

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Dmitry Gusev
Hi Barry, we use slf4j/logback passing "-Dlogback.configurationFile=/path/to/config.xml" to JVM that's picked up by tomcat logback.xml sources shared app.properties file to get values for configuring appenders, smth like this: http://stackoverflow.com/questions/11105652/how-do-i-make-logback-read

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Thilo Tanner
Hi Barry, As an example, we use two different strategies (depending on what we need): Easy solution: Create an executable WAR file and configure a normal console logger which writes everything to stdout. From there you pipe the log messages to a file of your choice. Something like: exec $JAVA_

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Barry Books
How do you handle logging configuration? At first I used different log4j.properties files and specified which one to use on the command line but now I often deploy Jenkins in the same Tomcat so I switched to messing with the class path to get the right properties file. Neither solution is ideal. An

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Dmitry Gusev
Got it, thank you. This is exactly how we do it currently with standalone tomcat, with one difference -- we implemented our own symbol resolution strategy to get symbols from an external file, instead of passing them all through command line. I was just curios if somebody created some tapestry mo

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Thilo Tanner
Hi Dmitry, In our case, yes we hardcode and commit those credentials to our repositories. In my defense, we host all our code in-house and have various other security measures in place. Database credentials are normally different from client host to client host and therefore such credentials ar

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Dmitry Gusev
Hi Thilo, So you're hardcoding all your staging/production settings in special tapestry modules, and committing them to the same source code repository as your app's codebase, right? On Tue, Jul 28, 2015 at 1:47 PM, Thilo Tanner wrote: > Hi Dmitry, > > To configure our apps, we mainly use what

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Thilo Tanner
Hi Dmitry, To configure our apps, we mainly use what Tapestry offers out-of-the-box. I recommend to create a dedicated Tapestry module for each of your environments as described here: http://tapestry.apache.org/configuration.html#Configuration-SettingExecutionModes In such a module, you can ov

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Dmitry Gusev
Hi Thilo, and how in this case you configure your executable JAR? Are you using maven profiles & that war file contains all configuration, or you create "universal" binary and provide configuration at runtime via system properties or external .properties file? I know this should be pretty easy t

Re: Running tapestry app using embedded container in production

2015-07-28 Thread Thilo Tanner
Hi Dmitry, Yes, we are running T5.4 apps in production by embedding Undertow (Servlet container from Wildfly). With Tapestry, such a setup is relatively easy to achieve: You create an application class that bootstraps the Tapestry filter in Undertow: http://undertow.io/undertow-docs/undertow-