Re: Is there a BEA Tuxedo equivalence in Java?



> 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

.



Relevant Pages

  • Re: Hied Query String
    ... You can hide querystrings only when using frames ... But there is another way to do exactly what you want that doesn`t use session, cache or cookies, and it is the Context object ... the context is server side and only alive for the current server transfer. ... personally i combine this technique with hidden fields to store my information, when an event takes place that should bring me to anaother page and i need the values i simply get them out of the hiddenfield store them in a context object perform a transfer and get them out of the context, as soon as the current request is out of scope the context object is emptied this in contradiction to the session wich will hold a copy of the values as long as the session is alive. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to read data from web.xml (JSP)?
    ... What to do if i dont want to hard-code the database driver and server ... the context object is not null and its value is: ...
    (comp.lang.java.programmer)
  • Server.Transfer
    ... Can I user Server.Transfer between two different web sites on the same ... And pass data via the Context object? ... Andrew Robinson ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Server.Transfer
    ... the Context object? ... The source and target pages must be in the same Web application if you use Server.Transfer. ... Can I user Server.Transfer between two different web sites on the same server? ... Andrew Robinson ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Value and text are nothing on postback if ddl is filled client sid
    ... I cant think of any other way know to get those values other then using Request object. ... If you going to use this in many pages you might consider to write your own component where client side will populate data and your component will submit all values to the server side. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)