Hi,
Q1)
I've been trying to intercept proxies that JBOSS generates on client side for e.g.
stateless session beans. I understand why it is not possible in general (since not
loaded via the AOP classloader). Though is there any way of doing it anyhow by some
programmatic registration. What I would like is something like this:
* JNDI lookup of the home if
* narrow, create on the home.
* Intercept on (selected by the if containing certain metadata) (methods for the EJB
remote interface).
Q2)
Since I did not succeed in intercepiting the proxy, I created a "ClientSLSB" class of
which I intercept the constructor.
* When constructor is invoked i grab the JNDI path and creates a subclass via
AOPClassPool and adds the EJB remote interface onto it.
* Add the interface methods that delegates to a added field (EJB) method's to invoke
the remote bean.
* Return the subclass.
For fun I tried to add a interceptor and a AdviceBinding. But registration seems to
always fail (seems that it will match using the baseclass while registering the
AdviceBinding). Is it because the base class is already registered and it cannot
distingwish between base and subclass.
Basically i intercept by all($instanceof{TheEJBInterface}), but I've tried a massive (
;-) amount of different expressions.
Though it is of no greater importance since I genereate each method in the subclass
but I wonder how it all fits in.
Regards,
Mario
PS.
Will the added contents of ResponseAttachment flow (de-/serialized) over the wire
using std. JBOSS EJB proxies or is it for pure remoting only (or other)?
I Just want to add a "hidden" context passed around between the client and the
container, while in the container or within the client I can use AOP .
(Haven't tried to write a client and server interceptors (that are configured for the
bean itself since wanted to try to use the AOP fw as far as possible. Am I at a dead
end so I need to write such interceptors?)
DS.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839459#3839459
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839459
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development