-
1. Re: Registering JBoss Invocation interceptors on the server side of remote EJBs in AS 7.1
jaikiran Sep 19, 2012 7:53 AM (in response to petterholmstrom)1 of 1 people found this helpfulPetter, welcome to the forums!
We currently don't have a way to allow server-side non-EE interceptors for applications. I've created a thread in the AS7 dev mailing list to see if we want to support this http://lists.jboss.org/pipermail/jboss-as7-dev/2012-September/006872.html
-
2. Re: Registering JBoss Invocation interceptors on the server side of remote EJBs in AS 7.1
petterholmstrom Sep 19, 2012 8:13 AM (in response to jaikiran)Thank you for your quick response!
Is there any other way of achieving the same thing? My token is basically a serializable implementation of the Principal interface and I would like this principal to be propagated from the client to the server, and then validated on the server. I guess I could serialize it to a string and pass it as a password (using standard username/password authentication), but would this conflict with the credentials that are hard-coded into the remote-outbound-connection?
Another way would be to bypass the EJB container security all together and use EJB interceptors for security checking, but I don't want to go down that road unless I absolutely have to.
-Petter-
-
3. Re: Registering JBoss Invocation interceptors on the server side of remote EJBs in AS 7.1
petterholmstrom Sep 19, 2012 9:34 AM (in response to petterholmstrom)Would it be possible to access the Remoting API directly to transport the principal from the client to the server? Apparently this guy has been able to do something similar:
Unfortunately the article above does not include instructions about setting up the client and server to communicate with each other.
-Petter-
-
4. Re: Registering JBoss Invocation interceptors on the server side of remote EJBs in AS 7.1
jaikiran Jan 16, 2013 8:23 AM (in response to petterholmstrom)Petter, this feature is now implemented and available in the AS7 nightly builds https://community.jboss.org/thread/167590. Would you want to test it and let us know how it goes. Here's a testcase which shows how you can use "container interceptors" https://github.com/jbossas/jboss-as/tree/master/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/container/interceptor
-
5. Re: Registering JBoss Invocation interceptors on the server side of remote EJBs in AS 7.1
jaikiran Jan 16, 2013 10:06 AM (in response to jaikiran)Here's the documentation for this feature https://docs.jboss.org/author/display/AS72/Container+interceptors
-
6. Re: Registering JBoss Invocation interceptors on the server side of remote EJBs in AS 7.1
petterholmstrom Jan 17, 2013 1:23 AM (in response to jaikiran)Thanks! I'll have a look at it as soon as I have some spare time. I'll post my findings here.
-Petter-