Re: Is there a BEA Tuxedo equivalence in Java?
- From: "narke" <steven@xxxxxxxxxxxx>
- Date: 19 Apr 2005 02:05:06 -0700
> ContextCallback is not passed from the client to server. It is the
> context object that is passed from client to server. ConextCallback
is
> the objects that will provide the ServiceLocator (use
> .setContextCallback to register) with the context object.
it is still not clear. what is the relationship between the three
classes, ContextCallback, ServiceLocator, context objects. Did you
mean that a ServiceLocator hold a ContexCallback on server side and a
ContextCallback holds many context objects which was passed to the
server from client side?
> In your case, you could create a SecurityInterceptor. In the
> intercept-method, a Request object is passed as an argument. Use
> the getContext-method to fetch your Credentials object.
Request object? I suppose you are saying the client object which call
the remote method, is it? This leads two questions:
1, "a Request object is passwd as an argument"
How to get the current Request object? Does RMI provide such kind of a
mechaism which allow server object retreive who is calling him?
2, "Use the getContext-method to fetch your Credentials object"
What class was the getContext method defined on? How does it fetch the
proper Credential?
3, Did you implicate that one Credential correspond to one Request
object? If so, how and when the relationship was bind?
> Behind the scene, all this is implemented by using
> java.lang.reflect.Proxy and java.lang.reflect.InvocationHandler.
Using
> Proxy, virtual objects can be created, those methods are by a
> InvocationHandler. RMIFacadeImpl is the actual distributed RMI
> object. But the protocol (RMI) could be changed without having to
> change your service objects at all. If you decide to use web services
> later, the only thing that need to be done is to create an additional
> facade in Buttler
i will going to grab some knowledge of reflection in Java.
Thanks
-
narke
.
- Follow-Ups:
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- References:
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: narke
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: narke
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: narke
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: narke
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: narke
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: narke
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: narke
- Re: Is there a BEA Tuxedo equivalence in Java?
- From: frebe
- Re: Is there a BEA Tuxedo equivalence in Java?
- Prev by Date: Re: Is there a BEA Tuxedo equivalence in Java?
- Next by Date: Looking for UML Diagrams exercises + solutions
- Previous by thread: Re: Is there a BEA Tuxedo equivalence in Java?
- Next by thread: Re: Is there a BEA Tuxedo equivalence in Java?
- Index(es):
Relevant Pages
|