-
1. Re: How do we use all interceptors from jmx-invoker-service.xml of JBoss AS5 in JBoss AS7?
jamesviet May 7, 2013 12:53 AM (in response to jamesviet)Anyone can help give me some advice?
-
3. Re: How do we use all interceptors from jmx-invoker-service.xml of JBoss AS5 in JBoss AS7?
jamesviet May 7, 2013 4:05 AM (in response to sfcoy)Hi Stephen?
Thanks for your reply. But could you please explain somthing more?
-
4. Re: How do we use all interceptors from jmx-invoker-service.xml of JBoss AS5 in JBoss AS7?
sfcoy May 8, 2013 7:58 AM (in response to jamesviet)I'm sorry, I gave you a lazy answer.
If you're remotely calling MBeans, then I don't think there's a way to define interceptors for these anymore.
Have you implemented some custom interceptors?
-
5. Re: How do we use all interceptors from jmx-invoker-service.xml of JBoss AS5 in JBoss AS7?
jamesviet May 9, 2013 4:13 AM (in response to sfcoy)Hi Stephen,
Haven't yet Stephen. I would like to find another way. Could you give me some advices or some articles for that?
-
6. Re: How do we use all interceptors from jmx-invoker-service.xml of JBoss AS5 in JBoss AS7?
sfcoy May 9, 2013 4:22 AM (in response to jamesviet)You may find something useful in the javax.management package summary. It also contains a link to a PDF of the MBean specification (near the bottom).
-
7. Re: How do we use all interceptors from jmx-invoker-service.xml of JBoss AS5 in JBoss AS7?
jamesviet May 14, 2013 4:06 AM (in response to sfcoy)Hi Stephen,
I followed your guide but no more information was found.
How about EJB Interceptor, do you think we can apply it for this case?
-
8. Re: How do we use all interceptors from jmx-invoker-service.xml of JBoss AS5 in JBoss AS7?
sfcoy May 14, 2013 9:58 AM (in response to jamesviet)I think you need to explain what you're trying to achieve.
What is the purpose of the interceptors that you want to install?
-
9. Re: How do we use all interceptors from jmx-invoker-service.xml of JBoss AS5 in JBoss AS7?
jamesviet May 14, 2013 11:54 PM (in response to sfcoy)I'm migrating my application from JBoss 5 to JBoss 7.
In JBoss 5 we have some interceptor already denifed in jmx-invoker-service.xml (they use for create Session, authentication user with DB ....)
When client calls to server to invoke method, all interceptor from jmx-invoker-service.xml will be intercepted.
eX:
@Override
public Object invoke(Invocation invocation) throws Throwable {
String type = invocation.getType();
if (type.equals(Invocation.OP_INVOKE)) {
String opName = invocation.getName();
if (opName.equals("invoke")) {
Object[] args = invocation.getArgs();
org.jboss.invocation.Invocation inv = (org.jboss.invocation.Invocation) args[0];
// Get the caller, we assume this one is authenticated
Principal caller = inv.getPrincipal();
...
But now when I migrate to JBoss 7, the old behavior and some class exist in JBoss 5 was removed (ex: org.jboss.invocation.Invocation, ...).
I would like to find another way to do that when migrating my application to JBoss 7.
I saw EJB can support interceptors but I think may be we change many thing when move to EJB.