camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dvsridhar <>
Subject calling camel route from a Servlet Filter
Date Mon, 04 Feb 2013 21:56:49 GMT
We have some security filters that's get executed even before the request
reaches the actual end point. We need to log failed security attempts as
part of the audit log.

We have some central audit log routes that already does audit logging. What
is the best way to invoke a route from a servlet filter. 

I tried 2 ways and I got Nullpointer exception both the cases.

*Approach 1:*

  private ProducerTemplate producer; 


*Approach 2*
	@Produce(uri = "jms:queue:com/cgi/fdx/route/audit_log_queue")
	private AuditProxy audit;

*Audit Porxy Interface
import org.apache.camel.InOnly;
public interface AuditProxy extends Serializable{
	public void audit(AuditLog log);


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message