开发者

Propagate server identity through Weblogic EJB calls

开发者 https://www.devze.com 2023-03-11 22:45 出处:网络
Is there a way to assign an identity to a Weblogic server so that calls from one server to another will propagate the calling server identity?

Is there a way to assign an identity to a Weblogic server so that calls from one server to another will propagate the calling server identity?

As an example, I have two servers : ServerA and ServerB. I have a test client that looks up an EJB on ServerA and invokes a method on it. The EJB on ServerA then looks up an EJB on ServerB and invokes a method on it.

When using authentication in the first call, the principal is propagated from ServerA to ServerB so that context.getCallerPrincipal() returns the same on both servers.

Now I would like to call the EJB on ServerA without using authentication, and when the EJB is called on ServerB, it should return ServerA's principal when I invoke context.getCallerPrincipal().

The end result is that I want to be ab开发者_StackOverflow中文版le to specify that ServerA can call EJB methods on ServerB, but ServerX for instance shouldn't be allowed to.

I'm not sure if this is even possible?

0

精彩评论

暂无评论...
验证码 换一张
取 消