Thanks for your responses, but I still has the problem to put the
parameters into the ASO. I tried putting that into web.xml but the
examples to read the InitParams involve init() procedure and the
argument is the ServletContext. so I don't know how to access it if
Tapestry wrap it and the initial load is doing by hivemind AFAIK. I
tried with context (context.lookup(<String>)) but the logging don´t work
because never found the init-param key (I tried something like Tong's
book did with JDBC connection pool, but for initial parameters isn't the
way).
How I can send some parameters from hivemind or Tomcat to this
StateObjectFactory in order to finally logging works? The point here is
that I'm doing that in a library that return the Logger (Log4j) not via
Tapestry page (where I can Inject something) and is executed before
every page can be showed trying to guarantee that only one Logger is
running. Another thing is that the parameters should be send into the
constructor, but the StateObjectFactory interface has only
createStateObject() without parameters, so how... ??
Thanks
Peter Dawn escribió:
i use log4J. try using that.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]