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 ...
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...
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...
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...
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/...
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"...
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...
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...
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="...
How do I register multiple interceptors using the fluent API?
...
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...
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 ...
Hi,
How can I create and register my own LoginMessageInterceptor in Spring?
Thanks!
...
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 {
...
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...
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...
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.
...
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 ...
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...
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...