[EJB 3.0] - Any way to force an EJB call to be remote?
by javajedi
I'm trying to force an EJB call to be remote on the same machine, even though the EJB is deployed locally (i.e. open an actual socket connection to localhost and go through the exact same steps as a remote client would). The reason for this is to set up a monitoring MBean that we can use to isolate application and app server-level failures from network-level failures (i.e. if the machine can open up a socket to itself, but the client can't, it's much more likely to be a network-level failure.) This is turning out to be more challenging than I expected.
My first attempt was to set up a custom stack in ejb3-interceptors-aop.xml that removes the IsLocalInterceptor. But then I ran into what looks like another optimization in JBoss Remoting where it's using the LocalClientInvoker instead of the actual configured invoker.
Has anyone else attempted this? Any suggestions of a simple way to force the call to be truly remote?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095449#4095449
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095449
18Â years, 9Â months
[Security & JAAS/JBoss] - Customized login modules
by jdsignature
Login security data needed: username, password, client IP Adress
One custmized loginModule named XYZLoginModule has been created, here is what I am thinking:
1. collect the userid, password, and client ip address via new PassiveCallbackHandler(userid, password, clientIP) ; Then pass the callbackhandler to LoginContext via new LoginContext(config, passiveCallbackHandler).
2. per step 1, all the code will be handled in the application code, are there a way to have the JBOSS container handle this? can somebody point out a way on how to all of these, for instance, the sample login-config, jboss.xml, web.xml,
thanks in advance for any clue?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095448#4095448
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095448
18Â years, 9Â months