Hello,
I simplified the code so it does not use RequestGlobals which was giving me
NULL for this.requestGlobals.getHTTPServletRequest()
AppModule.java
=
...
binder.bind(HttpServletRequestFilter.class,
RequestLoggingFilter.class).withId("RequestLoggingFilter");
Do like this:
MDC.put("xxx", ...);
MDC.put("yyy", ...);
try {
return handler.service(request, response);
} finally {
MDC.remove("xxx")
MDC.remove("yyy")
}
or else you will have problems when your request throws an exception
Olle Hallin
Senior Java Developer and Architect
olle.hal...@c
Hi!
Borut Bolčina schrieb am 09.10.2009 14:55:32:
> this is what I did:
>
> public class RequestLoggingFilter implements HttpServletRequestFilter {
> public final RequestGlobals requestGlobals;
>
> public RequestLoggingFilter(final RequestGlobals requestGlobalss) {
> this.reque
Olle thanks,
this is what I did:
public class RequestLoggingFilter implements HttpServletRequestFilter {
public final RequestGlobals requestGlobals;
public RequestLoggingFilter(final RequestGlobals requestGlobalss) {
this.requestGlobals = requestGlobalss;
}
@Override
We do something similar. We have implemented a RequestFilter that pushes the
HttpSession ID (if any) onto the Log4j Nested Diagnostics Context (NDC)
before the request, and pops it afterwards.
I guess that the same approach could be used for pushing usernames in the
SLF4J MDC, provided that you can
Hello,
has anybody implemented logging with MDC %X{username}?
I would like to track users in my logs by their username and/or IP address.
Before I dive in, I just wanna ask if someone has already done it?
Thanks, Borut
I found one way to fix this problem. But I am not sure if that is good one.
(1) create one class to implement ObjectProvider
public class TapestrySpringBeanProvider implements ObjectProvider {
@Override
public T provide(Class clazz, AnnotationProvider ap,
ObjectLocator locat
I had a similar problem. Maybe this thread helps you:
http://www.nabble.com/T-5.1-How-to-inject-Spring-beans-by-name--td22934788.html
2009/6/17 haipeng du
> I try to inject spring beans to page class with
> @Inject
> @Id("baseDAO")
> private BaseDAO baseDAO
>
> It still gave me that "Spring con
I try to inject spring beans to page class with
@Inject
@Id("baseDAO")
private BaseDAO baseDAO
It still gave me that "Spring context contains 14 beans assignable to type
xx.BaseDAO
what should I do for this.
--
Haipeng Du
Salt Lake City
Hi all,
I am using tapestry-spring-security version 2.0.0-SNAPSHOT (awesome plugin
btw) and everything seems to work perfectly except when the combined steps
are executed below:
- go to a secured page with a form on it. i.e. @Secured("ROLE_ADMIN") public
class ...
- logout using the LogoutServic
an advantage to NOT having tapestry built on spring is that we can
drop in our legacy spring contexts where we don't want to upgrade from
1.x
I really think tapestry-ioc was designed in such a way to allow
maximum refactorability and ease of testing from the developer's
standpoint.
In
I apologize. I didn't mean to infer that it doesn't integrate nicely,
nor that it's not good. So don't take offense, I was just doing some
uneducated guesstimates on tapestry adoption.
The IoC is actually quite good once you get used to it (except for the
Aliases mechanism which I haven't lo
On Wed, 26 Dec 2007 13:07:49 -0200, Fernando Padilla <[EMAIL PROTECTED]>
wrote:
But my guess is that using a different IoC system is really hurting
adoption of tapestry. If tapestry could really integrate well with
spring, then it could be more easily understood/picked up/recommended by
I think we all agree that tapestry is generally amazing. And these
threads are really just nit-picks :)
So I'll go ahead and say that I kinda side with trying to use spring
instead of reinventing the wheel.
Though it's more important to get Tapestry to work, and part of that is
to make sure
Personally I attribute many of the T5 issues you mentioned to that fact
that it is largely a one man show. For the most part I agree with the
issues you are raising, I simply draw different conclusions. It comes
down to deciding which issue is heavier, and this of course is in the
hands of deve
I Agree with you on this but i have my own problems too.
I have about 6 years experience on working with Java Web Frameworks. such
as Struts, JSF , WebWorks...
I found that Tapestry (especially T5) is Much Better than others, but its
development process is so slow and unpredictable. I think tha
I couldn't disagree with you more. For people like you who are familiar
with spring, you may think the ioc part of T5 is a waste of time. That
makes sense if you use and are happy with spring. For people like me
it's a completely different story. I have been working with java for
years - on the
Dear Friends,
With this abilities that all we know about Frameworks like Spring,
is there any need to Tapestry Focus on providing Hibernate Integration Tools
or Tapestry IOC ?
i read Howards Documents about need for new Ioc for Tapestry, but i still
think that using Spring Ioc and Spring XML fil
T5 + Spring is in my opinion a very good choose. I let Spring integrate ORM
(Hibernate, JDBC, TopLink, etc).
sincerely, Arve Klev
2007/12/24, Mohammad Shamsi <[EMAIL PROTECTED]>:
>
> Hi All,
>
> i want to start new Java EE projecct, Formerly we used Spring + Struts in
> our projects.
> after abo
Hi Yuan,
what version of Spring ?
my you give me some info about your projects scale ?
and do you have any problem with integrating spring and tapestry ?
On Dec 26, 2007 12:50 PM, yuan gogo <[EMAIL PROTECTED]> wrote:
> I personally think T5 + spring + ibatis is very good.
> I'm using this com
I personally think T5 + spring + ibatis is very good.
I'm using this combination on our company's projects now!
2007/12/24, Mohammad Shamsi <[EMAIL PROTECTED]>:
>
> Hi All,
>
> i want to start new Java EE projecct, Formerly we used Spring + Struts in
> our projects.
> after about 4 month testin
Hi All,
i want to start new Java EE projecct, Formerly we used Spring + Struts in
our projects.
after about 4 month testing and reading about Tapestry 5, i decide to use
Tapestry 5 instead of Struts.
i read some limitations of tapestry-spring module in its home page and i
have no problem with t
>>
>>>>
>>>>> Hi
>>>>> I think this willhelp you,
>>>>> http://tapestry.apache.org/tapestry5/tapestry-spring/
>>>>>
>>>>>
>>>>>
>>>> Thanks,
>&g
my mail, I should see that I'm talked about this page.
>>>
>>> In this page in "Limitations" chapter it is writte that we can't inject
>>> Spring session bean but we have to retreive the WebApplicationContext
>>> and use it.
>>> But I
session bean but we have to retreive the WebApplicationContext
>> and use it.
>> But I don't know howto retreive this so famous WebApplicationContext
>> when I'm in a tapestry code page or component.
>>
>> cyrille.
>>
>>> cyrille37 wrote:
>>>
reive the WebApplicationContext
>> and use it.
>> But I don't know howto retreive this so famous WebApplicationContext
>> when I'm in a tapestry code page or component.
>>
>> cyrille.
>>
>>> cyrille37 wrote:
>>>
>>>
>&g
hi all,
has somebody managed to set up a project with tapestry-spring and
tapestry-acegi together? As soon as i add the tapestryspring filter to
web.xml, tapestry-acegi doesn't work anymore (based on the acegi demo app
from robin)
Exception constructing service 'RememberMeServices': Error invok
n but we have to retreive the WebApplicationContext
> and use it.
> But I don't know howto retreive this so famous WebApplicationContext
> when I'm in a tapestry code page or component.
>
> cyrille.
>> cyrille37 wrote:
>>
>>> Hi,
>>>
>&
ing session bean but we have to retreive the WebApplicationContext
and use it.
But I don't know howto retreive this so famous WebApplicationContext
when I'm in a tapestry code page or component.
cyrille.
cyrille37 wrote:
Hi,
In the T5 tapestry-spring documentation it is writed to
Hi
I think this willhelp you,
http://tapestry.apache.org/tapestry5/tapestry-spring/
cyrille37 wrote:
>
> Hi,
>
> In the T5 tapestry-spring documentation it is writed to don't use other
> Spring beans than Singleton ones.
> Inject the WebApplication
Hi,
In the T5 tapestry-spring documentation it is writed to don't use other
Spring beans than Singleton ones.
Inject the WebApplicationContext instead.
http://tapestry.apache.org/tapestry5/tapestry-spring/
But howto inject the WebApplicationContext ?
thanks
cy
I.e.,
public class FooDaoImpl
extends HibernateTemplate
implements FooDao // which extends HibernateOperations
{
// some custom Foo dao methods.
}
Perfecto and parsimonious.
bill
On 6/25/07, Massimo Lusetti <[EMAIL PROTECTED]> wrote:
On 6/26/07, Bill Holloway <[EMAIL PROTECTED]>
Thank you Massimo! That got it all solved.
bill
On 6/25/07, Massimo Lusetti <[EMAIL PROTECTED]> wrote:
On 6/26/07, Bill Holloway <[EMAIL PROTECTED]> wrote:
> I have the following DAO pattern:
>
> public class FooDaoImpl
> extends HibernateDaoSupport
> implements FooDao
> {
>
On Mon, Jun 25, 2007 at 06:02:16PM -0500, Bill Holloway wrote:
> I have the following DAO pattern:
>
> public class FooDaoImpl
> extends HibernateDaoSupport
> implements FooDao
> {
> // some custom Foo dao methods.
> }
>
> However, tapestry-ioc spring bean injection injects via inte
On 6/26/07, Bill Holloway <[EMAIL PROTECTED]> wrote:
I have the following DAO pattern:
public class FooDaoImpl
extends HibernateDaoSupport
implements FooDao
{
// some custom Foo dao methods.
}
However, tapestry-ioc spring bean injection injects via interface.
So, none of the
I have the following DAO pattern:
public class FooDaoImpl
extends HibernateDaoSupport
implements FooDao
{
// some custom Foo dao methods.
}
However, tapestry-ioc spring bean injection injects via interface.
So, none of the HibernateDaoSupport or HibernateTemplate methods like
s
36 matches
Mail list logo