-
1. Re: Looking for interface org.hornetq.api.core.interceptor.Interceptor
jbertram May 11, 2015 11:25 AM (in response to romsky007)I believe what you're looking for is org.hornetq.api.core.Interceptor which is in the hornetq-core-client jar file. The class org.hornetq.api.core.interceptor.Interceptor doesn't exist in either 2.3.x or 2.4.x.
-
2. Re: Looking for interface org.hornetq.api.core.interceptor.Interceptor
romsky007 May 11, 2015 12:34 PM (in response to jbertram)I would like to use org.hornetq.api.core.Interceptor to change incoming STOMP messages.
I want to change "destination" frame and add other one.
As I understand the Interceptor could be implemented only as jar and added to org.hornetq.main module. The Interceptor could NOT be deployed as part of ear.
The signature of the interceptor method is :
public boolean intercept(Packet packet, RemotingConnection connection) throws HornetQException
How can I get STOMP message out from Packet object?
The problem is that I've got "Packet: PACKET(SessionXAStartMessage)[type=51, channelID=10, packetObject=SessionXAStartMessage] " before
and "Packet: PACKET(SessionXAEndMessage)[type=52, channelID=10, packetObject=SessionXAEndMessage, xid=XidImpl (1785487283 bq:0.0.0.0.0.0.0.0.0.0.-1."
after the call.
It seams that Interceptor works on other abstraction level as STOMP or JMS.
-
3. Re: Looking for interface org.hornetq.api.core.interceptor.Interceptor
jbertram May 11, 2015 1:01 PM (in response to romsky007)The interceptor implementation in 2.4.x doesn't support STOMP frames.