interceptor

NHibernate inteceptor not called for changes in many-to-many set/list

I have an application that uses NHibrenate and I'm using an interceptor based solution for logging/auditing. Basically I have a class inheriting from EmptyInterceptor and overriding OnFlushDirty, OnSave and OnDelete. Everything works perfectly - except - when I add or remove from a set or list that is mapped using many-to-many without ...

Using OpenSessionInViewInterceptor with Hibernate and JSF 2

I'm building an application in Hibernate, Spring and JSF2 using only annotations. How can I take advantage of OpenSessionInViewInterceptor found in Spring to catch any hibernate session that might open within a bean? I'm trying to elegantly solve the common “failed to lazily initialize a collection of role: your.Class.assocation no se...

How to enable Hibernate Interceptor when i have my Hibernate Transaction managed by Spring ???

If i have a @OneToMany relationship with @Cascade(CascadeType.SAVE_UPDATE) as follows public class One { private Integer id; private List<Many> manyList = new ArrayList<Many>(); @Id @GeneratedValue public Integer getId() { return this.id; } @OneToMany @JoinColumn(name="ONE_ID", updateable=fals...

Issue intercepting property in Silverlight application

I am using Ninject as DI container in a Silverlight application. Now I am extending the application to support interception and started integrating DynamicProxy2 extension for Ninject. I am trying to intercept call to properties on a ViewModel and ending up getting following exception: “Attempt to access the method failed: System.Reflec...

Using an extended interceptor in struts2 does not work w/ action parameters

I have a default package w/ an interceptor configure, and i'm extending that package into another one and calling the same interceptor <action name="availability**"> <param name="subTab">availability</param> <interceptor-ref name="tabStack"/> <result>/WEB-INF/jsp/index.jsp?include=visibilit/...

Problem with execAndWait interceptor, SESSION lost

Hello, I am using execAndWait interceptor and it seems the session is lost after the interceptor.. my code is - struts-lcms.xml ... <action name="testAction" class="com.lcms.presentation.TestAction"> <interceptor-ref name="execAndWait"></interceptor-ref> <param name="delay">3000</param> <param name="delaySleepInterval"...

Ninject Intercept

from what dll can i get the extension of Intercept ? I've added Ninject.Extensions.Interception from http://github.com/danielmarbach/ninject.extensions.interception No luck there. Is there some sample working ? What I need is to make an interceptor that will path through from WcfClient to WcfServer a different functions with different...

Struts2 scope interceptor problem

Hello fellow geeks, I have a problem with Struts2's ScopeInterceptor: after the action that is set to be the end of a workflow is executed the interceptor doesn't clear the session for the element that was set at the beginning. This is how I have set up my classes and struts.xml: struts.xml <package name="build" extends="base-package...

How to configure a custom Spring PerformanceInterceptor for a Resource Method

I'm using Java/Spring/Jersey v1.0.3/Jboss. I want to configure a PerformanceInterceptor for my resource. How can I do this? Let's say I have the following configuration: <bean id="service" class="com.services.RESTfulService" /> <bean name="servicePointcut" class="org.springframework.aop.support.NameMatchMethodPointcut"> <property name="...

Register multiple interceptors in castle windsor fluent

How do I register multiple interceptors using the fluent API? ...

System.NotSupportedException: Parent does not have a default constructor. The default constructor must be explicitly defined.

I'm working with Ninject 2.0.2 Ninject.Extensions.Interception with DynamicProxy2 Castle.Core Castle.DynamicProxy2 The injection worked fine. Then I inserted the wcf between controller and bl layers. For interaction between the layers I've used the Ninject.Extensions.Interception of Ian Davis. I've used the DynamicProxy2 for creatin...

how to intercept and modify HTTP responses on server side?

Hi, I am working with a client/server application which uses HTTP, and my goal is to add new features to it. I can extend the client by hooking my own code to some specific events, but unfortunately the server is not customizable. Both client and server are in a Windows environment. My current problem is that performance is awful when ...

How to create a custom Spring LoginMessageInterceptor?

Hi, How can I create and register my own LoginMessageInterceptor in Spring? Thanks! ...

How we will access to the database from AuditTrailInterceptor?

Hi, I'm trying to access the database from Hibernate Interceptor (I need to audit only specific objects that are defined in a different table) and the access is impassable (I get exceptions). Is there a way to access database in interceptor? My AuditTrailInterceptor is: public class AuditTrailInterceptor extends EmptyInterceptor { ...

Filters vs Interceptors in Struts 2

What's the difference, really, between filters and interceptors? I realize that interceptors fire before and after an action, recursively, and filters can be configured to fire on actions and on certain url patterns. But how do you know when to use each one? In the book I'm reading on Struts 2, it seems that interceptors are being pus...

How to pass arguments to a console application if it is already running ?

I use a Console Application in Windows Mobile to handle incoming message interception. In the same console application i accept parameters (string args[]) which based on the parameters, register the message interceptor. InterceptorType is a enum static void Main(string[] args) { if (args[0] == "Loc...

Should i load back all the MessageInterceptor rules on application startup?

I use the MessageInterceptor with several rules to handle incoming messages. My problem is that according to this page (see the code below), he mentions that a key part of the logic is to load the MessageInterceptor object in the Form Load and check whether IsApplicationLauncherEnabled and bind it again to the MessageReceived event. ...

WCF auditing/logging

Hi guys, I need to provide non repudiation in my WCF services and want to store all my incomming SOAP requests into a SQL server DB with signature/security data and all the envelope stuff. This way, when a problem occurs, we can tell to the client "Hi, THIS is your signed message" exactly as you wrote it. To do this, I need to store ...

Is there a better way of manipulating SOAP messages than Jaxws SOAP Handler Interceptor before the message gets to the container?

I am currently using the jaxws and apache CXF framework to create webservices using the top down approach. I am using the SOAP interceptors to add remove SOAP header elements, using SAAJ, before the message gets to the container, and the container maps the SOAP action too the java method. I am doing this to create Security Token Serv...

how to get authenticated user id from wcf in nhibernate

Hi I have implemented NHibernate custom context (ICurrentSessionContext). In this context I inject the NHibernate session so I have Session per call pattern setup. Ok, now I have made an interceptor that takes userId of the current logged user. Now I do this: public ISession CurrentSession() { // Get the WCF InstanceContext: var con...