You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sukma Agung Verdianto <sa...@gmail.com> on 2006/03/27 05:15:20 UTC

hivemind.LoggingInterceptor?

Hi,

In my tapestry application, I'm trying to add method logging (provided by
hivemind.LoggingInterceptor)

-- hivemodule.xml --

...
<service-point id="daoService">
  <invoke-factory>
    <construct class="impl.DaoServiceImpl">
      <set-service property="userDao" service-id="UserDao"/>
      <set-service property="productDao" service-id="productDao"/>
    </construct>
  </invoke-factory>
  <interceptor service-id="hivemind.LoggingInterceptor"/>
</service-point>
...


Then, I inject that service to my page, its works but I can't see any log
information when I invoke the method.
Please help me...

Rdgs,
Verdianto

RE: hivemind.LoggingInterceptor?

Posted by James Carman <ja...@carmanconsulting.com>.
By the way, you typically don't have to specifically tell HiveMind to set
your properties with other services.  If HiveMind has exactly one service
point which matches the type of the property, it will automatically set it
(or "autowire").  This makes your hivemodule.xml file a lot easier to write.

-----Original Message-----
From: Sukma Agung Verdianto [mailto:save.nx@gmail.com] 
Sent: Sunday, March 26, 2006 10:15 PM
To: tapestry-user@jakarta.apache.org
Subject: hivemind.LoggingInterceptor?

Hi,

In my tapestry application, I'm trying to add method logging (provided by
hivemind.LoggingInterceptor)

-- hivemodule.xml --

...
<service-point id="daoService">
  <invoke-factory>
    <construct class="impl.DaoServiceImpl">
      <set-service property="userDao" service-id="UserDao"/>
      <set-service property="productDao" service-id="productDao"/>
    </construct>
  </invoke-factory>
  <interceptor service-id="hivemind.LoggingInterceptor"/>
</service-point>
...


Then, I inject that service to my page, its works but I can't see any log
information when I invoke the method.
Please help me...

Rdgs,
Verdianto



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: hivemind.LoggingInterceptor?

Posted by James Carman <ja...@carmanconsulting.com>.
Do you see any of the logging for that service point?  HiveMind will spit
out messages when creating proxies, setting properties, etc. for that
service point.  If you don't see those, then you don't have logging turned
on for that service point.

-----Original Message-----
From: Sukma Agung Verdianto [mailto:save.nx@gmail.com] 
Sent: Sunday, March 26, 2006 10:15 PM
To: tapestry-user@jakarta.apache.org
Subject: hivemind.LoggingInterceptor?

Hi,

In my tapestry application, I'm trying to add method logging (provided by
hivemind.LoggingInterceptor)

-- hivemodule.xml --

...
<service-point id="daoService">
  <invoke-factory>
    <construct class="impl.DaoServiceImpl">
      <set-service property="userDao" service-id="UserDao"/>
      <set-service property="productDao" service-id="productDao"/>
    </construct>
  </invoke-factory>
  <interceptor service-id="hivemind.LoggingInterceptor"/>
</service-point>
...


Then, I inject that service to my page, its works but I can't see any log
information when I invoke the method.
Please help me...

Rdgs,
Verdianto



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org